Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_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.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_4_0_0_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_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_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.001069/0.001069, allocations: 181.3 kB / 8.133 MB, free: 2.195 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.112/1.112, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0008832/0.0008832, allocations: 101.3 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09194/0.09285, allocations: 55.83 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.2686, allocations: 50.4 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08144/0.3501, allocations: 85.05 MB / 472.1 MB, free: 1.695 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.3504, allocations: 83.95 kB / 472.2 MB, free: 1.613 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.02703/0.3774, allocations: 10.25 MB / 482.4 MB, free: 7.301 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.3775, allocations: 12 kB / 482.4 MB, free: 7.289 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.3776, allocations: 67.25 kB / 482.5 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006154/0.3783, allocations: 391.5 kB / 482.9 MB, free: 6.801 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.3783, allocations: 12 kB / 482.9 MB, free: 6.789 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.507e-05/0.3784, allocations: 36 kB / 482.9 MB, free: 6.754 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005452/0.3789, allocations: 281.8 kB / 483.2 MB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006642/0.3796, allocations: 414.8 kB / 483.6 MB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.3796, allocations: 4 kB / 483.6 MB, free: 6.047 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.955e-05/0.3797, allocations: 0 / 483.6 MB, free: 6.047 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.3797, allocations: 15.94 kB / 483.6 MB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002407/0.3821, allocations: 1.681 MB / 485.3 MB, free: 4.266 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006917/0.3828, allocations: 315 kB / 485.6 MB, free: 3.949 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003654/0.3832, allocations: 199.9 kB / 485.8 MB, free: 3.754 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.3832, allocations: 7.984 kB / 485.8 MB, free: 3.746 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003199/0.3836, allocations: 216.8 kB / 486 MB, free: 3.516 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.804e-06/0.3836, allocations: 3.938 kB / 486 MB, free: 3.512 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0005906/0.3842, allocations: 325.4 kB / 486.3 MB, free: 3.184 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.085e-05/0.3842, allocations: 110.8 kB / 486.4 MB, free: 3.051 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.3845, allocations: 271.7 kB / 486.7 MB, free: 2.785 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.704e-05/0.3846, allocations: 25.7 kB / 486.7 MB, free: 2.754 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.3847, allocations: 208.8 kB / 486.9 MB, free: 2.543 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.446e-05/0.3848, allocations: 130.1 kB / 487.1 MB, free: 2.414 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.904e-05/0.3848, allocations: 0 / 487.1 MB, free: 2.414 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.3849, allocations: 346.8 kB / 487.4 MB, free: 2.066 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001837/0.3851, allocations: 101 kB / 487.5 MB, free: 1.969 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.3854, allocations: 226.7 kB / 487.7 MB, free: 1.695 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.3856, allocations: 124.9 kB / 487.8 MB, free: 1.574 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3856, allocations: 0 / 487.8 MB, free: 1.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006499/0.3863, allocations: 397.5 kB / 488.2 MB, free: 1.176 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004141/0.3867, allocations: 1.312 MB / 489.5 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3867, allocations: 4 kB / 489.5 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/0.387, allocations: 68.83 kB / 489.6 MB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003781/0.3874, allocations: 99.88 kB / 489.7 MB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001295/0.3887, allocations: 1.5 MB / 491.2 MB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/0.3891, allocations: 55.72 kB / 491.3 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.706e-05/0.3891, allocations: 20 kB / 491.3 MB, free: 13.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.382e-06/0.3891, allocations: 4 kB / 491.3 MB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005404/0.3897, allocations: 331.7 kB / 491.6 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3897, allocations: 7.906 kB / 491.6 MB, free: 13.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001928/0.3899, allocations: 69.23 kB / 491.7 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003438/0.3902, allocations: 87.89 kB / 491.8 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001177/0.3914, allocations: 1.503 MB / 493.3 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.3918, allocations: 47.73 kB / 493.3 MB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.3918, allocations: 20 kB / 493.3 MB, free: 11.72 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,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 (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.0001281/0.3919, allocations: 131.5 kB / 493.5 MB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.76e-05/0.392, allocations: 43.47 kB / 493.5 MB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000591/0.3926, allocations: 350.1 kB / 493.9 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.3926, allocations: 11.84 kB / 493.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3926, allocations: 4 kB / 493.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3926, allocations: 0 / 493.9 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.3939, allocations: 0.8794 MB / 494.8 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3939, allocations: 3.938 kB / 494.8 MB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003439/0.3942, allocations: 72.02 kB / 494.8 MB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001883/0.3944, allocations: 62.62 kB / 494.9 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/0.3945, allocations: 4 kB / 494.9 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/0.3957, allocations: 1.506 MB / 496.4 MB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/0.3957, allocations: 7.984 kB / 496.4 MB, free: 8.469 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007645/0.3965, allocations: 0.6087 MB / 497 MB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001044/0.3975, allocations: 1.136 MB / 498.2 MB, free: 6.648 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.3977, allocations: 152.5 kB / 498.3 MB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.304e-05/0.3977, allocations: 4 kB / 498.3 MB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003508/0.3981, allocations: 39.97 kB / 498.3 MB, free: 6.438 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.071e-05/0.3982, allocations: 39.84 kB / 498.4 MB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-05/0.3982, allocations: 16 kB / 498.4 MB, free: 6.383 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.000168/0.3984, allocations: 203.1 kB / 498.6 MB, free: 6.188 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001765/0.4002, allocations: 219.1 kB / 498.8 MB, free: 5.973 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * 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_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 (37): * Single equations (assignments): 30 * 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.000149/0.4003, allocations: 130.7 kB / 498.9 MB, free: 5.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009876/0.4013, allocations: 0.7452 MB / 499.7 MB, free: 5.066 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4014, allocations: 0 / 499.7 MB, free: 5.066 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003537/0.4017, allocations: 277.5 kB / 500 MB, free: 4.785 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.4021, allocations: 59.75 kB / 0.4883 GB, free: 4.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.4036, allocations: 0.7287 MB / 0.489 GB, free: 3.961 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004538/0.404, allocations: 0.9098 MB / 0.4899 GB, free: 3.023 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.404, allocations: 0 / 0.4899 GB, free: 3.023 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat