Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState") translateModel(PowerSystems.Examples.Introductory.SimulationSteadyState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002091/0.002096, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.046/2.046, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001467/0.001467, allocations: 86.64 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2697/0.2697, allocations: 38 MB / 347.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.725e-05/1.733e-05, allocations: 4 kB / 409.9 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1042, allocations: 56.33 MB / 466.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5081/0.6124, allocations: 103 MB / 0.5559 GB, free: 8.441 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.6127, allocations: 88.38 kB / 0.5559 GB, free: 8.426 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1192/0.732, allocations: 25.59 MB / 0.5809 GB, free: 2.906 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.732, allocations: 0 / 0.5809 GB, free: 2.906 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.746e-05/0.7321, allocations: 20 kB / 0.5809 GB, free: 2.887 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.00401/0.7362, allocations: 1.059 MB / 0.582 GB, free: 1.828 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/0.7362, allocations: 8.031 kB / 0.582 GB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002161/0.7384, allocations: 185.7 kB / 0.5822 GB, free: 1.641 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007009/0.7455, allocations: 1.332 MB / 0.5835 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.002e-05/0.7456, allocations: 35.88 kB / 0.5835 GB, free: 488 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002809/0.7459, allocations: 50.75 kB / 0.5836 GB, free: 440 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002892/0.7488, allocations: 0.7269 MB / 0.5843 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003259/0.7521, allocations: 1.013 MB / 0.5852 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.631e-05/0.7522, allocations: 11.84 kB / 0.5853 GB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001466/0.7524, allocations: 4 kB / 0.5853 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001522/0.7526, allocations: 49.36 kB / 0.5853 GB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01193/0.7645, allocations: 4.55 MB / 0.5898 GB, free: 10.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/0.7668, allocations: 0.6376 MB / 0.5904 GB, free: 10.46 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001139/0.768, allocations: 368.6 kB / 0.5907 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.594e-05/0.7681, allocations: 20.3 kB / 0.5907 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001251/0.7694, allocations: 430.5 kB / 0.5912 GB, free: 9.855 MB / 394.7 MB Notification: Performance of pre-optimization done (n=69): time 5.269e-06/0.7694, allocations: 0 / 0.5912 GB, free: 9.855 MB / 394.7 MB Notification: Performance of matching and sorting (n=70): time 0.005777/0.7752, allocations: 1.566 MB / 0.5927 GB, free: 8.551 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/0.7754, allocations: 174.5 kB / 0.5929 GB, free: 8.348 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008984/0.7763, allocations: 468.9 kB / 0.5933 GB, free: 7.977 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.7764, allocations: 29.7 kB / 0.5933 GB, free: 7.941 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004876/0.7769, allocations: 0.4924 MB / 0.5938 GB, free: 7.547 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003387/0.7773, allocations: 236.3 kB / 0.594 GB, free: 7.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.7773, allocations: 0 / 0.594 GB, free: 7.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.7775, allocations: 345.3 kB / 0.5944 GB, free: 7.008 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007024/0.7783, allocations: 280.8 kB / 0.5946 GB, free: 6.824 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009481/0.7792, allocations: 0.5197 MB / 0.5951 GB, free: 6.301 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.7803, allocations: 376.1 kB / 0.5955 GB, free: 6.031 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.7803, allocations: 8 kB / 0.5955 GB, free: 6.023 MB / 394.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003322/0.7836, allocations: 1.071 MB / 0.5966 GB, free: 5.168 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.295e-05/0.7837, allocations: 33.7 kB / 0.5966 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.628e-05/0.7838, allocations: 16 kB / 0.5966 GB, free: 5.113 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001726/0.7855, allocations: 329.9 kB / 0.5969 GB, free: 4.848 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.7866, allocations: 149.1 kB / 0.5971 GB, free: 4.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008907/0.7955, allocations: 4.75 MB / 0.6017 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009945/0.7965, allocations: 24.02 kB / 0.6017 GB, free: 472 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.7967, allocations: 42.31 kB / 0.6018 GB, free: 436 kB / 394.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.000302/0.797, allocations: 167.6 kB / 0.6019 GB, free: 264 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.7972, allocations: 75.06 kB / 0.602 GB, free: 188 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003154/0.8004, allocations: 0.9755 MB / 0.6029 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-05/0.8004, allocations: 15.94 kB / 0.603 GB, free: 15.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.8005, allocations: 4 kB / 0.603 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.812e-05/0.8005, allocations: 7.984 kB / 0.603 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005683/0.8062, allocations: 1.893 MB / 0.6048 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.8062, allocations: 144 / 0.6048 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006618/0.8069, allocations: 87.97 kB / 0.6049 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001582/0.8085, allocations: 309.7 kB / 0.6052 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.8087, allocations: 8 kB / 0.6052 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008788/0.8175, allocations: 4.706 MB / 0.6098 GB, free: 8.238 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.806e-06/0.8175, allocations: 4 kB / 0.6098 GB, free: 8.234 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003129/0.8207, allocations: 1.118 MB / 0.6109 GB, free: 7.039 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003549/0.8211, allocations: 148.2 kB / 0.611 GB, free: 6.875 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001972/0.8213, allocations: 4 kB / 0.611 GB, free: 6.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000667/0.822, allocations: 19.97 kB / 0.6111 GB, free: 6.852 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.8222, allocations: 56.42 kB / 0.6111 GB, free: 6.797 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.141e-05/0.8223, allocations: 23.95 kB / 0.6111 GB, free: 6.773 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007163/0.823, allocations: 355.2 kB / 0.6115 GB, free: 6.434 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.823, allocations: 0 / 0.6115 GB, free: 6.434 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001744/0.8248, allocations: 260 kB / 0.6117 GB, free: 6.18 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.0004425/0.8253, allocations: 172.6 kB / 0.6119 GB, free: 6.004 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002935/0.8282, allocations: 1.097 MB / 0.613 GB, free: 4.871 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.8283, allocations: 0.625 kB / 0.613 GB, free: 4.871 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002015/0.8303, allocations: 0.7369 MB / 0.6137 GB, free: 4.105 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.8318, allocations: 147.8 kB / 0.6138 GB, free: 3.957 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004128/0.836, allocations: 1.402 MB / 0.6152 GB, free: 2.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001143/0.8371, allocations: 1.128 MB / 0.6163 GB, free: 1.348 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.8375, allocations: 59.42 kB / 0.6163 GB, free: 1.289 MB / 410.7 MB Notification: Performance of SimCode: time 3.306e-06/0.8375, allocations: 0 / 0.6163 GB, free: 1.289 MB / 410.7 MB Notification: Performance of Templates: time 0.039/0.8765, allocations: 16.7 MB / 0.6327 GB, free: 0.582 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.makefile (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 & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)