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.0008377/0.0008377, allocations: 87.12 kB / 16.65 MB, free: 6.535 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.00103/0.001031, allocations: 176.8 kB / 17.56 MB, free: 6.18 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.345/1.345, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1694/0.1694, allocations: 38.04 MB / 310.1 MB, free: 5.914 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.0005644/0.0005644, allocations: 12 kB / 377.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2458, allocations: 56.34 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.006549/0.2524, allocations: 8.755 MB / 442.4 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003647/0.2561, allocations: 2.852 MB / 445.2 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005493/0.2567, allocations: 59.56 kB / 445.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005302/0.2572, allocations: 210.6 kB / 445.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008331/0.2581, allocations: 485.9 kB / 445.9 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008347/0.2589, allocations: 411.3 kB / 446.3 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001169/0.2601, allocations: 1.937 MB / 448.3 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.2614, allocations: 1.111 MB / 449.4 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005638/0.262, allocations: 441.8 kB / 449.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007518/0.2628, allocations: 0.6462 MB / 450.5 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.431e-05/0.2629, allocations: 40 kB / 450.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003795/0.2632, allocations: 187.7 kB / 450.7 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003159/0.2636, allocations: 454.8 kB / 451.1 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003742/0.2639, allocations: 0.4952 MB / 451.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.265, allocations: 1.179 MB / 452.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.265, allocations: 0 / 452.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.265, allocations: 0 / 452.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.265, allocations: 0 / 452.8 MB, free: 15.31 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.002013/0.2671, allocations: 1.131 MB / 453.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.2671, allocations: 16.03 kB / 454 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001513/0.2673, allocations: 139.7 kB / 454.1 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008495/0.2681, allocations: 163.5 kB / 454.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.2692, allocations: 0.692 MB / 454.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.556e-05/0.2693, allocations: 58.38 kB / 455 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.2694, allocations: 91.92 kB / 455.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.271, allocations: 1.175 MB / 456.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.2711, allocations: 0 / 456.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/0.2711, allocations: 40 kB / 456.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.596e-05/0.2712, allocations: 57.98 kB / 456.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001496/0.2727, allocations: 0.9326 MB / 457.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005279/0.278, allocations: 4.799 MB / 462.1 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00116/0.2792, allocations: 0.68 MB / 462.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005327/0.2797, allocations: 375.8 kB / 463.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.338e-05/0.2798, allocations: 12.55 kB / 463.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006502/0.2804, allocations: 447.7 kB / 463.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=65): time 2.245e-06/0.2805, allocations: 0 / 463.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.005178/0.2856, allocations: 2.455 MB / 466 MB, free: 1.551 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.2858, allocations: 170.7 kB / 466.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007252/0.2865, allocations: 0.5977 MB / 466.8 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.985e-05/0.2866, allocations: 37.7 kB / 466.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003789/0.287, allocations: 490.6 kB / 467.3 MB, free: 212 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/0.2872, allocations: 221 kB / 467.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.913e-05/0.2873, allocations: 77.67 kB / 467.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.2875, allocations: 386.8 kB / 468 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004414/0.2879, allocations: 281.8 kB / 468.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006441/0.2886, allocations: 0.5563 MB / 468.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001116/0.2897, allocations: 0.9572 MB / 469.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.2897, allocations: 4 kB / 469.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001996/0.2917, allocations: 1.227 MB / 471 MB, free: 12.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.255e-05/0.2918, allocations: 37.69 kB / 471.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.2918, allocations: 8 kB / 471.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.2929, allocations: 341.4 kB / 471.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004786/0.2934, allocations: 143.7 kB / 471.5 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005567/0.299, allocations: 4.959 MB / 476.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004786/0.2995, allocations: 35.94 kB / 476.5 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.221e-05/0.2995, allocations: 39.94 kB / 476.6 MB, free: 6.359 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.0005013/0.3, allocations: 355.1 kB / 476.9 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.914e-05/0.3002, allocations: 71.16 kB / 477 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/0.302, allocations: 1.044 MB / 478 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.302, allocations: 4 kB / 478 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.302, allocations: 11.94 kB / 478 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.3021, allocations: 3.984 kB / 478 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003103/0.3052, allocations: 2.063 MB / 480.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3052, allocations: 0 / 480.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002824/0.3055, allocations: 75.89 kB / 480.2 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008385/0.3063, allocations: 322 kB / 480.5 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.015e-05/0.3064, allocations: 12 kB / 480.5 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005285/0.3117, allocations: 4.883 MB / 485.4 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.3117, allocations: 3.938 kB / 485.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001956/0.3136, allocations: 1.115 MB / 486.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002093/0.3139, allocations: 156 kB / 486.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.314, allocations: 12 kB / 486.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003614/0.3144, allocations: 19.98 kB / 486.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.3145, allocations: 60.38 kB / 486.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.619e-05/0.3146, allocations: 23.98 kB / 486.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005651/0.3152, allocations: 415 kB / 487.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3152, allocations: 0 / 487.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001059/0.3162, allocations: 268 kB / 487.4 MB, free: 10.99 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.00225/0.3185, allocations: 1.683 MB / 489.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.3205, allocations: 1.144 MB / 490.3 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/0.3206, allocations: 0 / 490.3 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.3217, allocations: 0.7601 MB / 491 MB, free: 7.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001114/0.3229, allocations: 171.4 kB / 491.2 MB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01178/0.3347, allocations: 7.895 MB / 499.1 MB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009168/0.3356, allocations: 1.107 MB / 0.4885 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005672/0.3362, allocations: 178.3 kB / 0.4886 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000435/0.3367, allocations: 323.3 kB / 0.489 GB, free: 13.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.322e-06/0.3367, allocations: 0 / 0.489 GB, free: 13.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03706/0.3737, allocations: 17.05 MB / 0.5056 GB, free: 12.18 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002721/0.3741, allocations: 237.2 kB / 0.5058 GB, free: 11.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.134/2.508, allocations: 3.938 kB / 0.5058 GB, free: 11.91 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)