Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.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.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationSteadyState",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.001381/0.001381, allocations: 185.7 kB / 8.01 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.3 MB / 213.7 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00113/0.00113, allocations: 91.61 kB / 261.8 MB, free: 1.613 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2603/0.2603, allocations: 37.99 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.706e-05/2.727e-05, allocations: 4 kB / 409.9 MB, free: 34.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1516, allocations: 56.33 MB / 466.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4889/0.6405, allocations: 103 MB / 0.556 GB, free: 7.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.6408, allocations: 82.95 kB / 0.556 GB, free: 7.891 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1135/0.7543, allocations: 25.58 MB / 0.581 GB, free: 2.234 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.7544, allocations: 0 / 0.581 GB, free: 2.234 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.473e-05/0.7545, allocations: 24 kB / 0.581 GB, free: 2.211 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003341/0.7578, allocations: 1.059 MB / 0.5821 GB, free: 1.156 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.7579, allocations: 12.03 kB / 0.5821 GB, free: 1.145 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001778/0.7597, allocations: 186.5 kB / 0.5823 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005719/0.7654, allocations: 1.337 MB / 0.5836 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.165e-05/0.7656, allocations: 28 kB / 0.5836 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002453/0.7658, allocations: 51.94 kB / 0.5836 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002305/0.7681, allocations: 0.7309 MB / 0.5844 GB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002713/0.7709, allocations: 1.016 MB / 0.5853 GB, free: 14.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-05/0.771, allocations: 11.84 kB / 0.5854 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000106/0.7711, allocations: 4 kB / 0.5854 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/0.7712, allocations: 53.81 kB / 0.5854 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009326/0.7806, allocations: 4.541 MB / 0.5898 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.7823, allocations: 0.6323 MB / 0.5905 GB, free: 9.785 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008653/0.7832, allocations: 382.5 kB / 0.5908 GB, free: 9.531 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.102e-05/0.7833, allocations: 11.69 kB / 0.5908 GB, free: 9.523 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009488/0.7843, allocations: 430.9 kB / 0.5913 GB, free: 9.176 MB / 394.7 MB Notification: Performance of pre-optimization done (n=69): time 3.466e-06/0.7843, allocations: 0 / 0.5913 GB, free: 9.176 MB / 394.7 MB Notification: Performance of matching and sorting (n=70): time 0.004684/0.789, allocations: 1.576 MB / 0.5928 GB, free: 7.863 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.7892, allocations: 166.8 kB / 0.5929 GB, free: 7.664 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008831/0.7901, allocations: 469.8 kB / 0.5934 GB, free: 7.293 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001407/0.7902, allocations: 29.7 kB / 0.5934 GB, free: 7.258 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004743/0.7907, allocations: 0.4905 MB / 0.5939 GB, free: 6.867 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003586/0.7911, allocations: 235.8 kB / 0.5941 GB, free: 6.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.827e-05/0.7912, allocations: 0 / 0.5941 GB, free: 6.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.7913, allocations: 342.2 kB / 0.5945 GB, free: 6.332 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000717/0.7921, allocations: 277 kB / 0.5947 GB, free: 6.148 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009067/0.793, allocations: 0.5234 MB / 0.5952 GB, free: 5.621 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009807/0.794, allocations: 380.9 kB / 0.5956 GB, free: 5.352 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/0.794, allocations: 4 kB / 0.5956 GB, free: 5.348 MB / 394.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00321/0.7973, allocations: 1.067 MB / 0.5966 GB, free: 4.496 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.257e-05/0.7974, allocations: 33.7 kB / 0.5967 GB, free: 4.457 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.7974, allocations: 12 kB / 0.5967 GB, free: 4.445 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001701/0.7991, allocations: 341.3 kB / 0.597 GB, free: 4.168 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.8002, allocations: 143 kB / 0.5971 GB, free: 4.031 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008581/0.8088, allocations: 4.757 MB / 0.6018 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009336/0.8098, allocations: 30.64 kB / 0.6018 GB, free: 15.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.8099, allocations: 38.67 kB / 0.6019 GB, free: 15.75 MB / 410.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: 11 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,switch.control[1],$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 76 * 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 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002913/0.8102, allocations: 160.4 kB / 0.602 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002812/0.813, allocations: 0.9099 MB / 0.6029 GB, free: 14.87 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002222/0.8133, allocations: 79.05 kB / 0.603 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003057/0.8164, allocations: 0.9753 MB / 0.6039 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.321e-05/0.8164, allocations: 12 kB / 0.6039 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.8165, allocations: 7.984 kB / 0.6039 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/0.8165, allocations: 0 / 0.6039 GB, free: 14.03 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005536/0.822, allocations: 1.899 MB / 0.6058 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/0.8221, allocations: 3.938 kB / 0.6058 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006367/0.8227, allocations: 84.05 kB / 0.6059 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001576/0.8243, allocations: 309.4 kB / 0.6062 GB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.8245, allocations: 8 kB / 0.6062 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00869/0.8332, allocations: 4.706 MB / 0.6108 GB, free: 6.836 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.967e-06/0.8332, allocations: 3.953 kB / 0.6108 GB, free: 6.832 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003171/0.8364, allocations: 1.122 MB / 0.6119 GB, free: 5.637 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003774/0.8368, allocations: 152.1 kB / 0.612 GB, free: 5.469 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/0.8371, allocations: 4 kB / 0.612 GB, free: 5.465 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006507/0.8377, allocations: 19.97 kB / 0.612 GB, free: 5.445 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002156/0.838, allocations: 56.39 kB / 0.6121 GB, free: 5.391 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.982e-05/0.838, allocations: 23.98 kB / 0.6121 GB, free: 5.367 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000712/0.8388, allocations: 355.2 kB / 0.6125 GB, free: 5.027 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8388, allocations: 0 / 0.6125 GB, free: 5.027 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001786/0.8406, allocations: 260 kB / 0.6127 GB, free: 4.773 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.closed,switch.control[1],$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 38 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003935/0.8446, allocations: 2.147 MB / 0.6148 GB, free: 2.547 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002833/0.8474, allocations: 1.09 MB / 0.6159 GB, free: 1.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.8475, allocations: 0 / 0.6159 GB, free: 1.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001794/0.8493, allocations: 0.7417 MB / 0.6166 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.8506, allocations: 147.2 kB / 0.6167 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005107/0.8557, allocations: 1.602 MB / 0.6183 GB, free: 14.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001214/0.857, allocations: 1.132 MB / 0.6194 GB, free: 13.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007553/0.8577, allocations: 331.3 kB / 0.6197 GB, free: 13.36 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/0.8578, allocations: 0 / 0.6197 GB, free: 13.36 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.123/3.981, allocations: 21.19 MB / 0.6404 GB, free: 8.145 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)