Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_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: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 181.5 kB / 8.478 MB, free: 1.789 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.021/1.021, allocations: 205.2 MB / 214.1 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.0008247/0.0008247, allocations: 95.77 kB / 262.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08438/0.08523, allocations: 52.99 MB / 315.1 MB, free: 8.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1718/0.257, allocations: 47.56 MB / 362.6 MB, free: 45.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07752/0.3346, allocations: 82.52 MB / 445.2 MB, free: 3.352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002215/0.3349, allocations: 83.94 kB / 445.3 MB, free: 3.27 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.01896/0.3539, allocations: 7.388 MB / 452.6 MB, free: 11.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.3539, allocations: 14.16 kB / 452.7 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.354, allocations: 47.44 kB / 452.7 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005127/0.3545, allocations: 371.4 kB / 453.1 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.3546, allocations: 12 kB / 453.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.054e-05/0.3546, allocations: 32 kB / 453.1 MB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004595/0.3551, allocations: 233.5 kB / 453.3 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005815/0.3557, allocations: 359.8 kB / 453.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.3557, allocations: 0 / 453.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.3558, allocations: 7.984 kB / 453.7 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.3558, allocations: 8 kB / 453.7 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.358, allocations: 1.497 MB / 455.2 MB, free: 9.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003545/0.3583, allocations: 230.8 kB / 455.4 MB, free: 8.922 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.3586, allocations: 136.8 kB / 455.6 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.816e-05/0.3586, allocations: 4 kB / 455.6 MB, free: 8.781 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002886/0.3589, allocations: 196.1 kB / 455.8 MB, free: 8.566 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 3.427e-06/0.3589, allocations: 3.984 kB / 455.8 MB, free: 8.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.0005132/0.3595, allocations: 263.7 kB / 456 MB, free: 8.297 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.669e-05/0.3595, allocations: 149.8 kB / 456.2 MB, free: 8.121 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.3598, allocations: 255.3 kB / 456.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.3599, allocations: 33.7 kB / 456.4 MB, free: 7.832 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.36, allocations: 192.3 kB / 456.6 MB, free: 7.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.557e-05/0.3601, allocations: 98.56 kB / 456.7 MB, free: 7.539 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/0.3601, allocations: 0 / 456.7 MB, free: 7.539 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3602, allocations: 338.8 kB / 457.1 MB, free: 7.199 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.3604, allocations: 80.88 kB / 457.1 MB, free: 7.121 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002398/0.3607, allocations: 211.2 kB / 457.3 MB, free: 6.852 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.3608, allocations: 106.2 kB / 457.4 MB, free: 6.75 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.3609, allocations: 0 / 457.4 MB, free: 6.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005615/0.3614, allocations: 355.5 kB / 457.8 MB, free: 6.395 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005542/0.362, allocations: 1.395 MB / 459.2 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.362, allocations: 5.594 kB / 459.2 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003016/0.3623, allocations: 76.81 kB / 459.3 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.3626, allocations: 63.84 kB / 459.3 MB, free: 4.746 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/0.3642, allocations: 1.597 MB / 460.9 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003467/0.3646, allocations: 59.72 kB / 461 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.3646, allocations: 16 kB / 461 MB, free: 2.965 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.442e-06/0.3646, allocations: 4 kB / 461 MB, free: 2.961 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000491/0.3651, allocations: 289.4 kB / 461.3 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3651, allocations: 0 / 461.3 MB, free: 2.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002276/0.3654, allocations: 86.22 kB / 461.4 MB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.3656, allocations: 55.8 kB / 461.4 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.3673, allocations: 1.718 MB / 463.1 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002981/0.3676, allocations: 35.89 kB / 463.2 MB, free: 0.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.3676, allocations: 16 kB / 463.2 MB, free: 0.6523 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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,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 (39): * Single equations (assignments): 37 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001499/0.3678, allocations: 136.1 kB / 463.3 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.846e-05/0.3679, allocations: 31.62 kB / 463.4 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.503e-05/0.368, allocations: 35.09 kB / 463.4 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.368, allocations: 8 kB / 463.4 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.368, allocations: 0 / 463.4 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.368, allocations: 0 / 463.4 MB, free: 448 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.3692, allocations: 0.8548 MB / 464.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3692, allocations: 3.906 kB / 464.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.3693, allocations: 27.92 kB / 464.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002118/0.3695, allocations: 77.22 kB / 464.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.3696, allocations: 3.938 kB / 464.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001458/0.371, allocations: 1.557 MB / 465.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3711, allocations: 0 / 465.9 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006691/0.3717, allocations: 0.5026 MB / 466.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009545/0.3727, allocations: 1.003 MB / 467.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.3729, allocations: 144.7 kB / 467.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.91e-05/0.3729, allocations: 4 kB / 467.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002888/0.3732, allocations: 27.97 kB / 467.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.664e-05/0.3733, allocations: 35.95 kB / 467.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.232e-05/0.3733, allocations: 8 kB / 467.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001799/0.3735, allocations: 195.1 kB / 467.8 MB, free: 11.76 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001797/0.3753, allocations: 183.4 kB / 468 MB, free: 11.58 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * 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,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 (26): * Single equations (assignments): 19 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000164/0.3755, allocations: 127.2 kB / 468.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001017/0.3765, allocations: 0.6875 MB / 468.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3765, allocations: 0 / 468.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000319/0.3769, allocations: 237.8 kB / 469.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003472/0.3772, allocations: 47.47 kB / 469.1 MB, free: 10.44 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001272/0.3785, allocations: 0.5306 MB / 469.6 MB, free: 9.879 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004225/0.3789, allocations: 0.8549 MB / 470.5 MB, free: 8.996 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.379, allocations: 0 / 470.5 MB, free: 8.996 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat