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: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|capacitor.v|inductorSource.i|meanCurrent.x|meanVoltage.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|capacitor.v|inductorSource.i|meanCurrent.x|meanVoltage.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001753/0.001753, allocations: 180.9 kB / 17.41 MB, free: 4.297 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.703/2.703, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.001157/0.001157, allocations: 83.78 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006071/0.0006072, allocations: 8 kB / 328.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4783/0.4789, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1944/0.6734, allocations: 83.29 MB / 459 MB, free: 13.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004557/0.6739, allocations: 95.94 kB / 459.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0406/0.7146, allocations: 7.649 MB / 466.8 MB, free: 5.543 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.458e-06/0.7147, allocations: 0 / 466.8 MB, free: 5.543 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.636e-05/0.7147, allocations: 8 kB / 466.8 MB, free: 5.535 MB / 346.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.002425/0.7172, allocations: 0.7675 MB / 467.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.938e-05/0.7173, allocations: 8.031 kB / 467.6 MB, free: 4.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.7175, allocations: 64.22 kB / 467.6 MB, free: 4.641 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008857/0.7184, allocations: 384.1 kB / 468 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.531e-05/0.7185, allocations: 37.38 kB / 468 MB, free: 4.191 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001333/0.7186, allocations: 52.27 kB / 468.1 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.7201, allocations: 481.2 kB / 468.6 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/0.7202, allocations: 8.172 kB / 468.6 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.508e-05/0.7203, allocations: 27.92 kB / 468.6 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.941e-05/0.7203, allocations: 12 kB / 468.6 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.7215, allocations: 331.8 kB / 468.9 MB, free: 3.281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004792/0.7263, allocations: 1.706 MB / 470.6 MB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.7278, allocations: 333.4 kB / 471 MB, free: 1.145 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008112/0.7287, allocations: 212.6 kB / 471.2 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.159e-05/0.7287, allocations: 7.859 kB / 471.2 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008576/0.7296, allocations: 259.7 kB / 471.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 9.127e-06/0.7296, allocations: 0 / 471.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.002407/0.7321, allocations: 0.5975 MB / 472 MB, free: 28 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001682/0.7323, allocations: 118.8 kB / 472.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008287/0.7331, allocations: 377.5 kB / 472.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-05/0.7332, allocations: 33.7 kB / 472.5 MB, free: 15.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003477/0.7336, allocations: 236.3 kB / 472.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000171/0.7338, allocations: 114.4 kB / 472.9 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/0.7338, allocations: 16 kB / 472.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002449/0.7341, allocations: 350.8 kB / 473.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.7345, allocations: 129.1 kB / 473.4 MB, free: 14.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007061/0.7352, allocations: 256 kB / 473.6 MB, free: 14.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009247/0.7362, allocations: 386.5 kB / 474 MB, free: 13.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.245e-06/0.7362, allocations: 0 / 474 MB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001482/0.7377, allocations: 0.5031 MB / 474.5 MB, free: 13.37 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002839/0.738, allocations: 222.7 kB / 474.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.919e-05/0.738, allocations: 4 kB / 474.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005046/0.7385, allocations: 76.78 kB / 474.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.739, allocations: 87.83 kB / 474.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002943/0.742, allocations: 1.679 MB / 476.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007137/0.7427, allocations: 79.64 kB / 476.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.507e-05/0.7428, allocations: 16.06 kB / 476.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.7428, allocations: 7.938 kB / 476.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0013/0.7441, allocations: 433.8 kB / 477.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/0.7442, allocations: 4 kB / 477.1 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003693/0.7446, allocations: 77.19 kB / 477.2 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003962/0.745, allocations: 75.89 kB / 477.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002913/0.7479, allocations: 1.694 MB / 478.9 MB, free: 8.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00084/0.7488, allocations: 51.66 kB / 479 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.815e-05/0.7489, allocations: 16 kB / 479 MB, free: 8.535 MB / 362.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 () * Number of clocked 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.000803/0.7497, allocations: 259.3 kB / 479.2 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.7499, allocations: 47.44 kB / 479.3 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001725/0.75, allocations: 48.12 kB / 479.3 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/0.7501, allocations: 11.92 kB / 479.4 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.7501, allocations: 0 / 479.4 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.7501, allocations: 0 / 479.4 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002882/0.753, allocations: 0.9483 MB / 480.3 MB, free: 7.148 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.7531, allocations: 0 / 480.3 MB, free: 7.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004838/0.7536, allocations: 51.91 kB / 480.4 MB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004801/0.7541, allocations: 65.12 kB / 480.4 MB, free: 7.031 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.676e-05/0.7541, allocations: 16.03 kB / 480.4 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003694/0.7578, allocations: 1.69 MB / 482.1 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.7579, allocations: 0 / 482.1 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.7601, allocations: 0.6187 MB / 482.7 MB, free: 4.551 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005999/0.7608, allocations: 148.6 kB / 482.9 MB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000183/0.761, allocations: 8 kB / 482.9 MB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005935/0.7616, allocations: 35.91 kB / 482.9 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002754/0.7619, allocations: 39.94 kB / 483 MB, free: 4.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.852e-05/0.762, allocations: 12 kB / 483 MB, free: 4.293 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007953/0.7628, allocations: 267.2 kB / 483.2 MB, free: 4.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7628, allocations: 0 / 483.2 MB, free: 4.035 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001944/0.7648, allocations: 223.4 kB / 483.5 MB, free: 3.816 MB / 362.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) * Number of clocked states: 0 () * 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.0004676/0.7653, allocations: 126.9 kB / 483.6 MB, free: 3.684 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003274/0.7686, allocations: 0.9072 MB / 484.5 MB, free: 2.727 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/0.7686, allocations: 0 / 484.5 MB, free: 2.727 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009293/0.7695, allocations: 298.4 kB / 484.8 MB, free: 2.422 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.7708, allocations: 88.78 kB / 484.9 MB, free: 2.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003802/0.7746, allocations: 1.158 MB / 486 MB, free: 1.141 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009142/0.7756, allocations: 0.8281 MB / 486.9 MB, free: 292 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002205/0.7758, allocations: 31.44 kB / 486.9 MB, free: 260 kB / 362.7 MB Notification: Performance of SimCode: time 2.345e-06/0.7759, allocations: 0 / 486.9 MB, free: 260 kB / 362.7 MB Notification: Performance of Templates: time 0.01984/0.7957, allocations: 7.378 MB / 494.3 MB, free: 8.891 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/PowerConverters/Examples/DCDC/ChopperStepUp/ChopperStepUp_R/ChopperStepUp_R.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches