Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.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.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.306/1.306, allocations: 221.5 MB / 230.3 MB, free: 7.582 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.0008781/0.0008781, allocations: 95.38 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.867e-05/1.871e-05, allocations: 0 / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08838/0.08842, allocations: 50.42 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3061/0.3945, allocations: 85.13 MB / 472.7 MB, free: 9.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.3948, allocations: 87.94 kB / 472.8 MB, free: 9.477 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02556/0.4204, allocations: 9.689 MB / 482.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4204, allocations: 0 / 482.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.928e-05/0.4205, allocations: 12 kB / 482.5 MB, free: 15.72 MB / 362.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.001202/0.4217, allocations: 0.7645 MB / 483.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.4217, allocations: 11.97 kB / 483.3 MB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.4219, allocations: 67.23 kB / 483.3 MB, free: 14.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005059/0.4224, allocations: 384.8 kB / 483.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.4224, allocations: 23.94 kB / 483.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.645e-05/0.4225, allocations: 35.94 kB / 483.8 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005107/0.423, allocations: 278.6 kB / 484 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006413/0.4237, allocations: 406.8 kB / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.4237, allocations: 4 kB / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.068e-05/0.4237, allocations: 0 / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.4237, allocations: 15.94 kB / 484.5 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.426, allocations: 1.671 MB / 486.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007271/0.4268, allocations: 360.7 kB / 486.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003802/0.4271, allocations: 205.4 kB / 486.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.4272, allocations: 8 kB / 486.7 MB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003743/0.4276, allocations: 248.6 kB / 486.9 MB, free: 11.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.4276, allocations: 0 / 486.9 MB, free: 11.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0005734/0.4282, allocations: 341.5 kB / 487.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.33e-05/0.4282, allocations: 110.6 kB / 487.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002566/0.4285, allocations: 273.6 kB / 487.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.589e-05/0.4285, allocations: 29.7 kB / 487.7 MB, free: 10.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.4287, allocations: 244.8 kB / 487.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.971e-05/0.4288, allocations: 122.2 kB / 488 MB, free: 9.914 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.941e-05/0.4288, allocations: 0 / 488 MB, free: 9.914 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.4289, allocations: 354.8 kB / 488.4 MB, free: 9.559 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.4291, allocations: 101.1 kB / 488.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002454/0.4294, allocations: 230.9 kB / 488.7 MB, free: 9.184 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.4296, allocations: 121.1 kB / 488.8 MB, free: 9.066 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.4296, allocations: 4 kB / 488.8 MB, free: 9.062 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006022/0.4302, allocations: 393.9 kB / 489.2 MB, free: 8.668 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003992/0.4306, allocations: 1.344 MB / 490.5 MB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.4306, allocations: 4 kB / 490.6 MB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00027/0.4309, allocations: 64.83 kB / 490.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.4312, allocations: 91.88 kB / 490.7 MB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001389/0.4326, allocations: 1.634 MB / 492.3 MB, free: 5.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.433, allocations: 63.67 kB / 492.4 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.433, allocations: 20 kB / 492.4 MB, free: 5.219 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.244e-06/0.4331, allocations: 4 kB / 492.4 MB, free: 5.215 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005363/0.4336, allocations: 347.6 kB / 492.8 MB, free: 4.871 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.4336, allocations: 4 kB / 492.8 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001794/0.4338, allocations: 68.89 kB / 492.8 MB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.4341, allocations: 92.23 kB / 492.9 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001254/0.4354, allocations: 1.627 MB / 494.6 MB, free: 2.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000305/0.4357, allocations: 43.67 kB / 494.6 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.4357, allocations: 20 kB / 494.6 MB, free: 2.902 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,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.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.0001477/0.4359, allocations: 127 kB / 494.7 MB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005272/0.4364, allocations: 333.8 kB / 495.1 MB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.852e-05/0.4365, allocations: 43.53 kB / 495.1 MB, free: 2.395 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005903/0.4371, allocations: 346.9 kB / 495.4 MB, free: 2.043 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.4371, allocations: 4.047 kB / 495.5 MB, free: 2.039 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.4371, allocations: 7.984 kB / 495.5 MB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4371, allocations: 3.938 kB / 495.5 MB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.4384, allocations: 0.8874 MB / 496.4 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.4384, allocations: 64 / 496.4 MB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003203/0.4387, allocations: 71.89 kB / 496.4 MB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002197/0.439, allocations: 76.83 kB / 496.5 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/0.439, allocations: 4 kB / 496.5 MB, free: 0.9336 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.4403, allocations: 1.626 MB / 498.1 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.4403, allocations: 3.984 kB / 498.1 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007716/0.4411, allocations: 0.6019 MB / 498.7 MB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.4413, allocations: 152.6 kB / 498.9 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.629e-05/0.4413, allocations: 4 kB / 498.9 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/0.4417, allocations: 31.95 kB / 498.9 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.4418, allocations: 43.94 kB / 499 MB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.841e-05/0.4418, allocations: 12 kB / 499 MB, free: 14.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001856/0.442, allocations: 208.6 kB / 499.2 MB, free: 14.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.442, allocations: 0 / 499.2 MB, free: 14.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008613/0.4429, allocations: 223.2 kB / 499.4 MB, free: 13.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.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 (36): * Single equations (assignments): 29 * 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.001085/0.444, allocations: 1.238 MB / 0.4889 GB, free: 12.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001107/0.4451, allocations: 0.8379 MB / 0.4897 GB, free: 11.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4451, allocations: 4.312 kB / 0.4897 GB, free: 11.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00033/0.4454, allocations: 281.5 kB / 0.49 GB, free: 11.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000401/0.4459, allocations: 61.53 kB / 0.49 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.4476, allocations: 0.7849 MB / 0.4908 GB, free: 10.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.448, allocations: 0.8596 MB / 0.4917 GB, free: 9.652 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002791/0.4483, allocations: 67.23 kB / 0.4917 GB, free: 9.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.4485, allocations: 159.3 kB / 0.4919 GB, free: 9.434 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.4485, allocations: 0 / 0.4919 GB, free: 9.434 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02982/0.4783, allocations: 9.595 MB / 0.5012 GB, free: 15.93 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/0.4786, allocations: 174.3 kB / 0.5014 GB, free: 15.74 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.092/2.57, allocations: 0 / 0.5014 GB, free: 15.74 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat does not exist to compare? outputFormat=mat