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.001063/0.001063, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.000877/0.0008771, allocations: 84.12 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.455e-05/2.458e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09418/0.09422, allocations: 50.42 MB / 394.4 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3003/0.3945, allocations: 85.81 MB / 480.2 MB, free: 1.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002029/0.3948, allocations: 83.94 kB / 480.3 MB, free: 1.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02572/0.4205, allocations: 9.776 MB / 490 MB, free: 7.656 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4206, allocations: 0 / 490 MB, free: 7.656 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.632e-05/0.4206, allocations: 12 kB / 490 MB, free: 7.645 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.001309/0.4219, allocations: 0.772 MB / 490.8 MB, free: 6.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.422, allocations: 12.03 kB / 490.8 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.4221, allocations: 82.52 kB / 490.9 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000108/0.4222, allocations: 63.25 kB / 491 MB, free: 6.656 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00055/0.4228, allocations: 396.4 kB / 491.4 MB, free: 6.227 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.4228, allocations: 33 kB / 491.4 MB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.679e-05/0.4229, allocations: 48 kB / 491.4 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007755/0.4237, allocations: 480.7 kB / 491.9 MB, free: 5.656 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.4237, allocations: 0 / 491.9 MB, free: 5.656 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.686e-05/0.4238, allocations: 20 kB / 491.9 MB, free: 5.637 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.4238, allocations: 8 kB / 491.9 MB, free: 5.629 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005302/0.4243, allocations: 307.9 kB / 492.2 MB, free: 5.324 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002481/0.4268, allocations: 1.78 MB / 494 MB, free: 3.453 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007923/0.4276, allocations: 374.8 kB / 494.4 MB, free: 3.078 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004082/0.428, allocations: 212.8 kB / 494.6 MB, free: 2.867 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.484e-05/0.4281, allocations: 4 kB / 494.6 MB, free: 2.863 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004131/0.4285, allocations: 260.6 kB / 494.8 MB, free: 2.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.134e-06/0.4285, allocations: 0 / 494.8 MB, free: 2.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0006645/0.4292, allocations: 361.4 kB / 495.2 MB, free: 2.227 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.669e-05/0.4293, allocations: 118.8 kB / 495.3 MB, free: 2.086 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003295/0.4296, allocations: 319.5 kB / 495.6 MB, free: 1.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.4296, allocations: 37.7 kB / 495.7 MB, free: 1.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.4298, allocations: 244.3 kB / 495.9 MB, free: 1.48 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.565e-05/0.4299, allocations: 126.2 kB / 496 MB, free: 1.355 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.289e-05/0.4299, allocations: 15.94 kB / 496 MB, free: 1.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.4301, allocations: 350.8 kB / 496.4 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.4303, allocations: 109.1 kB / 496.5 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002585/0.4305, allocations: 240.2 kB / 496.7 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/0.4308, allocations: 158.9 kB / 496.9 MB, free: 444 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.4308, allocations: 4 kB / 496.9 MB, free: 440 kB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006991/0.4315, allocations: 479 kB / 497.4 MB, free: 15.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000508/0.432, allocations: 1.342 MB / 498.7 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.432, allocations: 0 / 498.7 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002753/0.4323, allocations: 72.83 kB / 498.8 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003784/0.4327, allocations: 95.81 kB / 498.9 MB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.4342, allocations: 1.69 MB / 0.4888 GB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.4346, allocations: 71.62 kB / 0.4889 GB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.4346, allocations: 16 kB / 0.4889 GB, free: 12.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.815e-06/0.4347, allocations: 4 kB / 0.4889 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006437/0.4353, allocations: 429.8 kB / 0.4893 GB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.4353, allocations: 4 kB / 0.4893 GB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001925/0.4355, allocations: 72.91 kB / 0.4894 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003087/0.4358, allocations: 88.14 kB / 0.4895 GB, free: 11.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.4373, allocations: 1.691 MB / 0.4911 GB, free: 9.996 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.4376, allocations: 55.62 kB / 0.4912 GB, free: 9.941 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.4376, allocations: 20 kB / 0.4912 GB, free: 9.922 MB / 378.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.0001525/0.4378, allocations: 143.1 kB / 0.4913 GB, free: 9.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.523e-05/0.4379, allocations: 39.53 kB / 0.4914 GB, free: 9.738 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000679/0.4386, allocations: 398.7 kB / 0.4917 GB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.4386, allocations: 7.953 kB / 0.4918 GB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.4386, allocations: 0 / 0.4918 GB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.4386, allocations: 3.984 kB / 0.4918 GB, free: 9.324 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.4399, allocations: 0.9844 MB / 0.4927 GB, free: 8.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.44, allocations: 7.953 kB / 0.4927 GB, free: 8.266 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.4403, allocations: 71.89 kB / 0.4928 GB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001789/0.4405, allocations: 68.8 kB / 0.4929 GB, free: 8.125 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/0.4405, allocations: 12 kB / 0.4929 GB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.4419, allocations: 1.682 MB / 0.4945 GB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4419, allocations: 0 / 0.4945 GB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008803/0.4428, allocations: 0.6442 MB / 0.4951 GB, free: 5.625 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.443, allocations: 148.5 kB / 0.4953 GB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.734e-05/0.443, allocations: 15.98 kB / 0.4953 GB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003379/0.4434, allocations: 44.03 kB / 0.4953 GB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.4435, allocations: 39.94 kB / 0.4954 GB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.068e-05/0.4435, allocations: 15.95 kB / 0.4954 GB, free: 5.344 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002557/0.4438, allocations: 254.2 kB / 0.4956 GB, free: 5.094 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4438, allocations: 0 / 0.4956 GB, free: 5.094 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008094/0.4446, allocations: 239.3 kB / 0.4959 GB, free: 4.859 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.001232/0.4459, allocations: 1.281 MB / 0.4971 GB, free: 3.547 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.4471, allocations: 0.9014 MB / 0.498 GB, free: 2.594 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.4472, allocations: 8.125 kB / 0.498 GB, free: 2.586 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003948/0.4476, allocations: 298.3 kB / 0.4983 GB, free: 2.281 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.448, allocations: 74.72 kB / 0.4984 GB, free: 2.211 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.4497, allocations: 0.8281 MB / 0.4992 GB, free: 1.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.4501, allocations: 0.8524 MB / 0.5 GB, free: 472 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002958/0.4504, allocations: 71.42 kB / 0.5001 GB, free: 400 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.4507, allocations: 163.4 kB / 0.5002 GB, free: 236 kB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4507, allocations: 0 / 0.5002 GB, free: 236 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02563/0.4763, allocations: 11 MB / 0.511 GB, free: 5.512 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/0.4766, allocations: 214 kB / 0.5112 GB, free: 5.285 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.208/2.684, allocations: 7.938 kB / 0.5112 GB, free: 5.277 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