Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.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_RL,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001224/0.001224, allocations: 199.4 kB / 8.543 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008825/0.0008825, allocations: 97.38 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08988/0.09079, allocations: 56.92 MB / 343.3 MB, free: 8.617 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07815/0.169, allocations: 51.46 MB / 394.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2224/0.3914, allocations: 87.24 MB / 482 MB, free: 5.977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.3916, allocations: 87.94 kB / 482.1 MB, free: 5.926 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.02761/0.4193, allocations: 11.08 MB / 493.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.4193, allocations: 8 kB / 493.1 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.4195, allocations: 63.25 kB / 493.2 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000727/0.4202, allocations: 408.6 kB / 493.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.4203, allocations: 23.91 kB / 493.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-05/0.4204, allocations: 34.44 kB / 493.7 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005802/0.421, allocations: 292.8 kB / 493.9 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007127/0.4217, allocations: 422.3 kB / 494.4 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.4217, allocations: 0 / 494.4 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/0.4218, allocations: 3.984 kB / 494.4 MB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.4218, allocations: 12 kB / 494.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002694/0.4245, allocations: 1.774 MB / 496.1 MB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005654/0.4251, allocations: 205.9 kB / 496.3 MB, free: 9.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004142/0.4255, allocations: 206.6 kB / 496.5 MB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.971e-05/0.4255, allocations: 8.328 kB / 496.6 MB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000341/0.4259, allocations: 228.6 kB / 496.8 MB, free: 9.598 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 2.585e-06/0.4259, allocations: 4 kB / 496.8 MB, free: 9.594 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0006476/0.4266, allocations: 331.9 kB / 497.1 MB, free: 9.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.226e-05/0.4266, allocations: 118.8 kB / 497.2 MB, free: 9.199 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003225/0.427, allocations: 276.7 kB / 497.5 MB, free: 8.977 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.427, allocations: 37.08 kB / 497.5 MB, free: 8.938 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.4272, allocations: 212.8 kB / 497.7 MB, free: 8.746 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/0.4273, allocations: 132.8 kB / 497.9 MB, free: 8.633 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/0.4273, allocations: 0 / 497.9 MB, free: 8.633 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4275, allocations: 357.2 kB / 498.2 MB, free: 8.293 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.4277, allocations: 103.7 kB / 498.3 MB, free: 8.234 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002906/0.428, allocations: 235.8 kB / 498.5 MB, free: 8.012 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.4282, allocations: 124.1 kB / 498.7 MB, free: 7.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.4282, allocations: 4 kB / 498.7 MB, free: 7.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000695/0.4289, allocations: 415.1 kB / 499.1 MB, free: 7.609 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003991/0.4293, allocations: 1.306 MB / 0.4887 GB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.4293, allocations: 4 kB / 0.4887 GB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002943/0.4296, allocations: 75.16 kB / 0.4887 GB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004076/0.43, allocations: 103.2 kB / 0.4888 GB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.4315, allocations: 1.507 MB / 0.4903 GB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/0.4319, allocations: 55.72 kB / 0.4904 GB, free: 4.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.652e-05/0.432, allocations: 19.69 kB / 0.4904 GB, free: 4.512 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.814e-06/0.432, allocations: 4 kB / 0.4904 GB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000621/0.4326, allocations: 338.1 kB / 0.4907 GB, free: 4.266 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.4327, allocations: 4 kB / 0.4907 GB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002183/0.4329, allocations: 70.81 kB / 0.4908 GB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004113/0.4333, allocations: 95.86 kB / 0.4909 GB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001386/0.4347, allocations: 1.507 MB / 0.4923 GB, free: 2.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004019/0.4351, allocations: 47.78 kB / 0.4924 GB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-05/0.4352, allocations: 21 kB / 0.4924 GB, free: 2.578 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 (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.0002025/0.4354, allocations: 126.4 kB / 0.4925 GB, free: 2.449 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.4355, allocations: 39.53 kB / 0.4926 GB, free: 2.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007249/0.4362, allocations: 375.5 kB / 0.4929 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.131e-06/0.4363, allocations: 9.5 kB / 0.4929 GB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.4363, allocations: 0 / 0.4929 GB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.4363, allocations: 7.922 kB / 0.4929 GB, free: 2.121 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.4377, allocations: 0.8925 MB / 0.4938 GB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.4378, allocations: 0 / 0.4938 GB, free: 1.383 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003887/0.4382, allocations: 82.61 kB / 0.4939 GB, free: 1.305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/0.4384, allocations: 73.98 kB / 0.494 GB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.319e-05/0.4384, allocations: 7.375 kB / 0.494 GB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001397/0.4398, allocations: 1.501 MB / 0.4954 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4398, allocations: 0 / 0.4954 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009061/0.4408, allocations: 0.6286 MB / 0.496 GB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001146/0.4419, allocations: 1.16 MB / 0.4972 GB, free: 14.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001986/0.4421, allocations: 157.5 kB / 0.4973 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.149e-05/0.4422, allocations: 1.5 kB / 0.4973 GB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003754/0.4426, allocations: 45.64 kB / 0.4974 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.4427, allocations: 35.2 kB / 0.4974 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.102e-05/0.4428, allocations: 15.23 kB / 0.4974 GB, free: 14.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00021/0.443, allocations: 212.1 kB / 0.4976 GB, free: 13.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00187/0.4449, allocations: 230.5 kB / 0.4978 GB, free: 13.67 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.0001698/0.445, allocations: 120.9 kB / 0.498 GB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001133/0.4462, allocations: 0.7744 MB / 0.4987 GB, free: 12.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.4462, allocations: 4.125 kB / 0.4987 GB, free: 12.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003624/0.4466, allocations: 277.2 kB / 0.499 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.447, allocations: 69.67 kB / 0.499 GB, free: 12.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.4488, allocations: 0.8132 MB / 0.4998 GB, free: 11.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005153/0.4493, allocations: 0.9117 MB / 0.5007 GB, free: 10.91 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.4493, allocations: 0 / 0.5007 GB, free: 10.91 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat