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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 85.72 kB / 16.31 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 179.3 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.2 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1975/0.1975, allocations: 38.1 MB / 330.4 MB, free: 8.867 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004173/0.0004174, allocations: 9.375 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1301, allocations: 59.17 MB / 459.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008479/0.1386, allocations: 6.414 MB / 465.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003869/0.1426, allocations: 1.824 MB / 467.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008864/0.1435, allocations: 31.81 kB / 467.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009383/0.1445, allocations: 206.6 kB / 467.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001487/0.146, allocations: 381.9 kB / 468.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007384/0.1467, allocations: 183.8 kB / 468.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001733/0.1485, allocations: 1.156 MB / 469.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006913/0.1492, allocations: 333.8 kB / 469.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009864/0.1502, allocations: 370.4 kB / 470.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.1513, allocations: 442.5 kB / 470.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002146/0.1516, allocations: 36 kB / 470.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003519/0.1519, allocations: 36 kB / 470.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004585/0.1524, allocations: 231.3 kB / 470.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004503/0.1529, allocations: 169.3 kB / 471.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.154, allocations: 0.8142 MB / 471.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.052e-05/0.154, allocations: 4 kB / 471.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.154, allocations: 3.938 kB / 471.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.995e-05/0.1541, allocations: 0 / 471.9 MB, free: 10.68 MB / 350.1 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.002151/0.1562, allocations: 0.908 MB / 472.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.1563, allocations: 8.031 kB / 472.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001709/0.1564, allocations: 110.5 kB / 472.9 MB, free: 9.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.1566, allocations: 71.16 kB / 473 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.1576, allocations: 0.6164 MB / 473.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.1577, allocations: 112.7 kB / 473.7 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/0.1579, allocations: 59.91 kB / 473.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.1596, allocations: 0.7577 MB / 474.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.382e-05/0.1597, allocations: 7.938 kB / 474.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.562e-05/0.1597, allocations: 27.94 kB / 474.6 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.1597, allocations: 16 kB / 474.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.1612, allocations: 0.6206 MB / 475.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004354/0.1656, allocations: 2.468 MB / 477.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009349/0.1665, allocations: 417.1 kB / 478.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004092/0.167, allocations: 203.1 kB / 478.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.167, allocations: 4.281 kB / 478.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000463/0.1675, allocations: 251.2 kB / 478.6 MB, free: 3.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.394e-06/0.1675, allocations: 0 / 478.6 MB, free: 3.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003101/0.1706, allocations: 0.8667 MB / 479.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.1707, allocations: 144.4 kB / 479.6 MB, free: 2.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005513/0.1713, allocations: 401.9 kB / 480 MB, free: 2.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.839e-05/0.1713, allocations: 33.7 kB / 480 MB, free: 2.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.1716, allocations: 316.2 kB / 480.3 MB, free: 1.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001357/0.1718, allocations: 122.3 kB / 480.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.212e-05/0.1718, allocations: 8 kB / 480.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.172, allocations: 358.8 kB / 480.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.1723, allocations: 124.8 kB / 480.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/0.1727, allocations: 242 kB / 481.1 MB, free: 1.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/0.173, allocations: 164.7 kB / 481.3 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.173, allocations: 4 kB / 481.3 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001126/0.1742, allocations: 0.5149 MB / 481.8 MB, free: 340 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.1742, allocations: 4.469 kB / 481.8 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.1742, allocations: 8 kB / 481.8 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004612/0.1747, allocations: 160.6 kB / 482 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.175, allocations: 79.84 kB / 482.1 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003196/0.1782, allocations: 2.022 MB / 484.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004189/0.1786, allocations: 55.52 kB / 484.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.681e-05/0.1787, allocations: 19.98 kB / 484.2 MB, free: 13.85 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true 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,chopper.modulator.gate,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.diode.on) * Number of discrete states: 0 () * Number of clocked 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.0005556/0.1792, allocations: 247.3 kB / 484.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.923e-05/0.1793, allocations: 51.39 kB / 484.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001228/0.1806, allocations: 486.5 kB / 484.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.1806, allocations: 4 kB / 484.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1806, allocations: 4 kB / 484.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1806, allocations: 3.984 kB / 484.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009089/0.1815, allocations: 0.6785 MB / 485.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.1815, allocations: 0 / 485.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002352/0.1818, allocations: 43.92 kB / 485.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004432/0.1822, allocations: 140.8 kB / 485.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/0.1823, allocations: 11.98 kB / 485.8 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002968/0.1853, allocations: 2.03 MB / 487.8 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.1853, allocations: 64 / 487.8 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.1876, allocations: 0.6915 MB / 488.5 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003727/0.188, allocations: 152.5 kB / 488.7 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.1881, allocations: 8 kB / 488.7 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003327/0.1884, allocations: 19.98 kB / 488.7 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.1886, allocations: 43.88 kB / 488.7 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.335e-05/0.1887, allocations: 8 kB / 488.7 MB, free: 8.988 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004907/0.1892, allocations: 279.1 kB / 489 MB, free: 8.719 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1892, allocations: 0 / 489 MB, free: 8.719 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009927/0.1902, allocations: 167.4 kB / 489.2 MB, free: 8.555 MB / 366.1 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.gate,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Number of clocked 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.002797/0.193, allocations: 1.248 MB / 490.4 MB, free: 7.266 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.1945, allocations: 0.4913 MB / 490.9 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.1945, allocations: 0 / 490.9 MB, free: 6.762 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000909/0.1954, allocations: 342.4 kB / 491.3 MB, free: 6.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.1966, allocations: 141.8 kB / 491.4 MB, free: 6.277 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008958/0.2055, allocations: 3.349 MB / 494.7 MB, free: 2.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008187/0.2064, allocations: 0.9367 MB / 495.7 MB, free: 1.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000615/0.207, allocations: 84.62 kB / 495.8 MB, free: 1.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003636/0.2074, allocations: 187.4 kB / 495.9 MB, free: 1.586 MB / 366.1 MB Notification: Performance of SimCode: time 1.773e-06/0.2075, allocations: 7.938 kB / 496 MB, free: 1.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04166/0.2491, allocations: 12.2 MB / 0.4962 GB, free: 5.648 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003256/0.2495, allocations: 214.9 kB / 0.4965 GB, free: 5.414 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.074/2.323, allocations: 0 / 0.4965 GB, free: 5.414 MB / 382.1 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) Environment - environmentSimulation: 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