Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001443/0.001443, allocations: 209.3 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.162/1.162, allocations: 225.5 MB / 234.4 MB, free: 3.473 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009521/0.0009521, allocations: 93.36 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08972/0.09071, allocations: 56.91 MB / 343.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08216/0.1729, allocations: 51.49 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2241/0.397, allocations: 87.03 MB / 481.8 MB, free: 6.188 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.3972, allocations: 90.81 kB / 481.8 MB, free: 6.137 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.0262/0.4235, allocations: 10.72 MB / 492.6 MB, free: 13.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.4235, allocations: 8 kB / 492.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.4237, allocations: 71.23 kB / 492.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005869/0.4243, allocations: 398 kB / 493 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.919e-05/0.4243, allocations: 16 kB / 493.1 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.93e-05/0.4244, allocations: 31.98 kB / 493.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000529/0.4249, allocations: 282.5 kB / 493.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006411/0.4256, allocations: 407.1 kB / 493.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.4256, allocations: 4 kB / 493.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.91e-05/0.4256, allocations: 5.781 kB / 493.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.4257, allocations: 15.91 kB / 493.8 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.4281, allocations: 1.685 MB / 495.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000682/0.4288, allocations: 325.1 kB / 495.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003926/0.4292, allocations: 199 kB / 496 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.545e-05/0.4293, allocations: 7.938 kB / 496 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003283/0.4296, allocations: 216.7 kB / 496.2 MB, free: 10.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.653e-06/0.4296, allocations: 0 / 496.2 MB, free: 10.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0006196/0.4303, allocations: 325.9 kB / 496.5 MB, free: 9.879 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.4303, allocations: 114.6 kB / 496.6 MB, free: 9.742 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003051/0.4306, allocations: 278 kB / 496.9 MB, free: 9.523 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.4307, allocations: 29.7 kB / 496.9 MB, free: 9.488 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.4308, allocations: 211.5 kB / 497.1 MB, free: 9.301 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.68e-05/0.4309, allocations: 117.6 kB / 497.3 MB, free: 9.199 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.012e-05/0.431, allocations: 0 / 497.3 MB, free: 9.199 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.4311, allocations: 365.3 kB / 497.6 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000182/0.4313, allocations: 98.88 kB / 497.7 MB, free: 8.793 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002416/0.4315, allocations: 224.7 kB / 497.9 MB, free: 8.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.4317, allocations: 113.7 kB / 498 MB, free: 8.508 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.4317, allocations: 6.438 kB / 498 MB, free: 8.504 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006511/0.4324, allocations: 403.4 kB / 498.4 MB, free: 8.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003902/0.4328, allocations: 1.31 MB / 499.7 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.4328, allocations: 7.281 kB / 499.8 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000285/0.4331, allocations: 68.31 kB / 499.8 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003862/0.4335, allocations: 91.77 kB / 499.9 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.4349, allocations: 1.511 MB / 0.4897 GB, free: 5.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003871/0.4353, allocations: 55.78 kB / 0.4897 GB, free: 5.129 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.4354, allocations: 19.94 kB / 0.4897 GB, free: 5.113 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.322e-06/0.4354, allocations: 2.188 kB / 0.4897 GB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005382/0.4359, allocations: 329.5 kB / 0.4901 GB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.4359, allocations: 4 kB / 0.4901 GB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001976/0.4361, allocations: 76.25 kB / 0.4901 GB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003301/0.4365, allocations: 87.83 kB / 0.4902 GB, free: 4.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.4377, allocations: 1.504 MB / 0.4917 GB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000347/0.4381, allocations: 47.78 kB / 0.4917 GB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.4381, allocations: 23.25 kB / 0.4918 GB, free: 3.191 MB / 362.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.0001346/0.4382, allocations: 135 kB / 0.4919 GB, free: 3.059 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.832e-05/0.4383, allocations: 39.53 kB / 0.4919 GB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006007/0.4389, allocations: 354.1 kB / 0.4923 GB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.4389, allocations: 8 kB / 0.4923 GB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.4389, allocations: 0 / 0.4923 GB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.439, allocations: 1.688 kB / 0.4923 GB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.4402, allocations: 0.8708 MB / 0.4931 GB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4402, allocations: 0 / 0.4931 GB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003528/0.4406, allocations: 79.02 kB / 0.4932 GB, free: 1.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001913/0.4408, allocations: 68.19 kB / 0.4933 GB, free: 1.914 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.4408, allocations: 7.906 kB / 0.4933 GB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001207/0.442, allocations: 1.493 MB / 0.4947 GB, free: 448 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.442, allocations: 0 / 0.4947 GB, free: 448 kB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008592/0.4429, allocations: 0.619 MB / 0.4953 GB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001088/0.444, allocations: 1.137 MB / 0.4964 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.4442, allocations: 156.2 kB / 0.4966 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.278e-05/0.4443, allocations: 7.062 kB / 0.4966 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003911/0.4447, allocations: 43.95 kB / 0.4966 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.723e-05/0.4448, allocations: 31.2 kB / 0.4967 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.505e-05/0.4448, allocations: 19.61 kB / 0.4967 GB, free: 14.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002245/0.445, allocations: 208.5 kB / 0.4969 GB, free: 14.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001992/0.447, allocations: 213.8 kB / 0.4971 GB, free: 14.38 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.0001684/0.4472, allocations: 138.9 kB / 0.4972 GB, free: 14.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001094/0.4483, allocations: 0.7466 MB / 0.4979 GB, free: 13.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4483, allocations: 0 / 0.4979 GB, free: 13.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003528/0.4487, allocations: 279.4 kB / 0.4982 GB, free: 13.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004214/0.4491, allocations: 70.91 kB / 0.4983 GB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.4507, allocations: 0.7338 MB / 0.499 GB, free: 12.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004652/0.4512, allocations: 0.9016 MB / 0.4999 GB, free: 11.7 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4512, allocations: 0 / 0.4999 GB, free: 11.7 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat