Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 179.2 kB / 8.133 MB, free: 2.133 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.0008909/0.000891, allocations: 90.48 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1754/0.1754, allocations: 37.96 MB / 347.7 MB, free: 7.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2188/0.3942, allocations: 62.45 MB / 410.1 MB, free: 46.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.5187, allocations: 56.31 MB / 466.4 MB, free: 6.395 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3911/0.9099, allocations: 103 MB / 0.5561 GB, free: 7.496 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.9103, allocations: 79.97 kB / 0.5562 GB, free: 7.418 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.07543/0.9857, allocations: 26.42 MB / 0.582 GB, free: 12.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.9858, allocations: 12 kB / 0.582 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001298/0.9871, allocations: 178.6 kB / 0.5821 GB, free: 12.44 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003929/0.991, allocations: 1.346 MB / 0.5835 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.312e-05/0.9911, allocations: 32 kB / 0.5835 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.9913, allocations: 48 kB / 0.5835 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001507/0.9928, allocations: 0.7613 MB / 0.5843 GB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.9946, allocations: 1.043 MB / 0.5853 GB, free: 9.086 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.208e-05/0.9946, allocations: 7.938 kB / 0.5853 GB, free: 9.078 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.667e-05/0.9947, allocations: 3.906 kB / 0.5853 GB, free: 9.074 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-05/0.9948, allocations: 53.98 kB / 0.5854 GB, free: 9.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006064/1.001, allocations: 4.572 MB / 0.5898 GB, free: 4.262 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/1.002, allocations: 0.6265 MB / 0.5904 GB, free: 3.617 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005767/1.003, allocations: 392.2 kB / 0.5908 GB, free: 3.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.634e-05/1.003, allocations: 8.656 kB / 0.5908 GB, free: 3.223 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006481/1.003, allocations: 431.8 kB / 0.5912 GB, free: 2.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=69): time 3.115e-06/1.003, allocations: 4 kB / 0.5912 GB, free: 2.766 MB / 426.7 MB Notification: Performance of matching and sorting (n=70): time 0.003283/1.007, allocations: 1.588 MB / 0.5928 GB, free: 1.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/1.007, allocations: 170.8 kB / 0.5929 GB, free: 0.957 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005884/1.007, allocations: 475.2 kB / 0.5934 GB, free: 500 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.971e-05/1.007, allocations: 29.7 kB / 0.5934 GB, free: 464 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003346/1.008, allocations: 386.8 kB / 0.5938 GB, free: 68 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003085/1.008, allocations: 232.6 kB / 0.594 GB, free: 15.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/1.008, allocations: 0.75 kB / 0.594 GB, free: 15.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002237/1.008, allocations: 386.8 kB / 0.5944 GB, free: 15.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004406/1.009, allocations: 285.9 kB / 0.5947 GB, free: 15.17 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006785/1.009, allocations: 0.5315 MB / 0.5952 GB, free: 14.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006567/1.01, allocations: 394.9 kB / 0.5955 GB, free: 14.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/1.01, allocations: 0 / 0.5955 GB, free: 14.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002013/1.012, allocations: 1.129 MB / 0.5967 GB, free: 12.99 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/1.012, allocations: 4.625 kB / 0.5967 GB, free: 12.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/1.012, allocations: 15.88 kB / 0.5967 GB, free: 12.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/1.013, allocations: 337.9 kB / 0.597 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/1.014, allocations: 135.8 kB / 0.5971 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005649/1.02, allocations: 4.501 MB / 0.6015 GB, free: 7.777 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005442/1.02, allocations: 23.98 kB / 0.6015 GB, free: 7.754 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-05/1.02, allocations: 39.98 kB / 0.6016 GB, free: 7.715 MB / 442.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.0002399/1.02, allocations: 174.4 kB / 0.6017 GB, free: 7.535 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/1.021, allocations: 71.16 kB / 0.6018 GB, free: 7.465 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002006/1.023, allocations: 0.9886 MB / 0.6028 GB, free: 6.461 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/1.023, allocations: 16 kB / 0.6028 GB, free: 6.445 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/1.023, allocations: 4 kB / 0.6028 GB, free: 6.441 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/1.023, allocations: 3.984 kB / 0.6028 GB, free: 6.438 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003484/1.026, allocations: 1.983 MB / 0.6047 GB, free: 4.379 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/1.026, allocations: 4 kB / 0.6047 GB, free: 4.375 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003404/1.026, allocations: 79.89 kB / 0.6048 GB, free: 4.297 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009289/1.027, allocations: 310.1 kB / 0.6051 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.797e-05/1.027, allocations: 11.98 kB / 0.6051 GB, free: 3.977 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005092/1.033, allocations: 4.453 MB / 0.6095 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/1.033, allocations: 4 kB / 0.6095 GB, free: 15.28 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001955/1.035, allocations: 1.203 MB / 0.6107 GB, free: 13.96 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002051/1.037, allocations: 1.606 MB / 0.6122 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/1.037, allocations: 140.2 kB / 0.6124 GB, free: 12.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/1.037, allocations: 8 kB / 0.6124 GB, free: 12.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/1.037, allocations: 19.98 kB / 0.6124 GB, free: 12.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/1.037, allocations: 36.36 kB / 0.6124 GB, free: 12.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/1.038, allocations: 20 kB / 0.6124 GB, free: 11.99 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0005/1.038, allocations: 363.1 kB / 0.6128 GB, free: 11.64 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001598/1.04, allocations: 240 kB / 0.613 GB, free: 11.41 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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.0003275/1.04, allocations: 172.9 kB / 0.6132 GB, free: 11.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001805/1.042, allocations: 1.054 MB / 0.6142 GB, free: 10.15 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/1.042, allocations: 0.625 kB / 0.6142 GB, free: 10.15 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/1.043, allocations: 0.6884 MB / 0.6149 GB, free: 9.441 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007872/1.044, allocations: 151.7 kB / 0.615 GB, free: 9.289 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/1.047, allocations: 1.416 MB / 0.6164 GB, free: 7.809 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009414/1.048, allocations: 1.162 MB / 0.6175 GB, free: 6.621 MB / 458.7 MB Notification: Performance of SimCode: time 8.11e-07/1.048, allocations: 0 / 0.6175 GB, free: 6.621 MB / 458.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)