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.002232/0.002232, allocations: 184.7 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.176/2.176, allocations: 205.2 MB / 218.9 MB, free: 9.195 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.001097/0.001096, allocations: 84.53 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2869/0.2869, allocations: 37.96 MB / 353.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.261e-05/4.276e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5235/0.6321, allocations: 112.3 MB / 0.5718 GB, free: 7.305 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003246/0.6325, allocations: 91.95 kB / 0.5719 GB, free: 7.215 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1271/0.7596, allocations: 24.03 MB / 0.5954 GB, free: 14.96 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.7597, allocations: 0 / 0.5954 GB, free: 14.96 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.255e-05/0.7598, allocations: 27.88 kB / 0.5954 GB, free: 14.93 MB / 442.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.004366/0.7641, allocations: 1.327 MB / 0.5967 GB, free: 13.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.7642, allocations: 8.031 kB / 0.5967 GB, free: 13.53 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005808/0.7648, allocations: 160.1 kB / 0.5969 GB, free: 13.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001448/0.7663, allocations: 159.3 kB / 0.597 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006688/0.773, allocations: 1.383 MB / 0.5984 GB, free: 11.78 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002997/0.7733, allocations: 183 kB / 0.5985 GB, free: 11.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004616/0.7738, allocations: 91.98 kB / 0.5986 GB, free: 11.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005964/0.7798, allocations: 1.424 MB / 0.6 GB, free: 9.988 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.012e-05/0.7799, allocations: 0 / 0.6 GB, free: 9.988 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002533/0.7802, allocations: 47.94 kB / 0.6001 GB, free: 9.941 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002186/0.7804, allocations: 53.98 kB / 0.6001 GB, free: 9.891 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005059/0.7855, allocations: 1.038 MB / 0.6011 GB, free: 8.848 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01728/0.8029, allocations: 4.792 MB / 0.6058 GB, free: 3.906 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003389/0.8063, allocations: 0.9057 MB / 0.6067 GB, free: 2.965 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001859/0.8082, allocations: 495.8 kB / 0.6072 GB, free: 2.477 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001256/0.8084, allocations: 16.53 kB / 0.6072 GB, free: 2.457 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002019/0.8104, allocations: 0.6301 MB / 0.6078 GB, free: 1.809 MB / 442.7 MB Notification: Performance of pre-optimization done (n=82): time 5.701e-06/0.8105, allocations: 0 / 0.6078 GB, free: 1.809 MB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.008468/0.819, allocations: 2.384 MB / 0.6101 GB, free: 15.34 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/0.8191, allocations: 127.1 kB / 0.6103 GB, free: 15.19 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001349/0.8205, allocations: 0.5048 MB / 0.6107 GB, free: 14.68 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002644/0.8208, allocations: 61.69 kB / 0.6108 GB, free: 14.62 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006847/0.8215, allocations: 481.6 kB / 0.6113 GB, free: 14.14 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006158/0.8222, allocations: 284.1 kB / 0.6115 GB, free: 13.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.8223, allocations: 20 kB / 0.6116 GB, free: 13.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002747/0.8226, allocations: 350.8 kB / 0.6119 GB, free: 13.49 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.8246, allocations: 0.4942 MB / 0.6124 GB, free: 13 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002526/0.8272, allocations: 0.7697 MB / 0.6131 GB, free: 12.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002545/0.8298, allocations: 0.631 MB / 0.6137 GB, free: 11.47 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.298e-05/0.8299, allocations: 0 / 0.6137 GB, free: 11.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.006744/0.8367, allocations: 1.573 MB / 0.6153 GB, free: 9.863 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001812/0.8369, allocations: 61.67 kB / 0.6153 GB, free: 9.797 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005276/0.8422, allocations: 1.358 MB / 0.6167 GB, free: 8.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009082/0.8432, allocations: 101.6 kB / 0.6168 GB, free: 8.305 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002468/0.8457, allocations: 195.6 kB / 0.6169 GB, free: 8.113 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/0.8511, allocations: 2.982 MB / 0.6199 GB, free: 4.863 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.8531, allocations: 75.83 kB / 0.6199 GB, free: 4.789 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002582/0.8534, allocations: 68.05 kB / 0.62 GB, free: 4.723 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 108 * Array equations: 2 * 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%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000547/0.854, allocations: 191.7 kB / 0.6202 GB, free: 4.531 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003412/0.8543, allocations: 75.14 kB / 0.6202 GB, free: 4.457 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004426/0.8588, allocations: 1.104 MB / 0.6213 GB, free: 3.316 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.532e-05/0.8589, allocations: 20 kB / 0.6213 GB, free: 3.297 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.8589, allocations: 0 / 0.6213 GB, free: 3.297 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.44e-05/0.859, allocations: 3.984 kB / 0.6213 GB, free: 3.293 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008881/0.8679, allocations: 2.3 MB / 0.6236 GB, free: 0.9023 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.786e-05/0.868, allocations: 4 kB / 0.6236 GB, free: 0.8984 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/0.8701, allocations: 151.7 kB / 0.6237 GB, free: 0.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001771/0.8703, allocations: 28.95 kB / 0.6238 GB, free: 0.7188 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001957/0.8705, allocations: 23.97 kB / 0.6238 GB, free: 0.6953 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001976/0.8725, allocations: 1.385 MB / 0.6251 GB, free: 15.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.8726, allocations: 0 / 0.6251 GB, free: 15.18 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006528/0.8791, allocations: 1.735 MB / 0.6268 GB, free: 13.37 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.8802, allocations: 248 kB / 0.6271 GB, free: 13.11 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004527/0.8807, allocations: 75.95 kB / 0.6271 GB, free: 13.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002334/0.883, allocations: 107.9 kB / 0.6272 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003227/0.8834, allocations: 56.66 kB / 0.6273 GB, free: 12.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/0.8836, allocations: 31.98 kB / 0.6273 GB, free: 12.84 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001138/0.8847, allocations: 389.5 kB / 0.6277 GB, free: 12.46 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.8848, allocations: 0 / 0.6277 GB, free: 12.46 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002284/0.8871, allocations: 260 kB / 0.628 GB, free: 12.21 MB / 474.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]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 61 * Array equations: 2 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007585/0.8947, allocations: 2.656 MB / 0.6305 GB, free: 9.477 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00559/0.9003, allocations: 1.58 MB / 0.6321 GB, free: 7.859 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/0.9004, allocations: 4 kB / 0.6321 GB, free: 7.855 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002223/0.9026, allocations: 0.5848 MB / 0.6327 GB, free: 7.258 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002074/0.9048, allocations: 155.9 kB / 0.6328 GB, free: 7.109 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007179/0.912, allocations: 2.23 MB / 0.635 GB, free: 4.82 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/0.9131, allocations: 1.13 MB / 0.6361 GB, free: 3.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000926/0.9141, allocations: 335.3 kB / 0.6364 GB, free: 3.332 MB / 474.7 MB Notification: Performance of SimCode: time 1.252e-06/0.9141, allocations: 4 kB / 0.6364 GB, free: 3.328 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.682/4.596, allocations: 21.57 MB / 0.6575 GB, free: 132.7 MB / 474.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)