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_RL.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_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",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.001598/0.001598, allocations: 182.5 kB / 8.134 MB, free: 2.211 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.108/1.108, allocations: 221.4 MB / 229.9 MB, free: 2.996 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.0009179/0.0009179, allocations: 90.97 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08556/0.08651, allocations: 55.83 MB / 336.6 MB, free: 9.391 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1778/0.2643, allocations: 50.4 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08417/0.3486, allocations: 85.25 MB / 472.3 MB, free: 1.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.3488, allocations: 87.88 kB / 472.3 MB, free: 1.414 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.02809/0.3769, allocations: 10.61 MB / 483 MB, free: 6.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.377, allocations: 8 kB / 483 MB, free: 6.742 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.3771, allocations: 71.09 kB / 483 MB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006545/0.3778, allocations: 403.5 kB / 483.4 MB, free: 6.238 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.3778, allocations: 16 kB / 483.4 MB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.17e-05/0.3779, allocations: 28 kB / 483.5 MB, free: 6.195 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005869/0.3785, allocations: 290 kB / 483.8 MB, free: 5.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007222/0.3792, allocations: 426.7 kB / 484.2 MB, free: 5.473 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.3792, allocations: 3.906 kB / 484.2 MB, free: 5.469 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/0.3793, allocations: 4 kB / 484.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.3793, allocations: 12 kB / 484.2 MB, free: 5.453 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002683/0.382, allocations: 1.759 MB / 486 MB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000556/0.3826, allocations: 210.4 kB / 486.2 MB, free: 3.383 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004068/0.383, allocations: 213.6 kB / 486.4 MB, free: 3.172 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.887e-05/0.383, allocations: 12.27 kB / 486.4 MB, free: 3.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003487/0.3834, allocations: 228.9 kB / 486.6 MB, free: 2.922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 1.703e-06/0.3834, allocations: 0 / 486.6 MB, free: 2.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0006275/0.384, allocations: 321.9 kB / 486.9 MB, free: 2.598 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.887e-05/0.3841, allocations: 114.8 kB / 487 MB, free: 2.461 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002864/0.3844, allocations: 277.8 kB / 487.3 MB, free: 2.184 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.3845, allocations: 33.69 kB / 487.3 MB, free: 2.145 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.3846, allocations: 208.7 kB / 487.5 MB, free: 1.938 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.3847, allocations: 134.1 kB / 487.7 MB, free: 1.805 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.108e-05/0.3847, allocations: 0 / 487.7 MB, free: 1.805 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3849, allocations: 346.8 kB / 488 MB, free: 1.457 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.3851, allocations: 120.9 kB / 488.1 MB, free: 1.34 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002836/0.3854, allocations: 223 kB / 488.3 MB, free: 1.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.3856, allocations: 137.8 kB / 488.5 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.3856, allocations: 0 / 488.5 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000662/0.3863, allocations: 413.5 kB / 488.9 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004706/0.3868, allocations: 1.304 MB / 490.2 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.3868, allocations: 4 kB / 490.2 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002668/0.387, allocations: 72.73 kB / 490.3 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.3874, allocations: 95.83 kB / 490.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.3888, allocations: 1.508 MB / 491.9 MB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003721/0.3892, allocations: 59.72 kB / 491.9 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.962e-05/0.3893, allocations: 16 kB / 491.9 MB, free: 13.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/0.3893, allocations: 6.812 kB / 491.9 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005724/0.3899, allocations: 332.8 kB / 492.3 MB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.3899, allocations: 8 kB / 492.3 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001938/0.3901, allocations: 76.84 kB / 492.3 MB, free: 12.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000342/0.3904, allocations: 91.83 kB / 492.4 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.3919, allocations: 1.508 MB / 493.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004771/0.3924, allocations: 47.66 kB / 494 MB, free: 11.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.84e-05/0.3924, allocations: 20 kB / 494 MB, free: 11.06 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 (53): * Single equations (assignments): 51 * 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.0001635/0.3926, allocations: 127.6 kB / 494.1 MB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.633e-05/0.3927, allocations: 39.53 kB / 494.2 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006517/0.3933, allocations: 365.7 kB / 494.5 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.3933, allocations: 8 kB / 494.5 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.3933, allocations: 0 / 494.5 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.3934, allocations: 3.984 kB / 494.5 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.3947, allocations: 0.9074 MB / 495.5 MB, free: 9.547 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3947, allocations: 3.938 kB / 495.5 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003856/0.3951, allocations: 75.95 kB / 495.5 MB, free: 9.469 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001994/0.3953, allocations: 68.81 kB / 495.6 MB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/0.3953, allocations: 11.89 kB / 495.6 MB, free: 9.387 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001306/0.3967, allocations: 1.5 MB / 497.1 MB, free: 7.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.3967, allocations: 4.062 kB / 497.1 MB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008462/0.3975, allocations: 0.6193 MB / 497.7 MB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001193/0.3987, allocations: 1.167 MB / 498.9 MB, free: 5.902 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000179/0.3989, allocations: 148.5 kB / 499 MB, free: 5.738 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.925e-05/0.399, allocations: 8 kB / 499.1 MB, free: 5.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003663/0.3994, allocations: 35.97 kB / 499.1 MB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.3995, allocations: 43.94 kB / 499.1 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/0.3995, allocations: 15.98 kB / 499.1 MB, free: 5.637 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002094/0.3997, allocations: 208.6 kB / 499.3 MB, free: 5.434 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001989/0.4017, allocations: 223.1 kB / 499.6 MB, free: 5.215 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v,loadInductor.i) * 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 (39): * Single equations (assignments): 32 * 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.0001938/0.4019, allocations: 116.9 kB / 499.7 MB, free: 5.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.4032, allocations: 0.7702 MB / 0.4887 GB, free: 4.285 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4032, allocations: 0 / 0.4887 GB, free: 4.285 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004062/0.4036, allocations: 279.3 kB / 0.489 GB, free: 4.004 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004458/0.4041, allocations: 77.52 kB / 0.4891 GB, free: 3.934 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.4059, allocations: 0.812 MB / 0.4899 GB, free: 3.082 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005589/0.4065, allocations: 0.9105 MB / 0.4907 GB, free: 2.141 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4065, allocations: 0 / 0.4907 GB, free: 2.141 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.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_RL_res.mat does not exist to compare? outputFormat=mat