Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001921/0.00192, allocations: 186.4 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.962/1.962, allocations: 205.4 MB / 222.5 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 91.25 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004005/0.0004006, allocations: 12 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.332, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.4645, allocations: 83.21 MB / 457.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.4649, allocations: 83.95 kB / 457.9 MB, free: 13.35 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03262/0.4976, allocations: 7.655 MB / 465.6 MB, free: 5.656 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.4976, allocations: 0 / 465.6 MB, free: 5.656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.205e-05/0.4977, allocations: 16 kB / 465.6 MB, free: 5.641 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.00206/0.4997, allocations: 0.7673 MB / 466.4 MB, free: 4.816 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.4998, allocations: 12.03 kB / 466.4 MB, free: 4.805 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001635/0.5, allocations: 86.52 kB / 466.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.5001, allocations: 59.34 kB / 466.5 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007627/0.5009, allocations: 382.9 kB / 466.9 MB, free: 4.238 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.097e-05/0.501, allocations: 37 kB / 466.9 MB, free: 4.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.5011, allocations: 44 kB / 467 MB, free: 4.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.5024, allocations: 484.6 kB / 467.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.5025, allocations: 0 / 467.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-05/0.5025, allocations: 16 kB / 467.5 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.5026, allocations: 19.98 kB / 467.5 MB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.5038, allocations: 339.8 kB / 467.8 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003789/0.5076, allocations: 1.71 MB / 469.5 MB, free: 1.496 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.5088, allocations: 329.4 kB / 469.9 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.262e-05/0.5089, allocations: 4 kB / 469.9 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006762/0.5095, allocations: 251.8 kB / 470.1 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 2.885e-06/0.5096, allocations: 0 / 470.1 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.002224/0.5118, allocations: 0.5974 MB / 470.7 MB, free: 276 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.852e-05/0.5119, allocations: 106.8 kB / 470.8 MB, free: 144 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006744/0.5126, allocations: 344.8 kB / 471.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.896e-05/0.5127, allocations: 37.7 kB / 471.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002157/0.5129, allocations: 282.6 kB / 471.5 MB, free: 15.47 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.513, allocations: 118.3 kB / 471.6 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/0.5131, allocations: 12 kB / 471.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.5132, allocations: 330.8 kB / 471.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004802/0.5137, allocations: 129.1 kB / 472 MB, free: 14.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006104/0.5144, allocations: 260.7 kB / 472.3 MB, free: 14.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005422/0.5149, allocations: 169.8 kB / 472.5 MB, free: 14.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.5149, allocations: 4 kB / 472.5 MB, free: 14.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001445/0.5164, allocations: 0.4955 MB / 473 MB, free: 13.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005537/0.517, allocations: 1.334 MB / 474.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.517, allocations: 4 kB / 474.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00043/0.5174, allocations: 72.81 kB / 474.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006287/0.5181, allocations: 83.83 kB / 474.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002491/0.5206, allocations: 1.714 MB / 476.2 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000727/0.5214, allocations: 67.56 kB / 476.2 MB, free: 10.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.341e-05/0.5214, allocations: 20.25 kB / 476.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.5214, allocations: 4 kB / 476.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001267/0.5227, allocations: 433.7 kB / 476.7 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.5228, allocations: 8 kB / 476.7 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003362/0.5231, allocations: 81.27 kB / 476.8 MB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005096/0.5236, allocations: 75.89 kB / 476.8 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.526, allocations: 1.694 MB / 478.5 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005199/0.5266, allocations: 47.73 kB / 478.6 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-05/0.5266, allocations: 19.98 kB / 478.6 MB, free: 7.863 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,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 () * Number of clocked 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.0004532/0.5271, allocations: 261.7 kB / 478.8 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.5272, allocations: 39.53 kB / 478.9 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.5274, allocations: 44.14 kB / 478.9 MB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.929e-06/0.5274, allocations: 4 kB / 478.9 MB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.5274, allocations: 11.88 kB / 478.9 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.5274, allocations: 3.984 kB / 478.9 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002105/0.5295, allocations: 0.9373 MB / 479.9 MB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.5296, allocations: 0 / 479.9 MB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004902/0.5301, allocations: 55.91 kB / 479.9 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003402/0.5304, allocations: 57.14 kB / 480 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.798e-05/0.5305, allocations: 19.94 kB / 480 MB, free: 6.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002349/0.5329, allocations: 1.71 MB / 481.7 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5329, allocations: 4.062 kB / 481.7 MB, free: 4.516 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.5346, allocations: 0.6051 MB / 482.3 MB, free: 3.891 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002708/0.5349, allocations: 148.5 kB / 482.5 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.799e-05/0.535, allocations: 15.98 kB / 482.5 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005105/0.5355, allocations: 31.98 kB / 482.5 MB, free: 3.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.5357, allocations: 39.94 kB / 482.6 MB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.011e-05/0.5358, allocations: 12 kB / 482.6 MB, free: 3.629 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005123/0.5363, allocations: 259.2 kB / 482.8 MB, free: 3.383 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5363, allocations: 0 / 482.8 MB, free: 3.383 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001169/0.5375, allocations: 235.4 kB / 483.1 MB, free: 3.152 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * 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.002065/0.5396, allocations: 1.178 MB / 484.2 MB, free: 1.945 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002245/0.5418, allocations: 0.903 MB / 485.1 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5419, allocations: 0 / 485.1 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007316/0.5426, allocations: 303.2 kB / 485.4 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006791/0.5433, allocations: 80.06 kB / 485.5 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004183/0.5475, allocations: 3.654 MB / 489.2 MB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.5481, allocations: 0.8475 MB / 490 MB, free: 11.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000383/0.5485, allocations: 151.4 kB / 490.2 MB, free: 11.81 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5485, allocations: 0 / 490.2 MB, free: 11.81 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.721/3.27, allocations: 8.944 MB / 499.1 MB, free: 2.883 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat does not exist to compare? outputFormat=mat