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.001473/0.001473, allocations: 183.3 kB / 15.76 MB, free: 6.363 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.967/1.967, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001126/0.001125, allocations: 94.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2628/0.2628, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004567/0.0004568, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1095, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4816/0.5912, allocations: 102.1 MB / 0.5676 GB, free: 13.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003698/0.5916, allocations: 102.5 kB / 0.5677 GB, free: 13.49 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07077/0.6624, allocations: 15.69 MB / 0.583 GB, free: 15.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.6624, allocations: 0 / 0.583 GB, free: 15.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.138e-05/0.6625, allocations: 19.94 kB / 0.5831 GB, free: 15.84 MB / 394.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.004119/0.6667, allocations: 1.112 MB / 0.5842 GB, free: 14.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.6667, allocations: 8.031 kB / 0.5842 GB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004598/0.6672, allocations: 112.5 kB / 0.5843 GB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003009/0.6675, allocations: 87.11 kB / 0.5844 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005678/0.6732, allocations: 1.239 MB / 0.5856 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007694/0.674, allocations: 343.7 kB / 0.5859 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003104/0.6743, allocations: 63.19 kB / 0.586 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004259/0.6786, allocations: 1.104 MB / 0.587 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/0.6787, allocations: 4 kB / 0.587 GB, free: 12.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001238/0.6788, allocations: 25.89 kB / 0.5871 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.6789, allocations: 20 kB / 0.5871 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005609/0.6845, allocations: 1.191 MB / 0.5882 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00901/0.6935, allocations: 3.27 MB / 0.5914 GB, free: 8.574 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004386/0.698, allocations: 0.8576 MB / 0.5923 GB, free: 7.879 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.6981, allocations: 8.422 kB / 0.5923 GB, free: 7.871 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002903/0.701, allocations: 0.6744 MB / 0.5929 GB, free: 7.312 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 3.146e-06/0.701, allocations: 4 kB / 0.5929 GB, free: 7.309 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.007868/0.7089, allocations: 1.552 MB / 0.5945 GB, free: 6.066 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.7091, allocations: 147.5 kB / 0.5946 GB, free: 5.895 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006425/0.7097, allocations: 336.7 kB / 0.5949 GB, free: 5.617 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001816/0.7099, allocations: 43.95 kB / 0.595 GB, free: 5.578 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/0.7102, allocations: 340.8 kB / 0.5953 GB, free: 5.301 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002406/0.7105, allocations: 159.1 kB / 0.5954 GB, free: 5.168 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.437e-05/0.7106, allocations: 11.19 kB / 0.5954 GB, free: 5.164 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.7107, allocations: 337.7 kB / 0.5958 GB, free: 4.836 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002075/0.7128, allocations: 496.6 kB / 0.5962 GB, free: 4.477 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002215/0.7151, allocations: 0.5863 MB / 0.5968 GB, free: 3.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002118/0.7172, allocations: 0.4924 MB / 0.5973 GB, free: 3.609 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.7173, allocations: 7.938 kB / 0.5973 GB, free: 3.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004587/0.7219, allocations: 1.129 MB / 0.5984 GB, free: 2.719 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.294e-05/0.722, allocations: 49.5 kB / 0.5985 GB, free: 2.668 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.722, allocations: 4 kB / 0.5985 GB, free: 2.664 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.7221, allocations: 4 kB / 0.5985 GB, free: 2.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01269/0.7348, allocations: 1.592 MB / 0.6 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01549/0.7503, allocations: 4.988 MB / 0.6049 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.7517, allocations: 135 kB / 0.605 GB, free: 12.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.7519, allocations: 39.56 kB / 0.6051 GB, free: 12.08 MB / 410.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 () * Number of clocked 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.0006225/0.7525, allocations: 252.6 kB / 0.6053 GB, free: 11.87 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.7527, allocations: 47.44 kB / 0.6053 GB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005291/0.758, allocations: 1.114 MB / 0.6064 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.242e-05/0.7581, allocations: 8 kB / 0.6064 GB, free: 10.94 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.7581, allocations: 4 kB / 0.6064 GB, free: 10.94 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.7581, allocations: 0 / 0.6064 GB, free: 10.94 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007889/0.766, allocations: 2.202 MB / 0.6086 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.7661, allocations: 3.938 kB / 0.6086 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01555/0.7816, allocations: 1.834 MB / 0.6104 GB, free: 7.285 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.011e-05/0.7817, allocations: 15.94 kB / 0.6104 GB, free: 7.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001688/0.7819, allocations: 10.69 kB / 0.6104 GB, free: 7.266 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.521e-05/0.7819, allocations: 11.92 kB / 0.6104 GB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.7819, allocations: 0 / 0.6104 GB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008286/0.7902, allocations: 1.965 MB / 0.6123 GB, free: 5.645 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000616/0.7909, allocations: 199.6 kB / 0.6125 GB, free: 5.461 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001989/0.7911, allocations: 33.75 kB / 0.6126 GB, free: 5.441 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.7925, allocations: 126.6 kB / 0.6127 GB, free: 5.324 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000366/0.7929, allocations: 86.72 kB / 0.6128 GB, free: 5.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.002e-05/0.793, allocations: 19.3 kB / 0.6128 GB, free: 5.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004843/0.7935, allocations: 267.6 kB / 0.613 GB, free: 5.023 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.7935, allocations: 4 kB / 0.613 GB, free: 5.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009798/0.7945, allocations: 185.5 kB / 0.6132 GB, free: 4.852 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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]) * Number of clocked states: 0 () * 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.008969/0.8035, allocations: 2.955 MB / 0.6161 GB, free: 2.262 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01468/0.8182, allocations: 2.436 MB / 0.6185 GB, free: 96 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.236e-05/0.8183, allocations: 4 kB / 0.6185 GB, free: 92 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007569/0.8259, allocations: 1.152 MB / 0.6196 GB, free: 15.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.8271, allocations: 120.2 kB / 0.6197 GB, free: 14.99 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01805/0.8452, allocations: 6.626 MB / 0.6262 GB, free: 8.695 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007817/0.846, allocations: 0.9449 MB / 0.6271 GB, free: 7.719 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007665/0.8468, allocations: 199.4 kB / 0.6273 GB, free: 7.523 MB / 426.7 MB Notification: Performance of SimCode: time 1.242e-06/0.8468, allocations: 4 kB / 0.6273 GB, free: 7.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.108/3.955, allocations: 13.87 MB / 0.6409 GB, free: 9.645 MB / 442.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)