Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_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.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_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.001623/0.001623, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.484/1.484, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007993/0.0007991, allocations: 86.2 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.708e-05/1.709e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09363/0.09367, allocations: 47.59 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3456/0.4393, allocations: 82.83 MB / 446 MB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002674/0.4396, allocations: 89.62 kB / 446.1 MB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01861/0.4583, allocations: 6.944 MB / 453.1 MB, free: 6.762 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4583, allocations: 3.938 kB / 453.1 MB, free: 6.758 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.739e-05/0.4583, allocations: 8 kB / 453.1 MB, free: 6.75 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.001122/0.4595, allocations: 0.6793 MB / 453.7 MB, free: 6.051 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.4595, allocations: 12.03 kB / 453.8 MB, free: 6.039 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.4596, allocations: 47.44 kB / 453.8 MB, free: 5.992 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004961/0.4601, allocations: 372.6 kB / 454.2 MB, free: 5.633 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.4602, allocations: 12 kB / 454.2 MB, free: 5.621 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.999e-05/0.4602, allocations: 31.98 kB / 454.2 MB, free: 5.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004256/0.4607, allocations: 236.7 kB / 454.4 MB, free: 5.449 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006475/0.4613, allocations: 351.4 kB / 454.8 MB, free: 5.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.4614, allocations: 7.922 kB / 454.8 MB, free: 5.172 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.751e-05/0.4614, allocations: 0 / 454.8 MB, free: 5.172 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.4614, allocations: 8 kB / 454.8 MB, free: 5.164 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.4635, allocations: 1.502 MB / 456.3 MB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004823/0.464, allocations: 258.8 kB / 456.6 MB, free: 3.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.4643, allocations: 133.3 kB / 456.7 MB, free: 3.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.4643, allocations: 4 kB / 456.7 MB, free: 3.586 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000351/0.4647, allocations: 220.7 kB / 456.9 MB, free: 3.391 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 1.834e-06/0.4647, allocations: 3.938 kB / 456.9 MB, free: 3.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005345/0.4653, allocations: 281.3 kB / 457.2 MB, free: 3.172 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.319e-05/0.4653, allocations: 136.5 kB / 457.3 MB, free: 3.008 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.4656, allocations: 260.5 kB / 457.6 MB, free: 2.797 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.4657, allocations: 28.83 kB / 457.6 MB, free: 2.766 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.4658, allocations: 228.7 kB / 457.8 MB, free: 2.578 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.852e-05/0.4659, allocations: 98.27 kB / 457.9 MB, free: 2.496 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.466, allocations: 0 / 457.9 MB, free: 2.496 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.4661, allocations: 341.1 kB / 458.2 MB, free: 2.168 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.4663, allocations: 90.17 kB / 458.3 MB, free: 2.117 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002297/0.4665, allocations: 201 kB / 458.5 MB, free: 1.902 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.4667, allocations: 109.9 kB / 458.6 MB, free: 1.832 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.4667, allocations: 7.953 kB / 458.6 MB, free: 1.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005533/0.4673, allocations: 352.3 kB / 459 MB, free: 1.551 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006254/0.4679, allocations: 1.432 MB / 460.4 MB, free: 32 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.4679, allocations: 4 kB / 460.4 MB, free: 28 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003414/0.4683, allocations: 76.64 kB / 460.5 MB, free: 15.97 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002196/0.4685, allocations: 59.91 kB / 460.6 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001699/0.4702, allocations: 1.731 MB / 462.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.4706, allocations: 55.66 kB / 462.3 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.4706, allocations: 15.69 kB / 462.4 MB, free: 14.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.666e-06/0.4706, allocations: 4 kB / 462.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004864/0.4711, allocations: 304 kB / 462.7 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.4711, allocations: 7.938 kB / 462.7 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002089/0.4713, allocations: 86.08 kB / 462.8 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.4715, allocations: 52.27 kB / 462.8 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/0.4732, allocations: 1.763 MB / 464.6 MB, free: 12.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.4734, allocations: 39.67 kB / 464.6 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.4735, allocations: 15 kB / 464.6 MB, free: 12.17 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.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 (39): * Single equations (assignments): 37 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001423/0.4736, allocations: 134.6 kB / 464.8 MB, free: 12.04 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000506/0.4741, allocations: 298.6 kB / 465 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.4742, allocations: 31.62 kB / 465.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.666e-05/0.4743, allocations: 36.41 kB / 465.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.4743, allocations: 4 kB / 465.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-06/0.4743, allocations: 0 / 465.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.4743, allocations: 3.984 kB / 465.1 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.4754, allocations: 0.8755 MB / 466 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4754, allocations: 0 / 466 MB, free: 11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.4756, allocations: 23.98 kB / 466 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001972/0.4758, allocations: 73.39 kB / 466.1 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/0.4758, allocations: 3.984 kB / 466.1 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001492/0.4773, allocations: 1.685 MB / 467.8 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4773, allocations: 3.984 kB / 467.8 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/0.478, allocations: 0.5065 MB / 468.3 MB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.4782, allocations: 143 kB / 468.4 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.293e-05/0.4782, allocations: 7.453 kB / 468.4 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.4785, allocations: 32.09 kB / 468.5 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.4786, allocations: 43.12 kB / 468.5 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.4787, allocations: 8 kB / 468.5 MB, free: 8.688 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001913/0.4789, allocations: 196.6 kB / 468.7 MB, free: 8.535 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4789, allocations: 3.938 kB / 468.7 MB, free: 8.531 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007845/0.4797, allocations: 187.4 kB / 468.9 MB, free: 8.348 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.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 (26): * Single equations (assignments): 19 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001013/0.4807, allocations: 1.142 MB / 470 MB, free: 7.301 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.4818, allocations: 0.7782 MB / 470.8 MB, free: 6.629 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4818, allocations: 0 / 470.8 MB, free: 6.629 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003454/0.4822, allocations: 269.5 kB / 471.1 MB, free: 6.406 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.4825, allocations: 46.92 kB / 471.1 MB, free: 6.375 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001383/0.4839, allocations: 0.5853 MB / 471.7 MB, free: 5.809 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.4844, allocations: 0.8314 MB / 472.5 MB, free: 4.949 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002153/0.4846, allocations: 47.27 kB / 472.6 MB, free: 4.898 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.4848, allocations: 127.1 kB / 472.7 MB, free: 4.863 MB / 346.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4848, allocations: 0 / 472.7 MB, free: 4.863 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03566/0.5204, allocations: 8.526 MB / 481.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002152/0.5207, allocations: 178.6 kB / 481.4 MB, free: 12.14 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/2.684, allocations: 0 / 481.4 MB, free: 12.14 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat