Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009622/0.0009622, allocations: 109.3 kB / 16.51 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 186.5 kB / 17.42 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1704/0.1704, allocations: 37.99 MB / 308.6 MB, free: 6.234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 67.03 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2482, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008475/0.2567, allocations: 9.229 MB / 439.2 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005136/0.2619, allocations: 2.895 MB / 442.1 MB, free: 7.582 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001148/0.2631, allocations: 63.62 kB / 442.2 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002122/0.2653, allocations: 0.8046 MB / 443 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001307/0.2666, allocations: 477.9 kB / 443.4 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.2677, allocations: 407.3 kB / 443.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001356/0.269, allocations: 1.937 MB / 445.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007154/0.2698, allocations: 0.6578 MB / 446.4 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005479/0.2703, allocations: 481.8 kB / 446.9 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006902/0.271, allocations: 0.7047 MB / 447.6 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.987e-05/0.2711, allocations: 52 kB / 447.6 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004336/0.2716, allocations: 203.7 kB / 447.8 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003283/0.2719, allocations: 474.8 kB / 448.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003738/0.2723, allocations: 0.4973 MB / 448.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008707/0.2732, allocations: 1.207 MB / 450 MB, free: 15.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2732, allocations: 0 / 450 MB, free: 15.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.2732, allocations: 3.984 kB / 450 MB, free: 15.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.2732, allocations: 4 kB / 450 MB, free: 15.63 MB / 334.1 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.002359/0.2756, allocations: 1.298 MB / 451.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.2756, allocations: 16.03 kB / 451.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001682/0.2758, allocations: 147.7 kB / 451.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000904/0.2767, allocations: 167.5 kB / 451.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.2779, allocations: 0.6881 MB / 452.3 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.62e-05/0.2779, allocations: 62.38 kB / 452.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.2781, allocations: 83.94 kB / 452.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/0.2798, allocations: 1.171 MB / 453.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.388e-05/0.2799, allocations: 11.92 kB / 453.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.744e-05/0.28, allocations: 35.98 kB / 453.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.102e-05/0.28, allocations: 57.98 kB / 453.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.2815, allocations: 0.9288 MB / 454.7 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005825/0.2873, allocations: 4.792 MB / 459.5 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.2886, allocations: 0.6723 MB / 460.1 MB, free: 5.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005567/0.2891, allocations: 371.8 kB / 460.5 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.67e-05/0.2892, allocations: 20.53 kB / 460.5 MB, free: 4.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006297/0.2898, allocations: 435.7 kB / 460.9 MB, free: 4.242 MB / 334.1 MB Notification: Performance of pre-optimization done (n=65): time 2.755e-06/0.2898, allocations: 7.938 kB / 461 MB, free: 4.234 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.005145/0.295, allocations: 2.436 MB / 463.4 MB, free: 1.734 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.2951, allocations: 170.8 kB / 463.6 MB, free: 1.527 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007313/0.2959, allocations: 0.5978 MB / 464.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.973e-05/0.2959, allocations: 45.69 kB / 464.2 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003933/0.2963, allocations: 486.6 kB / 464.7 MB, free: 396 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001986/0.2965, allocations: 224.8 kB / 464.9 MB, free: 168 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.2967, allocations: 150.6 kB / 465 MB, free: 12 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.297, allocations: 386.8 kB / 465.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000438/0.2974, allocations: 281.8 kB / 465.7 MB, free: 15.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006471/0.2981, allocations: 0.5601 MB / 466.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001192/0.2993, allocations: 0.9611 MB / 467.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.2993, allocations: 4 kB / 467.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002151/0.3014, allocations: 1.22 MB / 468.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.791e-05/0.3015, allocations: 37.7 kB / 468.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.3015, allocations: 8 kB / 468.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.3026, allocations: 341.4 kB / 468.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004827/0.3031, allocations: 151.7 kB / 469 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005826/0.3089, allocations: 4.942 MB / 473.9 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007457/0.3097, allocations: 32.03 kB / 473.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.085e-05/0.3098, allocations: 43.94 kB / 474 MB, free: 6.473 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006461/0.3105, allocations: 360.1 kB / 474.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.3106, allocations: 79 kB / 474.4 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001939/0.3125, allocations: 1.04 MB / 475.4 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.3125, allocations: 8 kB / 475.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.3126, allocations: 7.938 kB / 475.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.996e-06/0.3126, allocations: 3.984 kB / 475.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003219/0.3158, allocations: 2.051 MB / 477.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.3158, allocations: 7.984 kB / 477.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.3161, allocations: 67.91 kB / 477.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000884/0.317, allocations: 322.1 kB / 477.9 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.45e-05/0.3171, allocations: 15.98 kB / 477.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005537/0.3226, allocations: 4.876 MB / 482.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3227, allocations: 0 / 482.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.3245, allocations: 1.123 MB / 483.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.3248, allocations: 148.2 kB / 484.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.249e-05/0.3249, allocations: 12 kB / 484.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/0.3252, allocations: 19.98 kB / 484.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.3254, allocations: 56.42 kB / 484.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.3254, allocations: 20 kB / 484.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005265/0.3259, allocations: 423 kB / 484.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3259, allocations: 7.875 kB / 484.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00103/0.327, allocations: 268 kB / 484.9 MB, free: 11.1 MB / 366.1 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.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002165/0.3292, allocations: 1.683 MB / 486.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.3312, allocations: 1.137 MB / 487.7 MB, free: 8.188 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3312, allocations: 0 / 487.7 MB, free: 8.188 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/0.3323, allocations: 0.7712 MB / 488.4 MB, free: 7.379 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.3333, allocations: 173.6 kB / 488.6 MB, free: 7.215 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.3446, allocations: 7.854 MB / 496.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007955/0.3454, allocations: 1.107 MB / 497.6 MB, free: 13.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000586/0.346, allocations: 182.3 kB / 497.8 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003868/0.3464, allocations: 323.3 kB / 498.1 MB, free: 13.35 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3464, allocations: 0 / 498.1 MB, free: 13.35 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0389/0.3853, allocations: 17.31 MB / 0.5033 GB, free: 12.04 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.3856, allocations: 229.9 kB / 0.5035 GB, free: 11.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.167/2.553, allocations: 0 / 0.5035 GB, free: 11.78 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)