Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008053/0.0008053, allocations: 174.3 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.175/1.175, allocations: 205.4 MB / 222.2 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006989/0.000699, allocations: 84.98 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1639/0.1639, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003312/0.0003312, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2393, allocations: 56.33 MB / 479.7 MB, free: 9.215 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.006534/0.2458, allocations: 7.521 MB / 487.3 MB, free: 4.102 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004008/0.2499, allocations: 2.398 MB / 489.7 MB, free: 2.402 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008869/0.2508, allocations: 53.53 kB / 489.7 MB, free: 2.379 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00049/0.2513, allocations: 163.1 kB / 489.9 MB, free: 2.297 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002067/0.2534, allocations: 0.6141 MB / 490.5 MB, free: 1.98 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001278/0.2547, allocations: 407.3 kB / 490.9 MB, free: 1.805 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001875/0.2566, allocations: 1.568 MB / 492.5 MB, free: 1.23 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.2582, allocations: 1.007 MB / 493.5 MB, free: 0.6719 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009193/0.2591, allocations: 0.5067 MB / 494 MB, free: 496 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009408/0.26, allocations: 0.6338 MB / 494.6 MB, free: 300 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.2602, allocations: 43.06 kB / 494.6 MB, free: 300 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009491/0.2611, allocations: 0.5033 MB / 495.1 MB, free: 176 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004926/0.2616, allocations: 452.7 kB / 495.6 MB, free: 52 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005911/0.2622, allocations: 0.5004 MB / 496.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001527/0.2638, allocations: 1.154 MB / 497.2 MB, free: 15.51 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.2638, allocations: 1.062 kB / 497.2 MB, free: 15.51 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2638, allocations: 0 / 497.2 MB, free: 15.51 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.426e-05/0.2638, allocations: 0 / 497.2 MB, free: 15.51 MB / 330.7 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.003205/0.267, allocations: 1.361 MB / 498.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.2671, allocations: 9 kB / 498.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002625/0.2674, allocations: 155.5 kB / 498.8 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008176/0.2682, allocations: 166.2 kB / 498.9 MB, free: 14.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.2694, allocations: 0.6908 MB / 499.6 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.2696, allocations: 176.5 kB / 499.8 MB, free: 13.58 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002449/0.2698, allocations: 110.2 kB / 499.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003059/0.2729, allocations: 1.548 MB / 0.4897 GB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.078e-05/0.2729, allocations: 4.906 kB / 0.4897 GB, free: 12.56 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.273, allocations: 38.41 kB / 0.4897 GB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001758/0.2732, allocations: 67.03 kB / 0.4898 GB, free: 12.52 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002518/0.2758, allocations: 1.187 MB / 0.491 GB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007043/0.2828, allocations: 4.812 MB / 0.4957 GB, free: 8.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003157/0.286, allocations: 1.189 MB / 0.4968 GB, free: 7.523 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001387/0.2874, allocations: 0.5879 MB / 0.4974 GB, free: 7.242 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.567e-05/0.2875, allocations: 16.67 kB / 0.4974 GB, free: 7.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001484/0.289, allocations: 0.7375 MB / 0.4981 GB, free: 6.789 MB / 330.7 MB Notification: Performance of pre-optimization done (n=80): time 3.416e-06/0.289, allocations: 1.344 kB / 0.4981 GB, free: 6.789 MB / 330.7 MB Notification: Performance of matching and sorting (n=81): time 0.007309/0.2963, allocations: 3.301 MB / 0.5014 GB, free: 4.164 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.274e-05/0.2965, allocations: 127.4 kB / 0.5015 GB, free: 4.016 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000771/0.2973, allocations: 0.5886 MB / 0.502 GB, free: 3.418 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001497/0.2974, allocations: 57.69 kB / 0.5021 GB, free: 3.355 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003726/0.2978, allocations: 443.1 kB / 0.5025 GB, free: 2.914 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002394/0.2981, allocations: 280.2 kB / 0.5028 GB, free: 2.637 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.397e-05/0.2981, allocations: 20 kB / 0.5028 GB, free: 2.617 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.2983, allocations: 390.8 kB / 0.5032 GB, free: 2.227 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007139/0.299, allocations: 478 kB / 0.5036 GB, free: 1.762 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008543/0.2999, allocations: 0.746 MB / 0.5044 GB, free: 0.9023 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.3014, allocations: 1.242 MB / 0.5056 GB, free: 15.54 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3015, allocations: 7.938 kB / 0.5056 GB, free: 15.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002457/0.3039, allocations: 1.576 MB / 0.5071 GB, free: 13.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.094e-05/0.304, allocations: 62.92 kB / 0.5072 GB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001938/0.306, allocations: 1.325 MB / 0.5085 GB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004782/0.3065, allocations: 117.5 kB / 0.5086 GB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009091/0.3074, allocations: 207.7 kB / 0.5088 GB, free: 12.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003056/0.3105, allocations: 3.075 MB / 0.5118 GB, free: 8.828 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009835/0.3115, allocations: 72.16 kB / 0.5119 GB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/0.3117, allocations: 83.92 kB / 0.5119 GB, free: 8.676 MB / 346.7 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.0009665/0.3126, allocations: 377.5 kB / 0.5123 GB, free: 8.297 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.3129, allocations: 75.06 kB / 0.5124 GB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002895/0.3158, allocations: 1.321 MB / 0.5137 GB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.562e-05/0.3158, allocations: 20 kB / 0.5137 GB, free: 6.855 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3158, allocations: 3.984 kB / 0.5137 GB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.3158, allocations: 0 / 0.5137 GB, free: 6.852 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004221/0.3201, allocations: 2.471 MB / 0.5161 GB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3201, allocations: 0 / 0.5161 GB, free: 4.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006911/0.3208, allocations: 151.7 kB / 0.5162 GB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.794e-05/0.3209, allocations: 36.83 kB / 0.5163 GB, free: 4.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.779e-05/0.321, allocations: 23.97 kB / 0.5163 GB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.322, allocations: 1.474 MB / 0.5177 GB, free: 2.469 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.322, allocations: 11.81 kB / 0.5178 GB, free: 2.457 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003801/0.3258, allocations: 1.981 MB / 0.5197 GB, free: 436 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004285/0.3263, allocations: 248 kB / 0.5199 GB, free: 168 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002365/0.3265, allocations: 76.02 kB / 0.52 GB, free: 92 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008173/0.3274, allocations: 111.9 kB / 0.5201 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.3275, allocations: 48.58 kB / 0.5202 GB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.39e-05/0.3276, allocations: 31.97 kB / 0.5202 GB, free: 15.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005131/0.3281, allocations: 398.8 kB / 0.5206 GB, free: 15.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3281, allocations: 0 / 0.5206 GB, free: 15.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001065/0.3292, allocations: 236 kB / 0.5208 GB, free: 15.28 MB / 362.7 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.00443/0.3336, allocations: 2.616 MB / 0.5233 GB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002749/0.3364, allocations: 1.647 MB / 0.525 GB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.3364, allocations: 0 / 0.525 GB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.3378, allocations: 0.6824 MB / 0.5256 GB, free: 10.22 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.3389, allocations: 171.2 kB / 0.5258 GB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01019/0.3491, allocations: 6.842 MB / 0.5325 GB, free: 2.965 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007332/0.3499, allocations: 1.103 MB / 0.5335 GB, free: 1.836 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005012/0.3504, allocations: 339.3 kB / 0.5339 GB, free: 1.504 MB / 362.7 MB Notification: Performance of SimCode: time 7.02e-07/0.3504, allocations: 0 / 0.5339 GB, free: 1.504 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.81/5.16, allocations: 19.56 MB / 0.553 GB, free: 13.91 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)