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.001049/0.00105, allocations: 98.39 kB / 16.5 MB, free: 6.695 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.0009953/0.0009953, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.333/1.333, allocations: 205.1 MB / 223.3 MB, free: 12.45 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1654/0.1654, allocations: 37.99 MB / 308.6 MB, free: 6.23 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.001339/0.001339, allocations: 67.91 kB / 374.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.239, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007309/0.2464, allocations: 7.953 MB / 437.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00308/0.2495, allocations: 1.809 MB / 439.7 MB, free: 9.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005335/0.2501, allocations: 55.62 kB / 439.8 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000333/0.2505, allocations: 99.3 kB / 439.9 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008165/0.2513, allocations: 402.2 kB / 440.3 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003768/0.2517, allocations: 199.8 kB / 440.5 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008983/0.2526, allocations: 1.644 MB / 442.1 MB, free: 7.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003344/0.2529, allocations: 336.2 kB / 442.4 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004452/0.2534, allocations: 434 kB / 442.9 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005791/0.254, allocations: 0.5412 MB / 443.4 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.394e-05/0.2541, allocations: 40 kB / 443.4 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.2542, allocations: 48 kB / 443.5 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002563/0.2545, allocations: 315.1 kB / 443.8 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003183/0.2548, allocations: 374.1 kB / 444.2 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005444/0.2553, allocations: 0.8799 MB / 445 MB, free: 4.633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2554, allocations: 4 kB / 445 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2554, allocations: 0 / 445 MB, free: 4.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.2554, allocations: 0 / 445 MB, free: 4.629 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.001745/0.2571, allocations: 1.148 MB / 446.2 MB, free: 3.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.2572, allocations: 12.03 kB / 446.2 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.2573, allocations: 110.7 kB / 446.3 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001235/0.2574, allocations: 80 kB / 446.4 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007302/0.2582, allocations: 0.5805 MB / 447 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.365e-05/0.2583, allocations: 116.6 kB / 447.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.594e-05/0.2584, allocations: 60 kB / 447.1 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.2596, allocations: 0.8691 MB / 448 MB, free: 1.488 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.2596, allocations: 4 kB / 448 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.757e-05/0.2596, allocations: 24 kB / 448 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001009/0.2598, allocations: 37.28 kB / 448.1 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009467/0.2607, allocations: 0.6256 MB / 448.7 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/0.264, allocations: 2.762 MB / 451.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/0.2657, allocations: 0.9042 MB / 452.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000729/0.2664, allocations: 314.8 kB / 452.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/0.2664, allocations: 8.312 kB / 452.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006965/0.2671, allocations: 358.3 kB / 453 MB, free: 12.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 1.933e-06/0.2672, allocations: 0 / 453 MB, free: 12.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.00411/0.2713, allocations: 1.971 MB / 455 MB, free: 10.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/0.2714, allocations: 110.8 kB / 455.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005589/0.2719, allocations: 0.5183 MB / 455.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.272, allocations: 37.7 kB / 455.7 MB, free: 9.457 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002486/0.2722, allocations: 355.8 kB / 456 MB, free: 9.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.2724, allocations: 150 kB / 456.2 MB, free: 8.953 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.2725, allocations: 114.1 kB / 456.3 MB, free: 8.836 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.2727, allocations: 370.8 kB / 456.6 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.273, allocations: 229.1 kB / 456.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.2734, allocations: 394.2 kB / 457.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007351/0.2742, allocations: 0.6249 MB / 457.9 MB, free: 7.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2742, allocations: 4 kB / 457.9 MB, free: 7.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001179/0.2754, allocations: 0.8901 MB / 458.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.149e-05/0.2754, allocations: 49.69 kB / 458.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/0.2754, allocations: 11.98 kB / 458.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002801/0.2757, allocations: 90 kB / 458.9 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003828/0.2761, allocations: 103.8 kB / 459 MB, free: 5.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/0.2784, allocations: 2.981 MB / 462 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000372/0.2788, allocations: 27.98 kB / 462 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.737e-05/0.2789, allocations: 39.97 kB / 462.1 MB, free: 2.578 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,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003518/0.2793, allocations: 273.6 kB / 462.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.55e-05/0.2793, allocations: 59.25 kB / 462.4 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.2807, allocations: 0.7042 MB / 463.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.2808, allocations: 8 kB / 463.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2808, allocations: 0 / 463.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.2808, allocations: 3.984 kB / 463.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002324/0.2831, allocations: 1.539 MB / 464.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.2831, allocations: 11.92 kB / 464.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.2834, allocations: 59.91 kB / 464.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002739/0.2837, allocations: 97.67 kB / 464.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.49e-05/0.2837, allocations: 19.98 kB / 464.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002134/0.2859, allocations: 2.969 MB / 467.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2859, allocations: 0 / 467.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.2878, allocations: 1.063 MB / 468.9 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002113/0.288, allocations: 176.5 kB / 469 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.424e-05/0.2881, allocations: 27.98 kB / 469.1 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003742/0.2885, allocations: 39.94 kB / 469.1 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.382e-05/0.2886, allocations: 39.83 kB / 469.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.394e-05/0.2887, allocations: 19.98 kB / 469.2 MB, free: 11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003738/0.289, allocations: 358.8 kB / 469.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.289, allocations: 3.938 kB / 469.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007661/0.2898, allocations: 148 kB / 469.7 MB, free: 10.51 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002224/0.292, allocations: 1.64 MB / 471.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.2935, allocations: 0.9023 MB / 472.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.2935, allocations: 0 / 472.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008242/0.2943, allocations: 0.498 MB / 472.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007953/0.2951, allocations: 130.2 kB / 472.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007504/0.3027, allocations: 6.444 MB / 479.3 MB, free: 492 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005089/0.3032, allocations: 0.9718 MB / 480.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003396/0.3035, allocations: 104.9 kB / 480.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.3038, allocations: 223.4 kB / 480.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of SimCode: time 3.787e-06/0.3038, allocations: 0 / 480.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03208/0.3359, allocations: 12.59 MB / 493.1 MB, free: 2.578 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/0.3362, allocations: 222.8 kB / 493.4 MB, free: 2.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.082/2.418, allocations: 4 kB / 493.4 MB, free: 2.316 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/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)