Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",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.002453/0.002452, allocations: 183.3 kB / 15.76 MB, free: 6.344 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.029/2.029, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001131/0.001131, allocations: 86.86 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2755/0.2755, allocations: 38.05 MB / 356.5 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006358/0.0006357, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1133, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5219/0.6352, allocations: 112.8 MB / 0.5781 GB, free: 2.809 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003383/0.6356, allocations: 105.2 kB / 0.5782 GB, free: 2.75 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1378/0.7735, allocations: 28.2 MB / 0.6058 GB, free: 10.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.045e-06/0.7735, allocations: 0 / 0.6058 GB, free: 10.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001126/0.7737, allocations: 27.98 kB / 0.6058 GB, free: 10.18 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.009155/0.7828, allocations: 1.764 MB / 0.6075 GB, free: 8.422 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.575e-05/0.7829, allocations: 16.03 kB / 0.6075 GB, free: 8.406 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009969/0.7839, allocations: 159.8 kB / 0.6077 GB, free: 8.305 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/0.7853, allocations: 158.6 kB / 0.6078 GB, free: 8.148 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009164/0.7946, allocations: 1.662 MB / 0.6094 GB, free: 6.719 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001267/0.7959, allocations: 0.517 MB / 0.6099 GB, free: 6.176 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000719/0.7966, allocations: 90.42 kB / 0.61 GB, free: 6.113 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008814/0.8055, allocations: 2.108 MB / 0.6121 GB, free: 4.504 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.577e-05/0.8056, allocations: 0 / 0.6121 GB, free: 4.504 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002492/0.8058, allocations: 32.75 kB / 0.6121 GB, free: 4.496 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003478/0.8062, allocations: 83.33 kB / 0.6122 GB, free: 4.422 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/0.8168, allocations: 2.381 MB / 0.6145 GB, free: 2.648 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0196/0.8365, allocations: 5.749 MB / 0.6201 GB, free: 14.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009362/0.8459, allocations: 1.815 MB / 0.6219 GB, free: 12.69 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002614/0.8462, allocations: 13 kB / 0.6219 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006008/0.8523, allocations: 1.488 MB / 0.6234 GB, free: 11.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=125): time 4.809e-06/0.8523, allocations: 3.938 kB / 0.6234 GB, free: 11.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.02936/0.8817, allocations: 6.645 MB / 0.6299 GB, free: 5.293 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.8818, allocations: 106.1 kB / 0.63 GB, free: 5.172 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009576/0.8828, allocations: 441.1 kB / 0.6304 GB, free: 4.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004328/0.8832, allocations: 57.69 kB / 0.6304 GB, free: 4.668 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003923/0.8836, allocations: 391.2 kB / 0.6308 GB, free: 4.281 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007277/0.8844, allocations: 425.9 kB / 0.6312 GB, free: 3.859 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.8846, allocations: 20 kB / 0.6312 GB, free: 3.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002045/0.8848, allocations: 366.7 kB / 0.6316 GB, free: 3.473 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004311/0.8891, allocations: 1.142 MB / 0.6327 GB, free: 2.332 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004815/0.894, allocations: 1.282 MB / 0.634 GB, free: 1.012 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00459/0.8986, allocations: 1.175 MB / 0.6351 GB, free: 15.83 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.829e-06/0.8987, allocations: 3.938 kB / 0.6351 GB, free: 15.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.02378/0.9225, allocations: 4.452 MB / 0.6395 GB, free: 11.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001287/0.9226, allocations: 61.94 kB / 0.6395 GB, free: 11.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.9227, allocations: 7.984 kB / 0.6395 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01286/0.9355, allocations: 2.125 MB / 0.6416 GB, free: 9.125 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001648/0.9372, allocations: 171.6 kB / 0.6418 GB, free: 8.957 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05859/0.9958, allocations: 14.12 MB / 0.6556 GB, free: 10.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003272/0.9992, allocations: 207.9 kB / 0.6558 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007811/1, allocations: 67.94 kB / 0.6558 GB, free: 10.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 98 * Array equations: 4 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.001833/1.002, allocations: 365.5 kB / 0.6562 GB, free: 9.93 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004339/1.002, allocations: 83.05 kB / 0.6562 GB, free: 9.848 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01241/1.015, allocations: 2.657 MB / 0.6588 GB, free: 7.16 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.545e-05/1.015, allocations: 27.98 kB / 0.6589 GB, free: 7.133 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/1.015, allocations: 7.938 kB / 0.6589 GB, free: 7.125 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.394e-05/1.015, allocations: 7.984 kB / 0.6589 GB, free: 7.117 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01786/1.033, allocations: 4.407 MB / 0.6632 GB, free: 2.605 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/1.033, allocations: 4.031 kB / 0.6632 GB, free: 2.602 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02501/1.058, allocations: 2.821 MB / 0.6659 GB, free: 15.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001735/1.058, allocations: 28.84 kB / 0.666 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004317/1.059, allocations: 39.95 kB / 0.666 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001416/1.06, allocations: 1.392 MB / 0.6674 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.405e-06/1.06, allocations: 7.969 kB / 0.6674 GB, free: 14.17 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01822/1.078, allocations: 4.394 MB / 0.6717 GB, free: 9.656 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/1.08, allocations: 339.9 kB / 0.672 GB, free: 9.305 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004984/1.08, allocations: 88.12 kB / 0.6721 GB, free: 9.219 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003091/1.083, allocations: 243.7 kB / 0.6723 GB, free: 8.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009841/1.084, allocations: 204.6 kB / 0.6725 GB, free: 8.777 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002596/1.085, allocations: 39.97 kB / 0.6725 GB, free: 8.738 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007891/1.085, allocations: 338.8 kB / 0.6729 GB, free: 8.406 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.085, allocations: 0 / 0.6729 GB, free: 8.406 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002454/1.088, allocations: 375.9 kB / 0.6732 GB, free: 8.039 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 92 * Array equations: 4 * 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.01974/1.108, allocations: 5.695 MB / 0.6788 GB, free: 2.23 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01405/1.122, allocations: 3.282 MB / 0.682 GB, free: 14.91 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.122, allocations: 0 / 0.682 GB, free: 14.91 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01374/1.136, allocations: 2.374 MB / 0.6843 GB, free: 12.52 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001803/1.137, allocations: 154.5 kB / 0.6845 GB, free: 12.37 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04967/1.187, allocations: 13.57 MB / 0.6977 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/1.188, allocations: 1.171 MB / 0.6989 GB, free: 13.38 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001471/1.19, allocations: 339.3 kB / 0.6992 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of SimCode: time 1.202e-06/1.19, allocations: 0 / 0.6992 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.061/5.251, allocations: 25.95 MB / 0.7245 GB, free: 158.3 MB / 0.4948 GB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)