Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_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.002113/0.002113, allocations: 184.9 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 1.987/1.987, allocations: 205.2 MB / 218.9 MB, free: 9.137 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.001048/0.001047, allocations: 99.69 kB / 267.1 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2748/0.2748, allocations: 37.97 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.508e-05/3.527e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 56.32 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4816/0.5872, allocations: 102 MB / 0.5618 GB, free: 1.637 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000331/0.5876, allocations: 95.94 kB / 0.5618 GB, free: 1.543 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07352/0.6611, allocations: 15.69 MB / 0.5772 GB, free: 1.676 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6612, allocations: 0 / 0.5772 GB, free: 1.676 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.919e-05/0.6613, allocations: 16 kB / 0.5772 GB, free: 1.66 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.003893/0.6652, allocations: 1.046 MB / 0.5782 GB, free: 0.5547 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.6652, allocations: 8.031 kB / 0.5782 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004314/0.6657, allocations: 110.5 kB / 0.5783 GB, free: 440 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000317/0.666, allocations: 91.11 kB / 0.5784 GB, free: 348 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005896/0.6719, allocations: 1.214 MB / 0.5796 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008404/0.6728, allocations: 350.8 kB / 0.5799 GB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003354/0.6732, allocations: 63.91 kB / 0.58 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002597/0.6758, allocations: 0.8927 MB / 0.5809 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.665e-05/0.6759, allocations: 0 / 0.5809 GB, free: 13.7 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/0.676, allocations: 31.94 kB / 0.5809 GB, free: 13.67 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.627e-05/0.676, allocations: 12 kB / 0.5809 GB, free: 13.66 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002693/0.6787, allocations: 0.8316 MB / 0.5817 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009405/0.6882, allocations: 3.273 MB / 0.5849 GB, free: 9.449 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001772/0.69, allocations: 0.5545 MB / 0.5855 GB, free: 8.875 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001178/0.6912, allocations: 401.7 kB / 0.5858 GB, free: 8.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.639e-05/0.6914, allocations: 4.438 kB / 0.5858 GB, free: 8.477 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001272/0.6926, allocations: 496.4 kB / 0.5863 GB, free: 7.965 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 5.78e-06/0.6927, allocations: 3.984 kB / 0.5863 GB, free: 7.961 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.002072/0.6948, allocations: 0.6598 MB / 0.587 GB, free: 7.297 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.6949, allocations: 140.5 kB / 0.5871 GB, free: 7.129 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006569/0.6956, allocations: 343 kB / 0.5874 GB, free: 6.789 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001441/0.6957, allocations: 37.7 kB / 0.5875 GB, free: 6.746 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003239/0.6961, allocations: 338.9 kB / 0.5878 GB, free: 6.414 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000248/0.6963, allocations: 165.7 kB / 0.5879 GB, free: 6.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.175e-05/0.6964, allocations: 12 kB / 0.588 GB, free: 6.238 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.6966, allocations: 338.8 kB / 0.5883 GB, free: 5.898 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009444/0.6976, allocations: 333.2 kB / 0.5886 GB, free: 5.574 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.6986, allocations: 438.5 kB / 0.589 GB, free: 5.105 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009305/0.6996, allocations: 352.8 kB / 0.5893 GB, free: 4.754 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.6996, allocations: 0 / 0.5893 GB, free: 4.754 MB / 426.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002346/0.702, allocations: 0.8207 MB / 0.5902 GB, free: 3.918 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.441e-05/0.7021, allocations: 45.69 kB / 0.5902 GB, free: 3.867 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.7021, allocations: 4 kB / 0.5902 GB, free: 3.863 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-05/0.7022, allocations: 8 kB / 0.5902 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01271/0.7149, allocations: 1.588 MB / 0.5918 GB, free: 2.266 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009419/0.7244, allocations: 4.099 MB / 0.5958 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.7258, allocations: 139.4 kB / 0.5959 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000161/0.726, allocations: 39.97 kB / 0.5959 GB, free: 13.73 MB / 442.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: 14 ($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.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00031/0.7263, allocations: 142.6 kB / 0.5961 GB, free: 13.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001946/0.7266, allocations: 55.41 kB / 0.5961 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002141/0.7287, allocations: 0.7038 MB / 0.5968 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.7288, allocations: 4 kB / 0.5968 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.7288, allocations: 8 kB / 0.5968 GB, free: 12.81 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.7288, allocations: 11.94 kB / 0.5968 GB, free: 12.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004529/0.7334, allocations: 1.851 MB / 0.5986 GB, free: 10.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.7334, allocations: 0 / 0.5986 GB, free: 10.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0157/0.7491, allocations: 1.83 MB / 0.6004 GB, free: 9.031 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.952e-05/0.7492, allocations: 8 kB / 0.6004 GB, free: 9.023 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001709/0.7494, allocations: 11.98 kB / 0.6004 GB, free: 9.012 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.678e-06/0.7494, allocations: 8 kB / 0.6005 GB, free: 9.004 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.7494, allocations: 3.938 kB / 0.6005 GB, free: 9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004317/0.7537, allocations: 1.357 MB / 0.6018 GB, free: 7.562 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009994/0.7548, allocations: 212.4 kB / 0.602 GB, free: 7.336 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003378/0.7551, allocations: 27.98 kB / 0.602 GB, free: 7.309 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002206/0.7574, allocations: 119.9 kB / 0.6021 GB, free: 7.191 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006032/0.758, allocations: 99.73 kB / 0.6022 GB, free: 7.094 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/0.7582, allocations: 19.98 kB / 0.6022 GB, free: 7.074 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007555/0.759, allocations: 265.2 kB / 0.6025 GB, free: 6.816 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.759, allocations: 0 / 0.6025 GB, free: 6.816 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001714/0.7607, allocations: 175.7 kB / 0.6027 GB, free: 6.645 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005715/0.7665, allocations: 2.429 MB / 0.605 GB, free: 4.133 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01584/0.7824, allocations: 2.071 MB / 0.6071 GB, free: 2.051 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.118e-06/0.7824, allocations: 0 / 0.6071 GB, free: 2.051 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00799/0.7904, allocations: 0.9646 MB / 0.608 GB, free: 1.086 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.7922, allocations: 121.6 kB / 0.6081 GB, free: 0.9688 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009011/0.8012, allocations: 1.506 MB / 0.6096 GB, free: 15.39 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.8024, allocations: 0.945 MB / 0.6105 GB, free: 14.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001039/0.8035, allocations: 203.4 kB / 0.6107 GB, free: 14.22 MB / 458.7 MB Notification: Performance of SimCode: time 1.864e-06/0.8035, allocations: 0 / 0.6107 GB, free: 14.22 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.147/3.95, allocations: 13.82 MB / 0.6242 GB, free: 392 kB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)