Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_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.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001232/0.001232, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.0007863/0.0007861, allocations: 78.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.733e-05/1.735e-05, allocations: 0 / 315.6 MB, free: 22.6 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09642/0.09646, allocations: 47.58 MB / 363.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3039/0.4004, allocations: 82.7 MB / 445.9 MB, free: 12.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.4006, allocations: 90.31 kB / 446 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01946/0.4201, allocations: 7.569 MB / 453.5 MB, free: 6.402 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4201, allocations: 0 / 453.5 MB, free: 6.402 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.939e-05/0.4202, allocations: 12 kB / 453.5 MB, free: 6.391 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001173/0.4214, allocations: 0.7177 MB / 454.3 MB, free: 5.656 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.4214, allocations: 12.03 kB / 454.3 MB, free: 5.645 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001064/0.4215, allocations: 59.25 kB / 454.3 MB, free: 5.586 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.4221, allocations: 378.9 kB / 454.7 MB, free: 5.223 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.4221, allocations: 16 kB / 454.7 MB, free: 5.207 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/0.4222, allocations: 24 kB / 454.7 MB, free: 5.184 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004814/0.4227, allocations: 264.2 kB / 455 MB, free: 5.027 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006088/0.4233, allocations: 395.6 kB / 455.4 MB, free: 4.723 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.4233, allocations: 7.938 kB / 455.4 MB, free: 4.715 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.839e-05/0.4234, allocations: 4 kB / 455.4 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.4234, allocations: 15.94 kB / 455.4 MB, free: 4.695 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.4256, allocations: 1.61 MB / 457 MB, free: 3.305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005717/0.4262, allocations: 291.9 kB / 457.3 MB, free: 3.121 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003802/0.4266, allocations: 192.1 kB / 457.5 MB, free: 2.984 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.4266, allocations: 4 kB / 457.5 MB, free: 2.98 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003716/0.427, allocations: 223.2 kB / 457.7 MB, free: 2.793 MB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 1.583e-06/0.427, allocations: 0 / 457.7 MB, free: 2.793 MB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.0005626/0.4276, allocations: 319.8 kB / 458 MB, free: 2.543 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/0.4276, allocations: 110.8 kB / 458.1 MB, free: 2.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002669/0.4279, allocations: 265.3 kB / 458.4 MB, free: 2.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.428, allocations: 36.14 kB / 458.4 MB, free: 2.156 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.4281, allocations: 233.2 kB / 458.7 MB, free: 1.969 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.167e-05/0.4282, allocations: 110.5 kB / 458.8 MB, free: 1.875 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.748e-05/0.4282, allocations: 0 / 458.8 MB, free: 1.875 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4284, allocations: 346.6 kB / 459.1 MB, free: 1.543 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.4285, allocations: 93.75 kB / 459.2 MB, free: 1.492 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.4288, allocations: 226.3 kB / 459.4 MB, free: 1.266 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001763/0.4289, allocations: 121 kB / 459.5 MB, free: 1.188 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.429, allocations: 0 / 459.5 MB, free: 1.188 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005644/0.4295, allocations: 386.7 kB / 459.9 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004935/0.43, allocations: 1.335 MB / 461.3 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.43, allocations: 4 kB / 461.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002726/0.4303, allocations: 74.42 kB / 461.3 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003077/0.4306, allocations: 87.52 kB / 461.4 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.432, allocations: 1.625 MB / 463 MB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003201/0.4324, allocations: 59.61 kB / 463.1 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/0.4324, allocations: 24 kB / 463.1 MB, free: 13.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.873e-06/0.4324, allocations: 7.938 kB / 463.1 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004964/0.4329, allocations: 316 kB / 463.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.433, allocations: 4.438 kB / 463.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/0.4331, allocations: 81.47 kB / 463.5 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/0.4334, allocations: 78.95 kB / 463.6 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.4347, allocations: 1.624 MB / 465.2 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.435, allocations: 47.66 kB / 465.3 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.435, allocations: 15.5 kB / 465.3 MB, free: 11.68 MB / 346.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,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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 (48): * Single equations (assignments): 46 * 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.0001267/0.4352, allocations: 134.8 kB / 465.4 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004355/0.4356, allocations: 306.6 kB / 465.7 MB, free: 11.31 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.4357, allocations: 39.53 kB / 465.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.018e-05/0.4358, allocations: 37.11 kB / 465.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.4358, allocations: 4 kB / 465.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.4358, allocations: 0 / 465.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.4358, allocations: 0 / 465.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.4368, allocations: 0.8287 MB / 466.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.4369, allocations: 4 kB / 466.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.4371, allocations: 50.41 kB / 466.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001672/0.4373, allocations: 64.42 kB / 466.7 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.501e-05/0.4373, allocations: 4 kB / 466.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.4387, allocations: 1.623 MB / 468.4 MB, free: 8.891 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.4387, allocations: 3.938 kB / 468.4 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006563/0.4394, allocations: 0.5555 MB / 468.9 MB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.4395, allocations: 146.4 kB / 469.1 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.209e-05/0.4396, allocations: 7.938 kB / 469.1 MB, free: 8.289 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.4399, allocations: 27.97 kB / 469.1 MB, free: 8.262 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.104e-05/0.44, allocations: 35.2 kB / 469.1 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.44, allocations: 15.23 kB / 469.2 MB, free: 8.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000181/0.4402, allocations: 195.4 kB / 469.3 MB, free: 8.07 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4402, allocations: 4 kB / 469.3 MB, free: 8.066 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000767/0.441, allocations: 211.3 kB / 469.6 MB, free: 7.859 MB / 346.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,inductorSource.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,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 (32): * Single equations (assignments): 25 * 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.001028/0.442, allocations: 1.198 MB / 470.8 MB, free: 6.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.4431, allocations: 0.8056 MB / 471.6 MB, free: 6.086 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4431, allocations: 0.625 kB / 471.6 MB, free: 6.086 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.4434, allocations: 272 kB / 471.8 MB, free: 5.863 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003704/0.4438, allocations: 56.36 kB / 471.9 MB, free: 5.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.4453, allocations: 0.7343 MB / 472.6 MB, free: 5.102 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003965/0.4457, allocations: 0.8438 MB / 473.5 MB, free: 4.227 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002295/0.4459, allocations: 51.56 kB / 473.5 MB, free: 4.176 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.4461, allocations: 143.1 kB / 473.6 MB, free: 4.141 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4461, allocations: 3.938 kB / 473.7 MB, free: 4.137 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02872/0.4748, allocations: 8.956 MB / 482.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.475, allocations: 178.6 kB / 482.8 MB, free: 10.99 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.206/2.681, allocations: 0 / 482.8 MB, free: 10.99 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat does not exist to compare? outputFormat=mat