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.0008745/0.0008745, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.001093/0.001093, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.437/1.437, allocations: 223.2 MB / 241.2 MB, free: 5.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3524/0.3524, allocations: 38.07 MB / 330.4 MB, free: 14.13 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002963/0.0002963, allocations: 8 kB / 400.2 MB, free: 9.105 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3346, allocations: 59.17 MB / 459.3 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007564/0.3423, allocations: 7.071 MB / 466.4 MB, free: 25.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003651/0.346, allocations: 1.707 MB / 468.1 MB, free: 23.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000756/0.3468, allocations: 54.09 kB / 468.2 MB, free: 23.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004379/0.3472, allocations: 142.2 kB / 468.3 MB, free: 23.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001382/0.3486, allocations: 490.2 kB / 468.8 MB, free: 23.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008768/0.3495, allocations: 269.9 kB / 469 MB, free: 23.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001929/0.3514, allocations: 1.305 MB / 470.4 MB, free: 22.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005222/0.352, allocations: 292 kB / 470.6 MB, free: 22.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009367/0.3529, allocations: 401.7 kB / 471 MB, free: 22.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009611/0.3539, allocations: 0.4997 MB / 471.5 MB, free: 22.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.7e-05/0.354, allocations: 29.44 kB / 471.6 MB, free: 22.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001376/0.3541, allocations: 31.47 kB / 471.6 MB, free: 22.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004025/0.3545, allocations: 297.5 kB / 471.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.3547, allocations: 166.1 kB / 472 MB, free: 22.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008948/0.3556, allocations: 0.69 MB / 472.7 MB, free: 22.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.3557, allocations: 0 / 472.7 MB, free: 22.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3557, allocations: 0 / 472.7 MB, free: 22.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.3557, allocations: 5.156 kB / 472.7 MB, free: 22.23 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.001931/0.3576, allocations: 1.01 MB / 473.7 MB, free: 21.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.3577, allocations: 7.406 kB / 473.8 MB, free: 21.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001589/0.3578, allocations: 110.4 kB / 473.9 MB, free: 21.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.358, allocations: 83.81 kB / 473.9 MB, free: 21.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.359, allocations: 0.5619 MB / 474.5 MB, free: 21.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.3592, allocations: 113.8 kB / 474.6 MB, free: 20.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.3593, allocations: 71.41 kB / 474.7 MB, free: 20.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/0.3614, allocations: 0.8718 MB / 475.6 MB, free: 20.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.3615, allocations: 5.125 kB / 475.6 MB, free: 20.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.088e-05/0.3616, allocations: 25.94 kB / 475.6 MB, free: 20.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/0.3617, allocations: 38.34 kB / 475.6 MB, free: 20.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.363, allocations: 0.6296 MB / 476.3 MB, free: 20.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003929/0.3669, allocations: 2.767 MB / 479 MB, free: 17.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.3684, allocations: 0.9263 MB / 479.9 MB, free: 17.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007035/0.3691, allocations: 328.1 kB / 480.3 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.3692, allocations: 4.109 kB / 480.3 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007056/0.3699, allocations: 360.9 kB / 480.6 MB, free: 16.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.234e-06/0.3699, allocations: 0 / 480.6 MB, free: 16.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.003948/0.3739, allocations: 2.04 MB / 482.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.3739, allocations: 113.4 kB / 482.8 MB, free: 15.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006076/0.3746, allocations: 0.5113 MB / 483.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.3746, allocations: 38.95 kB / 483.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002328/0.3748, allocations: 359.2 kB / 483.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001088/0.375, allocations: 145 kB / 483.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.375, allocations: 11.25 kB / 483.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.3751, allocations: 370.5 kB / 484.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000319/0.3754, allocations: 211.7 kB / 484.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003797/0.3758, allocations: 370.9 kB / 484.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003373/0.3762, allocations: 302.3 kB / 485.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.3762, allocations: 0 / 485.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001015/0.3772, allocations: 0.8669 MB / 485.9 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.2e-05/0.3773, allocations: 53.69 kB / 486 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.3773, allocations: 4 kB / 486 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002623/0.3775, allocations: 85.66 kB / 486.1 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003636/0.3779, allocations: 115.8 kB / 486.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001803/0.3797, allocations: 2.973 MB / 489.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004134/0.3802, allocations: 36.06 kB / 489.2 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.896e-05/0.3802, allocations: 47.92 kB / 489.2 MB, free: 8.953 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 (66): * Single equations (assignments): 63 * 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%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003888/0.3806, allocations: 277.5 kB / 489.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.071e-05/0.3807, allocations: 51.34 kB / 489.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.3819, allocations: 0.7316 MB / 490.3 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.382, allocations: 4 kB / 490.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.382, allocations: 7.953 kB / 490.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.382, allocations: 3.984 kB / 490.3 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/0.384, allocations: 1.563 MB / 491.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.384, allocations: 0 / 491.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.3842, allocations: 59.91 kB / 491.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002521/0.3845, allocations: 101.7 kB / 492 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.73e-05/0.3846, allocations: 11.98 kB / 492 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001889/0.3865, allocations: 2.977 MB / 495 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.562e-06/0.3865, allocations: 0 / 495 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.3883, allocations: 1.106 MB / 496.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.3885, allocations: 168.5 kB / 496.3 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.491e-05/0.3886, allocations: 31.98 kB / 496.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003722/0.389, allocations: 47.94 kB / 496.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.3891, allocations: 35.91 kB / 496.4 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.531e-05/0.3892, allocations: 15.98 kB / 496.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004258/0.3896, allocations: 350.8 kB / 496.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.743e-06/0.3896, allocations: 0 / 496.7 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008316/0.3904, allocations: 159.9 kB / 496.9 MB, free: 0.8047 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 (42): * Single equations (assignments): 33 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002101/0.3925, allocations: 1.658 MB / 498.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001686/0.3942, allocations: 0.8979 MB / 499.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.3943, allocations: 4 kB / 499.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.3953, allocations: 0.5098 MB / 500 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009822/0.3963, allocations: 136.5 kB / 0.4884 GB, free: 13.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007466/0.4038, allocations: 4.336 MB / 0.4926 GB, free: 8.992 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006293/0.4044, allocations: 0.9721 MB / 0.4936 GB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004186/0.4049, allocations: 104.9 kB / 0.4937 GB, free: 7.891 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003326/0.4052, allocations: 227.4 kB / 0.4939 GB, free: 7.668 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4052, allocations: 0 / 0.4939 GB, free: 7.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.4343, allocations: 12.52 MB / 0.5061 GB, free: 11.38 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/0.4346, allocations: 215.8 kB / 0.5063 GB, free: 11.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.4, allocations: 0 / 0.5063 GB, free: 11.14 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