Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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.000889/0.0008891, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001027/0.001027, allocations: 178.4 kB / 17.2 MB, free: 5.914 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.256/1.256, allocations: 223.2 MB / 241.1 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2962/0.2962, allocations: 38.07 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003164/0.0003165, allocations: 8 kB / 400.1 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2463, allocations: 59.16 MB / 459.2 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006156/0.2525, allocations: 6.753 MB / 466 MB, free: 25.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003052/0.2556, allocations: 1.751 MB / 467.7 MB, free: 24.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005123/0.2561, allocations: 53.66 kB / 467.8 MB, free: 24.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003322/0.2564, allocations: 128.6 kB / 467.9 MB, free: 24.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009526/0.2574, allocations: 404.8 kB / 468.3 MB, free: 23.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000617/0.258, allocations: 258.9 kB / 468.6 MB, free: 23.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007217/0.2588, allocations: 0.5798 MB / 469.1 MB, free: 23.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004001/0.2592, allocations: 286.5 kB / 469.4 MB, free: 23.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005147/0.2597, allocations: 366.8 kB / 469.8 MB, free: 23.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005018/0.2602, allocations: 347.3 kB / 470.1 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.77e-05/0.2603, allocations: 30.06 kB / 470.1 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001017/0.2604, allocations: 30.5 kB / 470.2 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002627/0.2607, allocations: 277.2 kB / 470.4 MB, free: 22.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.2608, allocations: 163.6 kB / 470.6 MB, free: 22.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006724/0.2615, allocations: 0.6911 MB / 471.3 MB, free: 22.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.2615, allocations: 0 / 471.3 MB, free: 22.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2615, allocations: 1.094 kB / 471.3 MB, free: 22.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.2615, allocations: 0 / 471.3 MB, free: 22.71 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001592/0.2631, allocations: 1.008 MB / 472.3 MB, free: 22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2632, allocations: 9.766 kB / 472.3 MB, free: 22 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.2633, allocations: 114.4 kB / 472.4 MB, free: 21.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.2634, allocations: 82.31 kB / 472.5 MB, free: 21.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008713/0.2643, allocations: 0.5618 MB / 473.1 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.48e-05/0.2644, allocations: 114.6 kB / 473.2 MB, free: 21.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001004/0.2645, allocations: 67.98 kB / 473.2 MB, free: 21.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.266, allocations: 0.8737 MB / 474.1 MB, free: 21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.2661, allocations: 3.938 kB / 474.1 MB, free: 21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.912e-05/0.2661, allocations: 28.03 kB / 474.1 MB, free: 20.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/0.2663, allocations: 40.95 kB / 474.2 MB, free: 20.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.2674, allocations: 0.6326 MB / 474.8 MB, free: 20.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00318/0.2706, allocations: 2.763 MB / 477.6 MB, free: 18.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.272, allocations: 0.9152 MB / 478.5 MB, free: 18.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.2721, allocations: 7.219 kB / 478.5 MB, free: 18.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006191/0.2727, allocations: 358.8 kB / 478.9 MB, free: 17.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.465e-06/0.2727, allocations: 4 kB / 478.9 MB, free: 17.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.003747/0.2765, allocations: 2.008 MB / 480.9 MB, free: 16.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.2765, allocations: 118 kB / 481 MB, free: 16.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005161/0.277, allocations: 0.5042 MB / 481.5 MB, free: 16.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.2771, allocations: 38.05 kB / 481.5 MB, free: 16.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.2773, allocations: 358.6 kB / 481.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.177e-05/0.2773, allocations: 149.4 kB / 482 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.382e-05/0.2774, allocations: 11.88 kB / 482 MB, free: 15.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.265e-05/0.2775, allocations: 369.9 kB / 482.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.2777, allocations: 206.7 kB / 482.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003216/0.2781, allocations: 372.4 kB / 483 MB, free: 14.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003606/0.2784, allocations: 295.9 kB / 483.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2784, allocations: 2.438 kB / 483.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001016/0.2795, allocations: 0.8414 MB / 484.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.42e-05/0.2795, allocations: 57.42 kB / 484.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.2795, allocations: 4.25 kB / 484.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.2798, allocations: 79.86 kB / 484.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003974/0.2802, allocations: 109.6 kB / 484.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001628/0.2818, allocations: 2.913 MB / 487.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003776/0.2822, allocations: 35.88 kB / 487.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.143e-05/0.2823, allocations: 39.98 kB / 487.3 MB, free: 10.85 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003526/0.2827, allocations: 280.7 kB / 487.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.415e-05/0.2827, allocations: 55.33 kB / 487.7 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.2839, allocations: 0.7081 MB / 488.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.2839, allocations: 4 kB / 488.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.284, allocations: 8 kB / 488.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.284, allocations: 3.984 kB / 488.4 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.2859, allocations: 1.524 MB / 489.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.2859, allocations: 0 / 489.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.2862, allocations: 63.89 kB / 490 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002125/0.2864, allocations: 93.47 kB / 490.1 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/0.2864, allocations: 24.05 kB / 490.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00134/0.2878, allocations: 2.891 MB / 493 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.2878, allocations: 8.297 kB / 493 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001593/0.2894, allocations: 1.119 MB / 494.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002139/0.2896, allocations: 176.3 kB / 494.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.859e-05/0.2897, allocations: 27.98 kB / 494.3 MB, free: 3.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003687/0.2901, allocations: 47.94 kB / 494.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.56e-05/0.2902, allocations: 35.95 kB / 494.4 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.2902, allocations: 11.98 kB / 494.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000298/0.2905, allocations: 350.8 kB / 494.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2905, allocations: 0 / 494.7 MB, free: 2.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006475/0.2912, allocations: 152 kB / 494.9 MB, free: 2.805 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001798/0.293, allocations: 1.893 MB / 496.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.2942, allocations: 0.8896 MB / 497.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2942, allocations: 0 / 497.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008201/0.295, allocations: 0.5064 MB / 498.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006339/0.2957, allocations: 130.2 kB / 498.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006702/0.3024, allocations: 7.583 MB / 0.494 GB, free: 7.488 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005368/0.303, allocations: 0.9877 MB / 0.495 GB, free: 6.473 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003573/0.3033, allocations: 101 kB / 0.4951 GB, free: 6.375 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002878/0.3036, allocations: 231.3 kB / 0.4953 GB, free: 6.148 MB / 366.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3036, allocations: 0 / 0.4953 GB, free: 6.148 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02436/0.328, allocations: 12.45 MB / 0.5075 GB, free: 9.922 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.3282, allocations: 201.7 kB / 0.5077 GB, free: 9.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.135, allocations: 2.25 kB / 0.5077 GB, free: 9.688 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat does not exist to compare? outputFormat=mat