Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001004/0.001004, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.001085/0.001085, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.32/1.32, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1692/0.1692, allocations: 37.99 MB / 308.6 MB, free: 6.242 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.001432/0.001433, allocations: 83 kB / 374.7 MB, free: 4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2365, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.007477/0.244, allocations: 8.37 MB / 438.3 MB, free: 11.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003819/0.2478, allocations: 2.552 MB / 440.9 MB, free: 8.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005931/0.2485, allocations: 59.62 kB / 441 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009769/0.2495, allocations: 462.1 kB / 441.4 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009688/0.2505, allocations: 0.5136 MB / 441.9 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006632/0.2511, allocations: 359.5 kB / 442.3 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.2523, allocations: 1.921 MB / 444.2 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007113/0.253, allocations: 0.7062 MB / 444.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005728/0.2536, allocations: 0.5408 MB / 445.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006811/0.2543, allocations: 0.7048 MB / 446.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.2544, allocations: 60 kB / 446.2 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007395/0.2552, allocations: 0.5148 MB / 446.7 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002986/0.2555, allocations: 470.8 kB / 447.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003979/0.2559, allocations: 0.5247 MB / 447.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008993/0.2568, allocations: 1.484 MB / 449.2 MB, free: 476 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2568, allocations: 4 kB / 449.2 MB, free: 472 kB / 318.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.2568, allocations: 0 / 449.2 MB, free: 472 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.2568, allocations: 0 / 449.2 MB, free: 472 kB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002761/0.2596, allocations: 1.567 MB / 450.8 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.2597, allocations: 12.03 kB / 450.8 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002007/0.2599, allocations: 156.3 kB / 450.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007588/0.2606, allocations: 155.5 kB / 451.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.2617, allocations: 0.6941 MB / 451.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.2619, allocations: 175.4 kB / 451.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002557/0.2621, allocations: 104 kB / 452 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002623/0.2648, allocations: 1.535 MB / 453.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/0.2648, allocations: 7.938 kB / 453.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.784e-05/0.2649, allocations: 35.98 kB / 453.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001612/0.2651, allocations: 69.97 kB / 453.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0022/0.2673, allocations: 1.175 MB / 454.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006234/0.2735, allocations: 4.789 MB / 459.6 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002829/0.2764, allocations: 1.121 MB / 460.8 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00119/0.2776, allocations: 0.5623 MB / 461.3 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.986e-05/0.2777, allocations: 4.562 kB / 461.3 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001352/0.279, allocations: 0.7255 MB / 462.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 3.026e-06/0.2791, allocations: 0 / 462.1 MB, free: 3.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=81): time 0.007256/0.2863, allocations: 3.189 MB / 465.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.2864, allocations: 123.5 kB / 465.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006952/0.2871, allocations: 0.5887 MB / 466 MB, free: 15.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.191e-05/0.2872, allocations: 57.69 kB / 466 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003473/0.2876, allocations: 447.1 kB / 466.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002451/0.2878, allocations: 284.2 kB / 466.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000275/0.2881, allocations: 202.3 kB / 466.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2883, allocations: 394.8 kB / 467.3 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006848/0.289, allocations: 482 kB / 467.8 MB, free: 13.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008729/0.2899, allocations: 0.7499 MB / 468.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.2913, allocations: 1.25 MB / 469.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.2913, allocations: 7.984 kB / 469.8 MB, free: 11.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00228/0.2936, allocations: 1.576 MB / 471.4 MB, free: 9.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.478e-05/0.2937, allocations: 65.61 kB / 471.4 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001782/0.2955, allocations: 1.329 MB / 472.8 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004156/0.2959, allocations: 113.6 kB / 472.9 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007288/0.2966, allocations: 203.6 kB / 473.1 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002844/0.2995, allocations: 3.075 MB / 476.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006818/0.3002, allocations: 67.92 kB / 476.2 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/0.3003, allocations: 83.97 kB / 476.3 MB, free: 4.176 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006381/0.301, allocations: 377.5 kB / 476.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.3012, allocations: 75.06 kB / 476.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002714/0.3039, allocations: 1.27 MB / 478 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-05/0.3039, allocations: 27.92 kB / 478 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.3039, allocations: 4 kB / 478 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.3039, allocations: 3.984 kB / 478 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004266/0.3082, allocations: 2.42 MB / 480.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.3082, allocations: 0 / 480.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007067/0.309, allocations: 155.6 kB / 480.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001141/0.3091, allocations: 40.94 kB / 480.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.928e-05/0.3092, allocations: 23.97 kB / 480.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001215/0.3104, allocations: 1.474 MB / 482.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3104, allocations: 3.938 kB / 482.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003707/0.3141, allocations: 1.915 MB / 484.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003648/0.3145, allocations: 247.9 kB / 484.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001782/0.3147, allocations: 84 kB / 484.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007001/0.3154, allocations: 87.88 kB / 484.5 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.3155, allocations: 56.52 kB / 484.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.975e-05/0.3156, allocations: 31.97 kB / 484.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004683/0.3161, allocations: 402.8 kB / 485 MB, free: 11.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3161, allocations: 0 / 485 MB, free: 11.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000946/0.317, allocations: 240.2 kB / 485.2 MB, free: 10.94 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.004219/0.3213, allocations: 2.541 MB / 487.7 MB, free: 8.324 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002715/0.324, allocations: 1.618 MB / 489.4 MB, free: 6.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.324, allocations: 0 / 489.4 MB, free: 6.668 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001278/0.3253, allocations: 0.6679 MB / 490 MB, free: 5.992 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009415/0.3262, allocations: 174.2 kB / 490.2 MB, free: 5.824 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.014/0.3403, allocations: 9.765 MB / 500 MB, free: 11.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008551/0.3412, allocations: 1.122 MB / 0.4893 GB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007586/0.3419, allocations: 234.5 kB / 0.4896 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000567/0.3425, allocations: 327.3 kB / 0.4899 GB, free: 9.93 MB / 382.1 MB Notification: Performance of SimCode: time 1.332e-06/0.3425, allocations: 0 / 0.4899 GB, free: 9.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0695/0.412, allocations: 17.85 MB / 0.5073 GB, free: 8.074 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003025/0.4124, allocations: 218.6 kB / 0.5075 GB, free: 7.816 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.201/2.613, allocations: 0 / 0.5075 GB, free: 7.816 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)