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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001238/0.001238, allocations: 102 kB / 16.62 MB, free: 6.805 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.001219/0.001219, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.232/1.232, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1662/0.1662, allocations: 38.02 MB / 329.4 MB, free: 9.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 60.61 kB / 398.4 MB, free: 34.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08506/0.0863, allocations: 58.07 MB / 456.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.008994/0.09533, allocations: 9.225 MB / 465.7 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004008/0.09936, allocations: 2.82 MB / 468.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005126/0.09989, allocations: 63.62 kB / 468.6 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001914/0.1018, allocations: 0.8094 MB / 469.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008756/0.1027, allocations: 470 kB / 469.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009864/0.1037, allocations: 407.3 kB / 470.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001258/0.105, allocations: 1.282 MB / 471.5 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008812/0.1059, allocations: 0.7245 MB / 472.2 MB, free: 8.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007235/0.1066, allocations: 0.5485 MB / 472.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008028/0.1074, allocations: 0.7086 MB / 473.5 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.941e-05/0.1075, allocations: 76 kB / 473.6 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003673/0.1079, allocations: 215.7 kB / 473.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000404/0.1083, allocations: 498.8 kB / 474.3 MB, free: 6.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000447/0.1088, allocations: 0.5209 MB / 474.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.1098, allocations: 1.23 MB / 476 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1098, allocations: 4 kB / 476 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1098, allocations: 0 / 476 MB, free: 4.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.071e-05/0.1098, allocations: 0 / 476 MB, free: 4.699 MB / 350.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.001982/0.1118, allocations: 1.302 MB / 477.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.1118, allocations: 15.89 kB / 477.3 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/0.112, allocations: 139.7 kB / 477.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008473/0.1128, allocations: 167.5 kB / 477.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.1139, allocations: 0.6843 MB / 478.3 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.975e-05/0.1139, allocations: 70.36 kB / 478.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.114, allocations: 87.83 kB / 478.5 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.1156, allocations: 1.171 MB / 479.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.1157, allocations: 7.938 kB / 479.6 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.23e-05/0.1158, allocations: 36 kB / 479.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.284e-05/0.1158, allocations: 57.97 kB / 479.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.1172, allocations: 0.9249 MB / 480.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005023/0.1223, allocations: 4.807 MB / 485.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001154/0.1234, allocations: 0.664 MB / 486.1 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005082/0.1239, allocations: 379.8 kB / 486.5 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.995e-05/0.124, allocations: 12.56 kB / 486.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000597/0.1246, allocations: 443.7 kB / 486.9 MB, free: 9.301 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.494e-06/0.1246, allocations: 0 / 486.9 MB, free: 9.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.004938/0.1296, allocations: 2.436 MB / 489.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.728e-05/0.1297, allocations: 174.8 kB / 489.6 MB, free: 6.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005952/0.1303, allocations: 0.5939 MB / 490.1 MB, free: 5.984 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.585e-05/0.1303, allocations: 37.7 kB / 490.2 MB, free: 5.941 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000296/0.1306, allocations: 490.5 kB / 490.7 MB, free: 5.453 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/0.1308, allocations: 228.9 kB / 490.9 MB, free: 5.227 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002067/0.131, allocations: 150.5 kB / 491 MB, free: 5.074 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1312, allocations: 386.8 kB / 491.4 MB, free: 4.688 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004246/0.1316, allocations: 285.8 kB / 491.7 MB, free: 4.406 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005745/0.1322, allocations: 0.5563 MB / 492.2 MB, free: 3.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.1333, allocations: 0.9572 MB / 493.2 MB, free: 2.637 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1333, allocations: 3.938 kB / 493.2 MB, free: 2.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00191/0.1352, allocations: 1.227 MB / 494.4 MB, free: 1.387 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.219e-05/0.1352, allocations: 33.7 kB / 494.5 MB, free: 1.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.266e-05/0.1353, allocations: 12 kB / 494.5 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009455/0.1362, allocations: 329.8 kB / 494.8 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/0.1367, allocations: 155.7 kB / 495 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005494/0.1422, allocations: 5.394 MB / 0.4886 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004136/0.1426, allocations: 39.97 kB / 0.4887 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.903e-05/0.1427, allocations: 40 kB / 0.4887 GB, free: 11.08 MB / 382.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.0003786/0.1431, allocations: 346.1 kB / 0.489 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.1432, allocations: 79 kB / 0.4891 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.1449, allocations: 1.044 MB / 0.4901 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.1449, allocations: 12 kB / 0.4901 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1449, allocations: 4 kB / 0.4901 GB, free: 9.562 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.145, allocations: 3.984 kB / 0.4901 GB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002928/0.1479, allocations: 2.055 MB / 0.4921 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1479, allocations: 0 / 0.4921 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002847/0.1482, allocations: 79.89 kB / 0.4922 GB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008105/0.149, allocations: 313.6 kB / 0.4925 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.01e-05/0.1491, allocations: 15.94 kB / 0.4925 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005291/0.1544, allocations: 5.319 MB / 0.4977 GB, free: 1.387 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1544, allocations: 8 kB / 0.4977 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.1559, allocations: 1.115 MB / 0.4988 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.1561, allocations: 144.2 kB / 0.499 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.998e-05/0.1562, allocations: 24 kB / 0.499 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/0.1565, allocations: 19.98 kB / 0.499 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.1566, allocations: 56.38 kB / 0.4991 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.857e-05/0.1567, allocations: 16 kB / 0.4991 GB, free: 15.94 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004144/0.1571, allocations: 423 kB / 0.4995 GB, free: 15.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1571, allocations: 0 / 0.4995 GB, free: 15.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007977/0.1579, allocations: 268 kB / 0.4997 GB, free: 15.27 MB / 398.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.001858/0.1598, allocations: 1.689 MB / 0.5014 GB, free: 13.53 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.1616, allocations: 1.257 MB / 0.5026 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1616, allocations: 4 kB / 0.5026 GB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009398/0.1625, allocations: 0.7682 MB / 0.5034 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008279/0.1634, allocations: 182 kB / 0.5035 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009391/0.1728, allocations: 7.861 MB / 0.5112 GB, free: 3.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006456/0.1734, allocations: 1.111 MB / 0.5123 GB, free: 1.871 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004705/0.1739, allocations: 178.3 kB / 0.5125 GB, free: 1.691 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003514/0.1743, allocations: 323.3 kB / 0.5128 GB, free: 1.375 MB / 398.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1743, allocations: 3.938 kB / 0.5128 GB, free: 1.371 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1836/0.3579, allocations: 17.86 MB / 0.5302 GB, free: 67.74 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/0.358, allocations: 234.2 kB / 0.5304 GB, free: 67.48 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.037/2.395, allocations: 0 / 0.5304 GB, free: 67.48 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)