Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",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.001554/0.001554, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.675/1.675, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0008045/0.0008049, allocations: 70.8 kB / 267.5 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1621/0.1621, allocations: 37.98 MB / 353.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.583e-05/2.584e-05, allocations: 0 / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09132, allocations: 56.33 MB / 474.2 MB, free: 4.684 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.5136, allocations: 98.14 MB / 0.5589 GB, free: 4.402 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.5139, allocations: 96.42 kB / 0.559 GB, free: 4.355 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04069/0.5546, allocations: 16.13 MB / 0.5747 GB, free: 6.578 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.5546, allocations: 3.938 kB / 0.5747 GB, free: 6.574 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.327e-05/0.5547, allocations: 12 kB / 0.5747 GB, free: 6.562 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001572/0.5562, allocations: 0.8616 MB / 0.5756 GB, free: 5.691 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.5563, allocations: 12.03 kB / 0.5756 GB, free: 5.68 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.5564, allocations: 101 kB / 0.5757 GB, free: 5.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.5566, allocations: 79.14 kB / 0.5758 GB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002664/0.5592, allocations: 1.155 MB / 0.5769 GB, free: 4.582 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.5594, allocations: 112 kB / 0.577 GB, free: 4.484 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.437e-05/0.5595, allocations: 60.81 kB / 0.5771 GB, free: 4.441 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.5606, allocations: 0.7129 MB / 0.5778 GB, free: 3.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.5607, allocations: 4 kB / 0.5778 GB, free: 3.906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.815e-05/0.5607, allocations: 27.48 kB / 0.5778 GB, free: 3.898 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.5608, allocations: 20 kB / 0.5778 GB, free: 3.879 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008553/0.5616, allocations: 0.5277 MB / 0.5783 GB, free: 3.535 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003271/0.5649, allocations: 2.504 MB / 0.5808 GB, free: 1.469 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007714/0.5657, allocations: 414.2 kB / 0.5812 GB, free: 1.152 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003297/0.566, allocations: 188.4 kB / 0.5813 GB, free: 1.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.5661, allocations: 8.438 kB / 0.5813 GB, free: 1.012 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003473/0.5664, allocations: 221.8 kB / 0.5816 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.186e-06/0.5664, allocations: 3.938 kB / 0.5816 GB, free: 0.8203 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001078/0.5675, allocations: 445.7 kB / 0.582 GB, free: 484 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.5676, allocations: 132.5 kB / 0.5821 GB, free: 320 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.5681, allocations: 354.9 kB / 0.5825 GB, free: 32 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.779e-05/0.5681, allocations: 37.27 kB / 0.5825 GB, free: 15.99 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.5684, allocations: 313.3 kB / 0.5828 GB, free: 15.76 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.5685, allocations: 117.9 kB / 0.5829 GB, free: 15.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.878e-05/0.5685, allocations: 10.38 kB / 0.5829 GB, free: 15.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5687, allocations: 359.1 kB / 0.5833 GB, free: 15.31 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001871/0.5689, allocations: 110.4 kB / 0.5834 GB, free: 15.25 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.5691, allocations: 237.3 kB / 0.5836 GB, free: 15.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.5694, allocations: 145.7 kB / 0.5837 GB, free: 14.92 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5694, allocations: 4 kB / 0.5837 GB, free: 14.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009931/0.5704, allocations: 0.5193 MB / 0.5842 GB, free: 14.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.5705, allocations: 8 kB / 0.5842 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.5705, allocations: 4 kB / 0.5842 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003199/0.5708, allocations: 127.2 kB / 0.5844 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000299/0.5711, allocations: 82.89 kB / 0.5844 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002338/0.5735, allocations: 1.946 MB / 0.5863 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.5738, allocations: 55.27 kB / 0.5864 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.056e-05/0.5738, allocations: 12 kB / 0.5864 GB, free: 12.48 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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.0001515/0.574, allocations: 148.3 kB / 0.5866 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.38e-05/0.5741, allocations: 43.44 kB / 0.5866 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009767/0.5751, allocations: 448.7 kB / 0.587 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.5751, allocations: 4 kB / 0.587 GB, free: 11.97 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.993e-06/0.5751, allocations: 4 kB / 0.587 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.5751, allocations: 7.938 kB / 0.587 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007858/0.5759, allocations: 0.6703 MB / 0.5877 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.5759, allocations: 0 / 0.5877 GB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002599/0.5762, allocations: 59.83 kB / 0.5877 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002386/0.5764, allocations: 115.8 kB / 0.5879 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.5765, allocations: 15.39 kB / 0.5879 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002154/0.5786, allocations: 1.92 MB / 0.5897 GB, free: 9.457 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.5786, allocations: 4.062 kB / 0.5898 GB, free: 9.453 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.5798, allocations: 0.6833 MB / 0.5904 GB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.58, allocations: 147.3 kB / 0.5906 GB, free: 8.746 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.149e-05/0.5801, allocations: 10.56 kB / 0.5906 GB, free: 8.742 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.5803, allocations: 27.66 kB / 0.5906 GB, free: 8.719 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.5804, allocations: 31.27 kB / 0.5906 GB, free: 8.691 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-05/0.5805, allocations: 18.5 kB / 0.5906 GB, free: 8.676 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003099/0.5808, allocations: 272.4 kB / 0.5909 GB, free: 8.469 MB / 394.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5808, allocations: 0 / 0.5909 GB, free: 8.469 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006146/0.5814, allocations: 170.7 kB / 0.5911 GB, free: 8.316 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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 Backend phase and start with SimCode phase: time 0.001843/0.5833, allocations: 1.457 MB / 0.5925 GB, free: 6.988 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008623/0.5841, allocations: 498.1 kB / 0.593 GB, free: 6.598 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5842, allocations: 0 / 0.593 GB, free: 6.598 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004359/0.5846, allocations: 315.1 kB / 0.5933 GB, free: 6.344 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006182/0.5852, allocations: 144.7 kB / 0.5934 GB, free: 6.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001958/0.5872, allocations: 1.049 MB / 0.5944 GB, free: 5.27 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005641/0.5878, allocations: 0.9415 MB / 0.5953 GB, free: 4.324 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002984/0.5881, allocations: 84.62 kB / 0.5954 GB, free: 4.242 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002275/0.5883, allocations: 193.3 kB / 0.5956 GB, free: 4.191 MB / 394.7 MB Notification: Performance of SimCode: time 5.61e-07/0.5883, allocations: 0 / 0.5956 GB, free: 4.191 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03362/0.622, allocations: 12.64 MB / 0.608 GB, free: 7.59 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001924/0.6222, allocations: 190.7 kB / 0.6081 GB, free: 7.359 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.342/2.964, allocations: 3.938 kB / 0.6081 GB, free: 7.355 MB / 410.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.mat does not exist to compare? outputFormat=mat