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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 227.2 MB / 245 MB, free: 7.668 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000804/0.000804, allocations: 106.4 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002327/0.0002327, allocations: 4 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2167/0.217, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1138/0.3309, allocations: 106.3 MB / 0.5037 GB, free: 272 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001938/0.3311, allocations: 92.64 kB / 0.5038 GB, free: 180 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2727/0.6038, allocations: 53.56 MB / 0.5561 GB, free: 56.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.6039, allocations: 0 / 0.5561 GB, free: 56.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002658/0.6042, allocations: 67.94 kB / 0.5562 GB, free: 56.02 MB / 378.7 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.007199/0.6114, allocations: 3.044 MB / 0.5591 GB, free: 52.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.6114, allocations: 8.031 kB / 0.5591 GB, free: 52.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001055/0.6125, allocations: 366.8 kB / 0.5595 GB, free: 52.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001517/0.614, allocations: 400 kB / 0.5599 GB, free: 52.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004191/0.6182, allocations: 1.906 MB / 0.5617 GB, free: 50.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.6184, allocations: 201.1 kB / 0.5619 GB, free: 49.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00059/0.619, allocations: 251.9 kB / 0.5622 GB, free: 49.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005803/0.6248, allocations: 3.49 MB / 0.5656 GB, free: 46.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.752e-05/0.6249, allocations: 11.98 kB / 0.5656 GB, free: 46.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002955/0.6252, allocations: 108 kB / 0.5657 GB, free: 45.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-05/0.6253, allocations: 104.9 kB / 0.5658 GB, free: 45.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004791/0.6301, allocations: 2.971 MB / 0.5687 GB, free: 42.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01585/0.6459, allocations: 10.93 MB / 0.5794 GB, free: 31.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002982/0.6489, allocations: 3.13 MB / 0.5824 GB, free: 28.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000303/0.6493, allocations: 139 kB / 0.5826 GB, free: 28.17 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001752/0.6511, allocations: 1.175 MB / 0.5837 GB, free: 26.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=159): time 4.668e-06/0.6511, allocations: 0 / 0.5837 GB, free: 26.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=175): time 0.01806/0.6692, allocations: 8.767 MB / 0.5923 GB, free: 18.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.784e-05/0.6692, allocations: 184.2 kB / 0.5924 GB, free: 17.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002827/0.6721, allocations: 1.604 MB / 0.594 GB, free: 16.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001308/0.6722, allocations: 57.7 kB / 0.5941 GB, free: 16.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000949/0.6732, allocations: 1.169 MB / 0.5952 GB, free: 15.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003803/0.6736, allocations: 0.5661 MB / 0.5958 GB, free: 14.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.6737, allocations: 40 kB / 0.5958 GB, free: 14.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.6738, allocations: 381.8 kB / 0.5962 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.6752, allocations: 1.003 MB / 0.5971 GB, free: 13.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001504/0.6767, allocations: 1.378 MB / 0.5985 GB, free: 11.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001492/0.6782, allocations: 1.158 MB / 0.5996 GB, free: 10.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.294e-06/0.6783, allocations: 7.953 kB / 0.5996 GB, free: 10.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004781/0.683, allocations: 3.295 MB / 0.6028 GB, free: 7.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.6831, allocations: 11.98 kB / 0.6028 GB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.6831, allocations: 8 kB / 0.6029 GB, free: 7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/0.6849, allocations: 0.8723 MB / 0.6037 GB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.6861, allocations: 335.5 kB / 0.604 GB, free: 5.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009796/0.6959, allocations: 9.835 MB / 0.6136 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.6975, allocations: 147.9 kB / 0.6138 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001856/0.6977, allocations: 64 kB / 0.6138 GB, free: 11.34 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 (179): * Single equations (assignments): 174 * 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.001821/0.6996, allocations: 0.933 MB / 0.6147 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005023/0.7001, allocations: 205.5 kB / 0.6149 GB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00555/0.7056, allocations: 3.158 MB / 0.618 GB, free: 7.012 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.7057, allocations: 19.95 kB / 0.618 GB, free: 6.992 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-05/0.7057, allocations: 8 kB / 0.6181 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.7057, allocations: 7.969 kB / 0.6181 GB, free: 6.977 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01127/0.717, allocations: 6.294 MB / 0.6242 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.717, allocations: 11.94 kB / 0.6242 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009644/0.718, allocations: 219.7 kB / 0.6244 GB, free: 352 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002263/0.7203, allocations: 0.9219 MB / 0.6253 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.7204, allocations: 39.98 kB / 0.6254 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01188/0.7323, allocations: 11.38 MB / 0.6365 GB, free: 3.449 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.7323, allocations: 8.188 kB / 0.6365 GB, free: 3.441 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006923/0.7392, allocations: 4.747 MB / 0.6411 GB, free: 14.58 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001348/0.7406, allocations: 0.4984 MB / 0.6416 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004839/0.7411, allocations: 43.98 kB / 0.6416 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/0.7424, allocations: 115.9 kB / 0.6418 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000435/0.7428, allocations: 201.6 kB / 0.642 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/0.743, allocations: 43.98 kB / 0.642 GB, free: 13.67 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002163/0.7452, allocations: 1.243 MB / 0.6432 GB, free: 12.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7452, allocations: 0 / 0.6432 GB, free: 12.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002317/0.7475, allocations: 0.664 MB / 0.6439 GB, free: 11.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 (126): * Single equations (assignments): 118 * 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.007544/0.7551, allocations: 6.117 MB / 0.6498 GB, free: 5.555 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004908/0.76, allocations: 3.27 MB / 0.653 GB, free: 2.199 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.76, allocations: 1.938 kB / 0.653 GB, free: 2.199 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003262/0.7633, allocations: 2.293 MB / 0.6553 GB, free: 15.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002432/0.7657, allocations: 0.552 MB / 0.6558 GB, free: 15.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2103/0.976, allocations: 23.56 MB / 0.6788 GB, free: 115.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001627/0.9777, allocations: 2.243 MB / 0.681 GB, free: 114.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001408/0.9791, allocations: 448.6 kB / 0.6814 GB, free: 114.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.9801, allocations: 0.9924 MB / 0.6824 GB, free: 114.7 MB / 442.7 MB Notification: Performance of SimCode: time 7.82e-07/0.9801, allocations: 0 / 0.6824 GB, free: 114.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07566/1.056, allocations: 58.39 MB / 0.7394 GB, free: 82.83 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002131/1.056, allocations: 214.5 kB / 0.7396 GB, free: 82.59 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.46/4.516, allocations: 4.062 kB / 0.7396 GB, free: 82.58 MB / 442.7 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