Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001332/0.001333, allocations: 94.59 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002624/0.0002626, allocations: 8 kB / 306.7 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1416, allocations: 51.5 MB / 358.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01166/0.1533, allocations: 8.375 MB / 366.6 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007816/0.1612, allocations: 3.173 MB / 369.8 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002062/0.1633, allocations: 43.81 kB / 369.8 MB, free: 2.344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001846/0.1652, allocations: 0.583 MB / 370.4 MB, free: 1.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003027/0.1682, allocations: 0.7322 MB / 371.1 MB, free: 1.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009367/0.1692, allocations: 267.5 kB / 371.4 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2589/0.4281, allocations: 2.123 MB / 373.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002906/0.431, allocations: 1.749 MB / 375.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002256/0.4333, allocations: 1.025 MB / 376.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002315/0.4356, allocations: 1.296 MB / 377.6 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003886/0.436, allocations: 162.9 kB / 377.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008866/0.4369, allocations: 235.4 kB / 378 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009222/0.4378, allocations: 0.7803 MB / 378.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000917/0.4388, allocations: 0.6139 MB / 379.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004731/0.4435, allocations: 4.131 MB / 383.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.4435, allocations: 0 / 383.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4435, allocations: 0 / 383.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001597/0.4437, allocations: 1.031 kB / 383.5 MB, free: 8.777 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.007507/0.4512, allocations: 3.022 MB / 386.5 MB, free: 6.992 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.4513, allocations: 9.719 kB / 386.5 MB, free: 6.992 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001131/0.4524, allocations: 370.2 kB / 386.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001525/0.454, allocations: 393.8 kB / 387.3 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004384/0.4584, allocations: 1.814 MB / 389.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002072/0.4586, allocations: 204.8 kB / 389.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005583/0.4592, allocations: 257.2 kB / 389.5 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007247/0.4664, allocations: 3.499 MB / 393 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-05/0.4665, allocations: 11.94 kB / 393 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000243/0.4668, allocations: 104.1 kB / 393.1 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001325/0.4669, allocations: 112.2 kB / 393.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005178/0.4721, allocations: 3.097 MB / 396.3 MB, free: 3.582 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01788/0.49, allocations: 10.9 MB / 407.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003495/0.4935, allocations: 3.075 MB / 410.3 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002664/0.4938, allocations: 131 kB / 410.5 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001733/0.4955, allocations: 1.16 MB / 411.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.386e-06/0.4956, allocations: 0 / 411.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.02087/0.5164, allocations: 8.924 MB / 420.5 MB, free: 12 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.5166, allocations: 180.2 kB / 420.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003016/0.5196, allocations: 1.787 MB / 422.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002281/0.5199, allocations: 57.7 kB / 422.6 MB, free: 9.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001204/0.5211, allocations: 1.194 MB / 423.8 MB, free: 8.746 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005884/0.5217, allocations: 0.554 MB / 424.3 MB, free: 8.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.5219, allocations: 36 kB / 424.3 MB, free: 8.164 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.5221, allocations: 385.8 kB / 424.7 MB, free: 7.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001691/0.5238, allocations: 1.015 MB / 425.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001986/0.5257, allocations: 1.442 MB / 427.2 MB, free: 5.156 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001851/0.5276, allocations: 1.176 MB / 428.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.5276, allocations: 4 kB / 428.4 MB, free: 3.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005978/0.5336, allocations: 3.348 MB / 431.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/0.5337, allocations: 8 kB / 431.7 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/0.5337, allocations: 12 kB / 431.7 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002119/0.5358, allocations: 0.8828 MB / 432.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001451/0.5373, allocations: 339.5 kB / 432.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/0.5491, allocations: 9.843 MB / 442.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002116/0.5512, allocations: 150.1 kB / 442.9 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001853/0.5514, allocations: 71.98 kB / 443 MB, free: 4.918 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[3].tSwitch,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(9,33.3%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002022/0.5534, allocations: 0.9253 MB / 443.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00052/0.554, allocations: 201.5 kB / 444.1 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005215/0.5592, allocations: 3.127 MB / 447.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.5592, allocations: 16 kB / 447.3 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.5593, allocations: 8 kB / 447.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.986e-05/0.5593, allocations: 11.95 kB / 447.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.5709, allocations: 6.27 MB / 453.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.699e-06/0.571, allocations: 4 kB / 453.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008963/0.5719, allocations: 211.7 kB / 453.8 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002199/0.5741, allocations: 0.9291 MB / 454.7 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/0.5742, allocations: 39.98 kB / 454.7 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01244/0.5867, allocations: 11.32 MB / 466 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.5867, allocations: 0 / 466 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007564/0.5943, allocations: 4.694 MB / 470.7 MB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/0.5959, allocations: 0.4944 MB / 471.2 MB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004572/0.5964, allocations: 39.98 kB / 471.3 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/0.5975, allocations: 111.9 kB / 471.4 MB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00054/0.5981, allocations: 193 kB / 471.6 MB, free: 7.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.5982, allocations: 47.98 kB / 471.6 MB, free: 7.504 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002006/0.6002, allocations: 1.216 MB / 472.8 MB, free: 6.297 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6002, allocations: 0 / 472.8 MB, free: 6.297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002472/0.6027, allocations: 0.6367 MB / 473.5 MB, free: 5.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(9,33.3%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007812/0.6105, allocations: 5.912 MB / 479.4 MB, free: 15.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005288/0.6158, allocations: 3.279 MB / 482.7 MB, free: 12.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.6159, allocations: 0 / 482.7 MB, free: 12.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003466/0.6193, allocations: 2.266 MB / 484.9 MB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002909/0.6223, allocations: 0.52 MB / 485.5 MB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04294/0.6652, allocations: 24.87 MB / 0.4984 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002416/0.6677, allocations: 2.242 MB / 0.5006 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001911/0.6696, allocations: 461.4 kB / 0.501 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00147/0.6711, allocations: 1.003 MB / 0.502 GB, free: 11.74 MB / 430.1 MB Notification: Performance of SimCode: time 1.653e-06/0.6711, allocations: 0 / 0.502 GB, free: 11.74 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3467/1.018, allocations: 54.78 MB / 0.5555 GB, free: 139 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001693/1.018, allocations: 222.2 kB / 0.5557 GB, free: 138.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.368/4.386, allocations: 0 / 0.5557 GB, free: 138.7 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat