Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002277/0.002277, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.317/2.317, allocations: 205.2 MB / 219.4 MB, free: 14.28 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.204e-05/3.245e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.09902, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4218/0.5209, allocations: 83.12 MB / 452.3 MB, free: 10.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003429/0.5213, allocations: 81.94 kB / 452.4 MB, free: 10.12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03522/0.5565, allocations: 7.65 MB / 460 MB, free: 3.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.5566, allocations: 0 / 460 MB, free: 3.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.849e-05/0.5567, allocations: 11.98 kB / 460.1 MB, free: 3.637 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001939/0.5586, allocations: 0.7148 MB / 460.8 MB, free: 2.906 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.5587, allocations: 8.031 kB / 460.8 MB, free: 2.898 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001666/0.5589, allocations: 84.91 kB / 460.9 MB, free: 2.832 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.5591, allocations: 63.23 kB / 460.9 MB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008431/0.5599, allocations: 375.9 kB / 461.3 MB, free: 2.41 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.823e-05/0.56, allocations: 36 kB / 461.3 MB, free: 2.387 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.5601, allocations: 43.12 kB / 461.4 MB, free: 2.355 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/0.5613, allocations: 453.4 kB / 461.8 MB, free: 2.031 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.5613, allocations: 4 kB / 461.8 MB, free: 2.027 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.922e-05/0.5614, allocations: 15.62 kB / 461.8 MB, free: 2.023 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.504e-05/0.5615, allocations: 12 kB / 461.8 MB, free: 2.012 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008413/0.5623, allocations: 294.6 kB / 462.1 MB, free: 1.828 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00407/0.5664, allocations: 1.708 MB / 463.8 MB, free: 256 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.5676, allocations: 315.1 kB / 464.2 MB, free: 15.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006773/0.5683, allocations: 201.8 kB / 464.3 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.001e-05/0.5684, allocations: 12.53 kB / 464.4 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006484/0.5691, allocations: 235.8 kB / 464.6 MB, free: 15.47 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 3.506e-06/0.5691, allocations: 0 / 464.6 MB, free: 15.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.001079/0.5702, allocations: 342.8 kB / 464.9 MB, free: 15.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/0.5703, allocations: 114.8 kB / 465 MB, free: 14.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006563/0.571, allocations: 319.5 kB / 465.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.5711, allocations: 37.7 kB / 465.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002446/0.5713, allocations: 278.8 kB / 465.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000162/0.5715, allocations: 114.4 kB / 465.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.661e-05/0.5716, allocations: 12 kB / 465.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.5717, allocations: 330.8 kB / 466.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/0.5721, allocations: 101.1 kB / 466.2 MB, free: 13.79 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.5726, allocations: 236 kB / 466.4 MB, free: 13.51 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004061/0.573, allocations: 153.8 kB / 466.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.573, allocations: 4 kB / 466.6 MB, free: 13.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001194/0.5742, allocations: 439.7 kB / 467 MB, free: 12.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007166/0.575, allocations: 1.343 MB / 468.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/0.575, allocations: 4 kB / 468.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004817/0.5755, allocations: 68.83 kB / 468.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006372/0.5761, allocations: 79.83 kB / 468.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/0.5786, allocations: 1.69 MB / 470.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007708/0.5795, allocations: 75.66 kB / 470.3 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-05/0.5795, allocations: 16 kB / 470.3 MB, free: 9.387 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.5796, allocations: 7.938 kB / 470.3 MB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001132/0.5807, allocations: 413.6 kB / 470.7 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.5808, allocations: 4 kB / 470.7 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003437/0.5811, allocations: 76.83 kB / 470.8 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005193/0.5816, allocations: 71.91 kB / 470.8 MB, free: 8.812 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002425/0.5841, allocations: 1.683 MB / 472.5 MB, free: 6.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005324/0.5847, allocations: 47.67 kB / 472.6 MB, free: 6.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.196e-05/0.5847, allocations: 20 kB / 472.6 MB, free: 6.926 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.diode.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002815/0.585, allocations: 144 kB / 472.7 MB, free: 6.781 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.5852, allocations: 39.53 kB / 472.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000174/0.5854, allocations: 48.33 kB / 472.8 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.5854, allocations: 4 kB / 472.8 MB, free: 6.691 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.048e-06/0.5854, allocations: 4.078 kB / 472.8 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.5854, allocations: 7.922 kB / 472.8 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.5877, allocations: 0.9212 MB / 473.8 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.5878, allocations: 0 / 473.8 MB, free: 5.695 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000483/0.5883, allocations: 47.95 kB / 473.8 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003542/0.5887, allocations: 72.77 kB / 473.9 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.053e-05/0.5887, allocations: 8 kB / 473.9 MB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002417/0.5911, allocations: 1.683 MB / 475.6 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.5912, allocations: 0 / 475.6 MB, free: 3.754 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.5927, allocations: 0.596 MB / 476.2 MB, free: 3.129 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003013/0.593, allocations: 152.6 kB / 476.3 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.518e-05/0.5932, allocations: 8 kB / 476.3 MB, free: 2.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005422/0.5937, allocations: 31.97 kB / 476.4 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/0.5939, allocations: 39.95 kB / 476.4 MB, free: 2.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.704e-05/0.594, allocations: 15.98 kB / 476.4 MB, free: 2.867 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004823/0.5945, allocations: 246.2 kB / 476.6 MB, free: 2.629 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5945, allocations: 0 / 476.6 MB, free: 2.629 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001279/0.5958, allocations: 223.4 kB / 476.9 MB, free: 2.41 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductorSource.i,capacitor.v) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.diode.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y,meanVoltage.y) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001934/0.5977, allocations: 1.229 MB / 478.1 MB, free: 1.141 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002004/0.5998, allocations: 0.8557 MB / 479 MB, free: 240 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.5998, allocations: 0 / 479 MB, free: 240 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000663/0.6005, allocations: 291 kB / 479.2 MB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007322/0.6012, allocations: 71.44 kB / 479.3 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/0.6041, allocations: 0.8102 MB / 480.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.6047, allocations: 0.8436 MB / 481 MB, free: 14.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003754/0.6051, allocations: 155.4 kB / 481.1 MB, free: 13.99 MB / 362.7 MB Notification: Performance of SimCode: time 1.804e-06/0.6051, allocations: 3.938 kB / 481.1 MB, free: 13.99 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.005/3.61, allocations: 9.088 MB / 490.2 MB, free: 4.891 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat does not exist to compare? outputFormat=mat