Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_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.0008573/0.0008574, allocations: 89.77 kB / 16.31 MB, free: 5.676 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.0009411/0.0009411, allocations: 181.2 kB / 17.21 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1673/0.1673, allocations: 38.04 MB / 309.7 MB, free: 6.031 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004869/0.0004872, allocations: 12 kB / 376.6 MB, free: 2.992 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2325, allocations: 56.33 MB / 432.9 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.005983/0.2385, allocations: 7.074 MB / 440 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002644/0.2412, allocations: 1.743 MB / 441.8 MB, free: 9.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005249/0.2417, allocations: 51.62 kB / 441.8 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003454/0.2421, allocations: 142.9 kB / 442 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.2431, allocations: 497.4 kB / 442.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.2437, allocations: 259.6 kB / 442.7 MB, free: 9 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009515/0.2446, allocations: 1.312 MB / 444 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003659/0.245, allocations: 284.6 kB / 444.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004713/0.2455, allocations: 406.2 kB / 444.7 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005348/0.246, allocations: 0.5062 MB / 445.2 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.587e-05/0.2461, allocations: 28 kB / 445.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.665e-05/0.2462, allocations: 32 kB / 445.2 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002067/0.2464, allocations: 291.2 kB / 445.5 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.2465, allocations: 161.3 kB / 445.7 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000405/0.2469, allocations: 0.6974 MB / 446.4 MB, free: 5.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.247, allocations: 0 / 446.4 MB, free: 5.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.247, allocations: 0 / 446.4 MB, free: 5.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.247, allocations: 4 kB / 446.4 MB, free: 5.289 MB / 318.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.001379/0.2484, allocations: 1.012 MB / 447.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.2484, allocations: 15.97 kB / 447.4 MB, free: 4.195 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001039/0.2485, allocations: 110.5 kB / 447.5 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001166/0.2486, allocations: 87 kB / 447.6 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.2494, allocations: 0.5562 MB / 448.2 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.474e-05/0.2494, allocations: 116.7 kB / 448.3 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.688e-05/0.2495, allocations: 64 kB / 448.3 MB, free: 3.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.2507, allocations: 0.8731 MB / 449.2 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.2508, allocations: 0 / 449.2 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.542e-05/0.2508, allocations: 35.94 kB / 449.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.963e-05/0.2509, allocations: 37.28 kB / 449.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009285/0.2519, allocations: 0.6295 MB / 449.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002914/0.2548, allocations: 2.766 MB / 452.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/0.2563, allocations: 0.9205 MB / 453.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006632/0.257, allocations: 338.6 kB / 453.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.257, allocations: 8.312 kB / 453.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006691/0.2577, allocations: 358.8 kB / 454.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.033e-06/0.2577, allocations: 0 / 454.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.003852/0.2616, allocations: 2.037 MB / 456.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.2617, allocations: 114.8 kB / 456.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005348/0.2622, allocations: 0.5105 MB / 457 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.2623, allocations: 33.7 kB / 457 MB, free: 10.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002527/0.2625, allocations: 359.8 kB / 457.3 MB, free: 9.785 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.2626, allocations: 142.1 kB / 457.5 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.2627, allocations: 12 kB / 457.5 MB, free: 9.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.2628, allocations: 370.8 kB / 457.8 MB, free: 9.262 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003071/0.2631, allocations: 205.1 kB / 458 MB, free: 9.059 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.2636, allocations: 378.2 kB / 458.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004024/0.264, allocations: 298.4 kB / 458.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.264, allocations: 3.938 kB / 458.7 MB, free: 8.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001195/0.2652, allocations: 0.8668 MB / 459.6 MB, free: 7.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.313e-05/0.2653, allocations: 49.69 kB / 459.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.2653, allocations: 7.984 kB / 459.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002725/0.2655, allocations: 93.59 kB / 459.7 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/0.2659, allocations: 107.8 kB / 459.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002383/0.2683, allocations: 2.989 MB / 462.8 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003711/0.2687, allocations: 27.98 kB / 462.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.858e-05/0.2688, allocations: 43.97 kB / 462.9 MB, free: 3.824 MB / 334.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.0003659/0.2692, allocations: 265.4 kB / 463.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.878e-05/0.2693, allocations: 55.41 kB / 463.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001424/0.2707, allocations: 0.7431 MB / 463.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.2707, allocations: 7.938 kB / 464 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2707, allocations: 4 kB / 464 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.2707, allocations: 0 / 464 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/0.2731, allocations: 1.555 MB / 465.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.2731, allocations: 0 / 465.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002772/0.2734, allocations: 71.95 kB / 465.6 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002951/0.2737, allocations: 89.62 kB / 465.7 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.384e-05/0.2738, allocations: 15.98 kB / 465.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002505/0.2763, allocations: 2.978 MB / 468.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.2763, allocations: 4.031 kB / 468.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002018/0.2783, allocations: 1.098 MB / 469.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/0.2786, allocations: 176.4 kB / 469.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.2787, allocations: 31.98 kB / 470 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003452/0.279, allocations: 39.95 kB / 470 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.884e-05/0.2791, allocations: 31.95 kB / 470 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.2792, allocations: 15.98 kB / 470.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003866/0.2796, allocations: 358.8 kB / 470.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.2796, allocations: 0 / 470.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007492/0.2803, allocations: 151.9 kB / 470.6 MB, free: 11.68 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.002253/0.2826, allocations: 1.671 MB / 472.2 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.2841, allocations: 0.9053 MB / 473.1 MB, free: 9.008 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.2842, allocations: 4 kB / 473.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009535/0.2851, allocations: 0.4941 MB / 473.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008215/0.286, allocations: 150 kB / 473.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00757/0.2935, allocations: 4.334 MB / 478.1 MB, free: 3.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007126/0.2943, allocations: 0.9721 MB / 479.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004451/0.2948, allocations: 104.9 kB / 479.2 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000383/0.2952, allocations: 227.4 kB / 479.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of SimCode: time 2.335e-06/0.2952, allocations: 0 / 479.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.3214, allocations: 12.51 MB / 491.9 MB, free: 6.062 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/0.3216, allocations: 210.5 kB / 492.1 MB, free: 5.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.09/2.411, allocations: 0 / 492.1 MB, free: 5.816 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) Environment - environmentSimulation: