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.0008491/0.0008492, allocations: 88.72 kB / 16.31 MB, free: 5.684 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.001156/0.001156, allocations: 182.9 kB / 17.21 MB, free: 5.602 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.703/1.703, 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.1753/0.1753, allocations: 38.04 MB / 309.7 MB, free: 6.039 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.0005336/0.0005337, allocations: 12 kB / 376.6 MB, free: 2.996 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2647, allocations: 56.32 MB / 432.9 MB, free: 18.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.005922/0.2707, allocations: 7.479 MB / 440.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003923/0.2746, allocations: 2.397 MB / 442.8 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008153/0.2755, allocations: 51.69 kB / 442.9 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004234/0.2759, allocations: 170.7 kB / 443 MB, free: 8.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001684/0.2776, allocations: 0.6143 MB / 443.6 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001083/0.2787, allocations: 395.3 kB / 444 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001768/0.2805, allocations: 1.562 MB / 445.6 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001565/0.2821, allocations: 0.9005 MB / 446.5 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.2831, allocations: 0.5136 MB / 447 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008469/0.284, allocations: 0.6426 MB / 447.7 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.191e-05/0.2841, allocations: 44 kB / 447.7 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007695/0.2849, allocations: 471.2 kB / 448.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003251/0.2852, allocations: 450.9 kB / 448.6 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002064/0.2854, allocations: 221.2 kB / 448.8 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008865/0.2863, allocations: 1.15 MB / 450 MB, free: 1.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.2863, allocations: 4 kB / 450 MB, free: 1.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2863, allocations: 0 / 450 MB, free: 1.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.2864, allocations: 0 / 450 MB, free: 1.668 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.002287/0.2887, allocations: 1.365 MB / 451.3 MB, free: 232 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.2887, allocations: 8.031 kB / 451.3 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001528/0.2889, allocations: 164.1 kB / 451.5 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006832/0.2896, allocations: 162.5 kB / 451.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.2906, allocations: 0.6738 MB / 452.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.2908, allocations: 175.1 kB / 452.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.291, allocations: 103.9 kB / 452.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002486/0.2935, allocations: 1.552 MB / 454.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.2935, allocations: 3.938 kB / 454.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-05/0.2936, allocations: 39.98 kB / 454.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/0.2938, allocations: 69.97 kB / 454.3 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.2958, allocations: 1.179 MB / 455.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005595/0.3014, allocations: 4.812 MB / 460.3 MB, free: 7.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/0.304, allocations: 1.196 MB / 461.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001219/0.3052, allocations: 0.5852 MB / 462 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.774e-05/0.3053, allocations: 16.48 kB / 462.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001337/0.3067, allocations: 0.7301 MB / 462.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=80): time 2.986e-06/0.3067, allocations: 0 / 462.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=81): time 0.006544/0.3132, allocations: 3.318 MB / 466.1 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.506e-05/0.3133, allocations: 119.5 kB / 466.2 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006604/0.314, allocations: 0.5887 MB / 466.8 MB, free: 264 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.824e-05/0.3141, allocations: 49.7 kB / 466.9 MB, free: 208 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/0.3144, allocations: 455 kB / 467.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002116/0.3146, allocations: 272.3 kB / 467.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-05/0.3147, allocations: 20 kB / 467.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3149, allocations: 398.7 kB / 468 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006469/0.3155, allocations: 458.1 kB / 468.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008429/0.3164, allocations: 0.7265 MB / 469.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008135/0.3172, allocations: 0.5977 MB / 469.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.3172, allocations: 4 kB / 469.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002235/0.3195, allocations: 1.545 MB / 471.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.835e-05/0.3195, allocations: 65.67 kB / 471.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001733/0.3213, allocations: 1.306 MB / 472.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003823/0.3217, allocations: 109.6 kB / 472.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00071/0.3224, allocations: 203.6 kB / 473 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002364/0.3248, allocations: 3.071 MB / 476 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005776/0.3254, allocations: 79.83 kB / 476.1 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.3255, allocations: 72.08 kB / 476.2 MB, free: 6.375 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,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * 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 (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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004972/0.326, allocations: 381.5 kB / 476.6 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.3261, allocations: 75.06 kB / 476.6 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002532/0.3287, allocations: 1.321 MB / 478 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.172e-05/0.3287, allocations: 20 kB / 478 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3287, allocations: 0 / 478 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.3287, allocations: 7.984 kB / 478 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00386/0.3326, allocations: 2.483 MB / 480.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3326, allocations: 3.953 kB / 480.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006608/0.3333, allocations: 143.8 kB / 480.6 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.709e-05/0.3334, allocations: 40.81 kB / 480.7 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.487e-05/0.3335, allocations: 31.97 kB / 480.7 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.3346, allocations: 1.463 MB / 482.1 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.3346, allocations: 8.125 kB / 482.2 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003691/0.3383, allocations: 1.989 MB / 484.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004908/0.3388, allocations: 240.1 kB / 484.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000196/0.339, allocations: 75.94 kB / 484.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000678/0.3397, allocations: 107.9 kB / 484.6 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.3399, allocations: 56.47 kB / 484.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.01e-05/0.3399, allocations: 35.97 kB / 484.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004619/0.3404, allocations: 394.8 kB / 485 MB, free: 13.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3404, allocations: 0 / 485 MB, free: 13.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008968/0.3413, allocations: 236 kB / 485.3 MB, free: 12.96 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004023/0.3453, allocations: 2.617 MB / 487.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.3481, allocations: 1.639 MB / 489.5 MB, free: 8.617 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.3481, allocations: 4.125 kB / 489.5 MB, free: 8.613 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.3494, allocations: 0.6783 MB / 490.2 MB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009897/0.3504, allocations: 159.4 kB / 490.4 MB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.3604, allocations: 6.728 MB / 497.1 MB, free: 0.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008283/0.3613, allocations: 1.114 MB / 498.2 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006741/0.362, allocations: 242.5 kB / 498.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004914/0.3625, allocations: 323.3 kB / 498.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3625, allocations: 0 / 498.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0365/0.399, allocations: 17.83 MB / 0.5045 GB, free: 13.31 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002641/0.3993, allocations: 198.9 kB / 0.5047 GB, free: 13.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.103/2.502, allocations: 4.062 kB / 0.5047 GB, free: 13.07 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/linux/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) Environment - environmentSimulation: