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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001604/0.001604, allocations: 175.2 kB / 8.154 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.664/1.664, allocations: 205.2 MB / 213.8 MB, free: 13.86 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.00125/0.00125, allocations: 86.2 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.424e-06, allocations: 0 / 314.3 MB, free: 9.016 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.241, allocations: 47.56 MB / 361.9 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1276/0.3687, allocations: 82.38 MB / 444.2 MB, free: 3.648 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000333/0.3691, allocations: 84.44 kB / 444.3 MB, free: 3.566 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.03348/0.4026, allocations: 7.324 MB / 451.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.666e-05/0.4027, allocations: 19.94 kB / 451.7 MB, free: 12.28 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.002027/0.4047, allocations: 0.7203 MB / 452.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.4048, allocations: 8.031 kB / 452.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002095/0.405, allocations: 67.25 kB / 452.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009011/0.4059, allocations: 375.6 kB / 452.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.406, allocations: 15.98 kB / 452.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.4061, allocations: 28 kB / 452.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009205/0.4071, allocations: 262 kB / 453.1 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.4082, allocations: 394.7 kB / 453.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.4082, allocations: 4 kB / 453.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.339e-05/0.4083, allocations: 0 / 453.5 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.916e-05/0.4083, allocations: 12 kB / 453.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004084/0.4124, allocations: 1.603 MB / 455.1 MB, free: 8.605 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008364/0.4133, allocations: 267 kB / 455.4 MB, free: 8.332 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006578/0.414, allocations: 192.8 kB / 455.6 MB, free: 8.141 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.875e-05/0.4141, allocations: 4 kB / 455.6 MB, free: 8.137 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005072/0.4146, allocations: 204.2 kB / 455.8 MB, free: 7.918 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 3.136e-06/0.4146, allocations: 2.062 kB / 455.8 MB, free: 7.918 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.001011/0.4156, allocations: 291.2 kB / 456.1 MB, free: 7.625 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.176e-05/0.4157, allocations: 118.7 kB / 456.2 MB, free: 7.484 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004903/0.4162, allocations: 263.4 kB / 456.4 MB, free: 7.223 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.248e-05/0.4163, allocations: 29.7 kB / 456.5 MB, free: 7.188 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.4165, allocations: 258.5 kB / 456.7 MB, free: 6.934 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.4167, allocations: 110.5 kB / 456.8 MB, free: 6.824 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.4167, allocations: 0 / 456.8 MB, free: 6.824 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.4168, allocations: 334.7 kB / 457.2 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00032/0.4172, allocations: 93 kB / 457.2 MB, free: 6.398 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/0.4176, allocations: 222.5 kB / 457.5 MB, free: 6.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000353/0.418, allocations: 113.4 kB / 457.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.418, allocations: 0 / 457.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001059/0.4191, allocations: 367.9 kB / 457.9 MB, free: 5.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005801/0.4197, allocations: 1.308 MB / 459.2 MB, free: 4.25 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/0.4197, allocations: 4 kB / 459.2 MB, free: 4.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004279/0.4201, allocations: 68.81 kB / 459.3 MB, free: 4.176 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006404/0.4208, allocations: 87.83 kB / 459.4 MB, free: 4.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.423, allocations: 1.494 MB / 460.9 MB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006105/0.4236, allocations: 51.78 kB / 460.9 MB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.015e-05/0.4237, allocations: 21.16 kB / 461 MB, free: 2.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.4237, allocations: 4 kB / 461 MB, free: 2.406 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009233/0.4247, allocations: 308.6 kB / 461.3 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4247, allocations: 0 / 461.3 MB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003307/0.425, allocations: 72.72 kB / 461.3 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005381/0.4256, allocations: 79.83 kB / 461.4 MB, free: 1.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/0.4278, allocations: 1.495 MB / 462.9 MB, free: 352 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005383/0.4283, allocations: 43.8 kB / 463 MB, free: 308 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.533e-05/0.4284, allocations: 16.12 kB / 463 MB, free: 292 kB / 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.000206/0.4286, allocations: 60.12 kB / 463 MB, free: 224 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.4288, allocations: 39.53 kB / 463.1 MB, free: 184 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001464/0.4289, allocations: 41.27 kB / 463.1 MB, free: 144 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.4289, allocations: 4 kB / 463.1 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.429, allocations: 0 / 463.1 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.429, allocations: 0 / 463.1 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00192/0.4309, allocations: 0.8238 MB / 463.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.4309, allocations: 0 / 463.9 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005235/0.4315, allocations: 47.91 kB / 464 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003434/0.4318, allocations: 64.83 kB / 464 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.045e-05/0.4319, allocations: 4 kB / 464 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002247/0.4342, allocations: 1.495 MB / 465.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.4342, allocations: 0 / 465.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001395/0.4356, allocations: 0.5413 MB / 466.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002983/0.4359, allocations: 148.5 kB / 466.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.4361, allocations: 17.34 kB / 466.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005589/0.4366, allocations: 23.97 kB / 466.3 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.4368, allocations: 35.95 kB / 466.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.161e-05/0.4369, allocations: 15.98 kB / 466.3 MB, free: 12.71 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003558/0.4372, allocations: 195.1 kB / 466.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001033/0.4383, allocations: 199.3 kB / 466.7 MB, free: 12.32 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) * 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.0002475/0.4385, allocations: 114.9 kB / 466.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00188/0.4404, allocations: 0.7156 MB / 467.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.4405, allocations: 0 / 467.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006038/0.4411, allocations: 249.6 kB / 467.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006835/0.4418, allocations: 58.91 kB / 467.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.4444, allocations: 0.7056 MB / 468.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007605/0.4452, allocations: 0.874 MB / 469.4 MB, free: 9.504 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4452, allocations: 1.219 kB / 469.4 MB, free: 9.504 MB / 362.7 MB Notification: Performance of Templates: time 0.0164/0.4617, allocations: 7.023 MB / 476.4 MB, free: 2.504 MB / 362.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