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.001413/0.001413, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001713/0.001713, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.313/1.313, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1663/0.1663, allocations: 38.03 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 60.17 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08053/0.08174, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.007504/0.08928, allocations: 7.574 MB / 464.5 MB, free: 360 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.09243, allocations: 2.329 MB / 466.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.09268, allocations: 27.81 kB / 466.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001823/0.09452, allocations: 0.8587 MB / 467.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007422/0.09527, allocations: 0.5014 MB / 468.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000821/0.0961, allocations: 451 kB / 468.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.09712, allocations: 1.274 MB / 470 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007062/0.09783, allocations: 0.6738 MB / 470.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00053/0.09837, allocations: 0.5524 MB / 471.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007313/0.09912, allocations: 0.6579 MB / 471.8 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.09924, allocations: 79.94 kB / 471.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003622/0.0996, allocations: 211.7 kB / 472.1 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004141/0.1, allocations: 486.8 kB / 472.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004791/0.1005, allocations: 0.5325 MB / 473.1 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.1015, allocations: 1.226 MB / 474.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1015, allocations: 0 / 474.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1016, allocations: 0 / 474.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.1016, allocations: 4 kB / 474.4 MB, free: 6.48 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.002051/0.1036, allocations: 1.306 MB / 475.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1037, allocations: 15.89 kB / 475.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001284/0.1038, allocations: 135.7 kB / 475.8 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008259/0.1046, allocations: 167.5 kB / 476 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009524/0.1056, allocations: 0.6881 MB / 476.7 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.904e-05/0.1057, allocations: 62.38 kB / 476.7 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1058, allocations: 87.94 kB / 476.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.1072, allocations: 1.171 MB / 478 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.1072, allocations: 3.938 kB / 478 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.742e-05/0.1073, allocations: 43.98 kB / 478 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.225e-05/0.1074, allocations: 61.97 kB / 478.1 MB, free: 2.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.1087, allocations: 0.921 MB / 479 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004557/0.1133, allocations: 4.803 MB / 483.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.1143, allocations: 0.6684 MB / 484.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004839/0.1148, allocations: 379.8 kB / 484.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.21e-05/0.1148, allocations: 12.5 kB / 484.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005252/0.1154, allocations: 443.7 kB / 485.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 1.993e-06/0.1154, allocations: 0 / 485.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.004742/0.1201, allocations: 2.436 MB / 487.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.077e-05/0.1202, allocations: 166.8 kB / 487.9 MB, free: 8.383 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006038/0.1208, allocations: 0.6056 MB / 488.5 MB, free: 7.766 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.1209, allocations: 37.7 kB / 488.5 MB, free: 7.723 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002903/0.1212, allocations: 486.6 kB / 489 MB, free: 7.238 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.1214, allocations: 228.8 kB / 489.2 MB, free: 7.012 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.1215, allocations: 146.6 kB / 489.4 MB, free: 6.863 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1217, allocations: 390.7 kB / 489.8 MB, free: 6.473 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004048/0.1221, allocations: 285.8 kB / 490 MB, free: 6.191 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005532/0.1227, allocations: 0.5563 MB / 490.6 MB, free: 5.512 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.1237, allocations: 0.9533 MB / 491.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1237, allocations: 0 / 491.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001851/0.1256, allocations: 1.227 MB / 492.8 MB, free: 3.176 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.541e-05/0.1256, allocations: 33.7 kB / 492.8 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.1256, allocations: 15.94 kB / 492.8 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009604/0.1266, allocations: 333.6 kB / 493.2 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004472/0.1271, allocations: 147.7 kB / 493.3 MB, free: 2.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005494/0.1326, allocations: 5.392 MB / 498.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004324/0.133, allocations: 39.88 kB / 498.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.481e-05/0.1331, allocations: 44 kB / 498.8 MB, free: 12.87 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.0003975/0.1335, allocations: 347.2 kB / 499.1 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.1336, allocations: 75.09 kB / 499.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/0.1353, allocations: 1.044 MB / 0.4885 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1353, allocations: 8 kB / 0.4885 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1353, allocations: 4 kB / 0.4885 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.1353, allocations: 7.984 kB / 0.4885 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.1381, allocations: 2.055 MB / 0.4905 GB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1382, allocations: 12.16 kB / 0.4905 GB, free: 9.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003033/0.1385, allocations: 71.89 kB / 0.4906 GB, free: 9.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008035/0.1393, allocations: 321.4 kB / 0.4909 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.696e-05/0.1393, allocations: 12 kB / 0.4909 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005099/0.1444, allocations: 5.323 MB / 0.4961 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.1445, allocations: 8 kB / 0.4961 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.1461, allocations: 1.115 MB / 0.4972 GB, free: 1.992 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.1462, allocations: 144.2 kB / 0.4974 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.134e-05/0.1463, allocations: 19.94 kB / 0.4974 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.1466, allocations: 23.98 kB / 0.4974 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.1467, allocations: 56.38 kB / 0.4975 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.1468, allocations: 20 kB / 0.4975 GB, free: 1.711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003971/0.1472, allocations: 419 kB / 0.4979 GB, free: 1.309 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1472, allocations: 0 / 0.4979 GB, free: 1.309 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000784/0.148, allocations: 272 kB / 0.4981 GB, free: 1.043 MB / 382.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.001829/0.1498, allocations: 1.676 MB / 0.4998 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.1516, allocations: 1.273 MB / 0.501 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1516, allocations: 0 / 0.501 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009453/0.1526, allocations: 0.7605 MB / 0.5018 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008105/0.1534, allocations: 184.8 kB / 0.5019 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009021/0.1624, allocations: 7.498 MB / 0.5093 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006337/0.1631, allocations: 1.111 MB / 0.5103 GB, free: 4.008 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004605/0.1636, allocations: 178.3 kB / 0.5105 GB, free: 3.828 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003344/0.1639, allocations: 323.3 kB / 0.5108 GB, free: 3.512 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.1639, allocations: 3.938 kB / 0.5108 GB, free: 3.508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2512/0.4151, allocations: 17.95 MB / 0.5284 GB, free: 68.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.68, allocations: 13.83 kB / 0.5284 GB, free: 68.51 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)