Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_4_0_0_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_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 183.9 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.079/1.079, allocations: 221.4 MB / 229.9 MB, free: 3.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009479/0.0009479, allocations: 108.6 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08873/0.08971, allocations: 55.82 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.2706, allocations: 50.4 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07973/0.3504, allocations: 85.06 MB / 472.1 MB, free: 1.699 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002074/0.3506, allocations: 85.55 kB / 472.2 MB, free: 1.617 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.02598/0.3766, allocations: 10.25 MB / 482.4 MB, free: 7.312 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.3767, allocations: 8 kB / 482.4 MB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.3768, allocations: 71.23 kB / 482.5 MB, free: 7.234 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005432/0.3773, allocations: 391.6 kB / 482.9 MB, free: 6.812 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.3774, allocations: 16 kB / 482.9 MB, free: 6.797 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.551e-05/0.3774, allocations: 31.98 kB / 482.9 MB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005222/0.378, allocations: 278 kB / 483.2 MB, free: 6.492 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000645/0.3786, allocations: 411.5 kB / 483.6 MB, free: 6.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.3786, allocations: 8 kB / 483.6 MB, free: 6.062 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.3787, allocations: 0 / 483.6 MB, free: 6.062 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.3787, allocations: 12 kB / 483.6 MB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.381, allocations: 1.677 MB / 485.3 MB, free: 4.289 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006421/0.3817, allocations: 321.9 kB / 485.6 MB, free: 3.969 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004126/0.3821, allocations: 206.3 kB / 485.8 MB, free: 3.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.609e-05/0.3822, allocations: 11.97 kB / 485.8 MB, free: 3.758 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003256/0.3825, allocations: 216.8 kB / 486 MB, free: 3.527 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.583e-06/0.3825, allocations: 4.781 kB / 486 MB, free: 3.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0006101/0.3832, allocations: 321.6 kB / 486.4 MB, free: 3.199 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.3832, allocations: 110.7 kB / 486.5 MB, free: 3.066 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002562/0.3835, allocations: 267.7 kB / 486.7 MB, free: 2.805 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/0.3835, allocations: 37.7 kB / 486.8 MB, free: 2.762 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.3836, allocations: 204.8 kB / 487 MB, free: 2.555 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.189e-05/0.3837, allocations: 130.1 kB / 487.1 MB, free: 2.426 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.921e-05/0.3838, allocations: 0 / 487.1 MB, free: 2.426 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3839, allocations: 354.7 kB / 487.4 MB, free: 2.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001765/0.3841, allocations: 100.9 kB / 487.5 MB, free: 1.973 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.3843, allocations: 226.7 kB / 487.8 MB, free: 1.699 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/0.3845, allocations: 124.9 kB / 487.9 MB, free: 1.578 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3845, allocations: 0 / 487.9 MB, free: 1.578 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006136/0.3851, allocations: 393.5 kB / 488.3 MB, free: 1.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003689/0.3855, allocations: 1.308 MB / 489.6 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3855, allocations: 4 kB / 489.6 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002474/0.3858, allocations: 68.83 kB / 489.6 MB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/0.3862, allocations: 107.8 kB / 489.7 MB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.3875, allocations: 1.491 MB / 491.2 MB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000353/0.3878, allocations: 59.72 kB / 491.3 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.361e-05/0.3879, allocations: 16 kB / 491.3 MB, free: 13.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/0.3879, allocations: 4 kB / 491.3 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005287/0.3884, allocations: 331.8 kB / 491.6 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3884, allocations: 3.906 kB / 491.6 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000185/0.3886, allocations: 65.23 kB / 491.7 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.389, allocations: 95.83 kB / 491.8 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/0.3903, allocations: 1.51 MB / 493.3 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.3907, allocations: 47.73 kB / 493.4 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.993e-05/0.3907, allocations: 16 kB / 493.4 MB, free: 11.73 MB / 378.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_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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 (50): * Single equations (assignments): 48 * 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.0001408/0.3908, allocations: 125.5 kB / 493.5 MB, free: 11.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.848e-05/0.3909, allocations: 43.47 kB / 493.5 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005968/0.3915, allocations: 350.1 kB / 493.9 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.3915, allocations: 7.906 kB / 493.9 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3915, allocations: 3.984 kB / 493.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3916, allocations: 0 / 493.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.3928, allocations: 0.8675 MB / 494.8 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3928, allocations: 0 / 494.8 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003521/0.3931, allocations: 71.92 kB / 494.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001848/0.3933, allocations: 72.8 kB / 494.9 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/0.3934, allocations: 7.984 kB / 494.9 MB, free: 10.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.3946, allocations: 1.498 MB / 496.4 MB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3946, allocations: 0 / 496.4 MB, free: 8.508 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007628/0.3954, allocations: 0.5866 MB / 497 MB, free: 7.895 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001112/0.3965, allocations: 1.126 MB / 498.1 MB, free: 6.738 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001613/0.3967, allocations: 144.5 kB / 498.3 MB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.438e-05/0.3968, allocations: 11.94 kB / 498.3 MB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.3971, allocations: 39.95 kB / 498.3 MB, free: 6.527 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3973, allocations: 39.94 kB / 498.3 MB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.03e-05/0.3973, allocations: 12 kB / 498.4 MB, free: 6.477 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001784/0.3975, allocations: 203.1 kB / 498.6 MB, free: 6.281 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001771/0.3993, allocations: 219.2 kB / 498.8 MB, free: 6.066 MB / 378.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,inductor.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_last,meanVoltage.y_last) * 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 (36): * Single equations (assignments): 29 * 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.0001524/0.3994, allocations: 114.9 kB / 498.9 MB, free: 5.949 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009881/0.4004, allocations: 0.75 MB / 499.6 MB, free: 5.172 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.4004, allocations: 0 / 499.6 MB, free: 5.172 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.4008, allocations: 273.7 kB / 499.9 MB, free: 4.895 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.4012, allocations: 58.36 kB / 500 MB, free: 4.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.4026, allocations: 0.7157 MB / 0.4889 GB, free: 4.086 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004548/0.4031, allocations: 0.9059 MB / 0.4898 GB, free: 3.152 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4031, allocations: 0 / 0.4898 GB, free: 3.152 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat does not exist to compare? outputFormat=mat