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_RL.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_RL,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009312/0.0009312, allocations: 174.8 kB / 8.476 MB, free: 1.871 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.064/1.064, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007938/0.0007938, allocations: 83.33 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1497/0.1506, allocations: 53 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05907/0.2096, allocations: 47.56 MB / 362.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1903/0.4, allocations: 82.81 MB / 445.5 MB, free: 10.99 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.4002, allocations: 83.53 kB / 445.5 MB, free: 10.99 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.0177/0.4179, allocations: 7.727 MB / 453.3 MB, free: 8.047 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.871e-05/0.418, allocations: 7.688 kB / 453.3 MB, free: 8.047 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.4181, allocations: 62.38 kB / 453.3 MB, free: 8.012 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004843/0.4186, allocations: 374.3 kB / 453.7 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.958e-05/0.4186, allocations: 11.22 kB / 453.7 MB, free: 7.727 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.121e-05/0.4187, allocations: 34.75 kB / 453.8 MB, free: 7.719 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004417/0.4191, allocations: 251.6 kB / 454 MB, free: 7.707 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000529/0.4197, allocations: 366.8 kB / 454.4 MB, free: 7.578 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.4197, allocations: 6.844 kB / 454.4 MB, free: 7.574 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.4198, allocations: 3.844 kB / 454.4 MB, free: 7.574 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.4198, allocations: 7.531 kB / 454.4 MB, free: 7.574 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.4218, allocations: 1.589 MB / 456 MB, free: 6.535 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003966/0.4222, allocations: 230.8 kB / 456.2 MB, free: 6.496 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002337/0.4224, allocations: 144.9 kB / 456.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.4225, allocations: 3.844 kB / 456.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002416/0.4227, allocations: 209.5 kB / 456.5 MB, free: 6.363 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 1.763e-06/0.4227, allocations: 0 / 456.5 MB, free: 6.363 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0004522/0.4232, allocations: 270.9 kB / 456.8 MB, free: 6.289 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.4232, allocations: 139.4 kB / 456.9 MB, free: 6.129 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.4235, allocations: 261.9 kB / 457.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.4235, allocations: 29.69 kB / 457.2 MB, free: 5.973 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.356e-05/0.4236, allocations: 198.2 kB / 457.4 MB, free: 5.816 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.743e-05/0.4236, allocations: 103.2 kB / 457.5 MB, free: 5.746 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/0.4237, allocations: 4.031 kB / 457.5 MB, free: 5.742 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.4237, allocations: 342.7 kB / 457.9 MB, free: 5.422 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.4239, allocations: 85.97 kB / 457.9 MB, free: 5.418 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.424, allocations: 214.6 kB / 458.1 MB, free: 5.262 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.4242, allocations: 102.1 kB / 458.2 MB, free: 5.242 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4242, allocations: 3.844 kB / 458.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000508/0.4247, allocations: 363.6 kB / 458.6 MB, free: 5.137 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001914/0.4249, allocations: 1.401 MB / 460 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.4249, allocations: 3.625 kB / 460 MB, free: 3.664 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002662/0.4252, allocations: 67.77 kB / 460.1 MB, free: 3.648 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.4255, allocations: 77.98 kB / 460.2 MB, free: 3.625 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001255/0.4267, allocations: 1.648 MB / 461.8 MB, free: 2.254 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003436/0.4271, allocations: 59.34 kB / 461.9 MB, free: 2.227 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.037e-05/0.4271, allocations: 18.03 kB / 461.9 MB, free: 2.227 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.493e-06/0.4271, allocations: 7.844 kB / 461.9 MB, free: 2.223 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004498/0.4276, allocations: 286.8 kB / 462.2 MB, free: 2.172 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4276, allocations: 4.062 kB / 462.2 MB, free: 2.172 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001962/0.4278, allocations: 84.56 kB / 462.3 MB, free: 2.145 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/0.428, allocations: 53.11 kB / 462.3 MB, free: 2.137 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.4293, allocations: 1.645 MB / 463.9 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/0.4297, allocations: 42.86 kB / 464 MB, free: 16.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.4297, allocations: 16.62 kB / 464 MB, free: 16.75 MB / 330.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 (43): * Single equations (assignments): 41 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.000137/0.4299, allocations: 127.6 kB / 464.1 MB, free: 16.62 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.138e-05/0.4299, allocations: 41.28 kB / 464.2 MB, free: 16.6 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.244e-05/0.43, allocations: 37.58 kB / 464.2 MB, free: 16.58 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.43, allocations: 3.844 kB / 464.2 MB, free: 16.58 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.43, allocations: 1.219 kB / 464.2 MB, free: 16.58 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.43, allocations: 1.312 kB / 464.2 MB, free: 16.58 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.4311, allocations: 0.8708 MB / 465.1 MB, free: 16.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.4311, allocations: 5.016 kB / 465.1 MB, free: 16.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.4313, allocations: 34.27 kB / 465.1 MB, free: 16.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001828/0.4315, allocations: 67.38 kB / 465.2 MB, free: 16.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.4315, allocations: 5.344 kB / 465.2 MB, free: 16.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001255/0.4328, allocations: 1.506 MB / 466.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.4328, allocations: 3.969 kB / 466.7 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006223/0.4334, allocations: 0.5135 MB / 467.2 MB, free: 14.56 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000922/0.4343, allocations: 1.014 MB / 468.2 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.4345, allocations: 140 kB / 468.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.303e-05/0.4346, allocations: 6.531 kB / 468.4 MB, free: 13.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.4349, allocations: 35 kB / 468.4 MB, free: 13.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.28e-05/0.435, allocations: 27.61 kB / 468.4 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.149e-05/0.435, allocations: 15.52 kB / 468.5 MB, free: 13.81 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002286/0.4353, allocations: 192.8 kB / 468.6 MB, free: 13.72 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001922/0.4372, allocations: 194.6 kB / 468.8 MB, free: 13.68 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.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,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 (29): * Single equations (assignments): 22 * 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.0001591/0.4374, allocations: 129.1 kB / 469 MB, free: 13.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001003/0.4384, allocations: 0.6836 MB / 469.6 MB, free: 13.26 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4384, allocations: 0.6875 kB / 469.6 MB, free: 13.26 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003074/0.4387, allocations: 249.1 kB / 469.9 MB, free: 13.14 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.439, allocations: 54.67 kB / 469.9 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.4404, allocations: 0.5851 MB / 470.5 MB, free: 12.81 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004595/0.4408, allocations: 0.8651 MB / 471.4 MB, free: 12.03 MB / 330.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4408, allocations: 0 / 471.4 MB, free: 12.03 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.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_RL_res.mat does not exist to compare? outputFormat=mat