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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001489/0.001489, allocations: 212.2 kB / 24.53 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.484/1.484, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1859/0.1859, allocations: 38.53 MB / 353.2 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003442/0.003442, allocations: 71.89 kB / 493.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4133/0.4167, allocations: 62.46 MB / 0.5428 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.01124/0.428, allocations: 7.79 MB / 0.5504 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005641/0.4336, allocations: 2.376 MB / 0.5527 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008335/0.4344, allocations: 36.41 kB / 0.5527 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002675/0.4371, allocations: 0.8903 MB / 0.5536 GB, free: 7.879 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001411/0.4385, allocations: 0.5083 MB / 0.5541 GB, free: 7.457 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001368/0.4399, allocations: 467.9 kB / 0.5545 GB, free: 7.113 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002009/0.4419, allocations: 1.27 MB / 0.5558 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001007/0.4429, allocations: 0.524 MB / 0.5563 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001658/0.4446, allocations: 0.5722 MB / 0.5569 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.446, allocations: 0.7032 MB / 0.5575 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.4462, allocations: 73.5 kB / 0.5576 GB, free: 5.297 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007469/0.4469, allocations: 244.8 kB / 0.5578 GB, free: 5.203 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006043/0.4475, allocations: 0.4927 MB / 0.5583 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000697/0.4482, allocations: 0.5247 MB / 0.5588 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001764/0.45, allocations: 1.245 MB / 0.5601 GB, free: 2.941 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.45, allocations: 0 / 0.5601 GB, free: 2.941 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.45, allocations: 0 / 0.5601 GB, free: 2.941 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.45, allocations: 0 / 0.5601 GB, free: 2.941 MB / 398.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.002648/0.4527, allocations: 1.269 MB / 0.5613 GB, free: 1.629 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.4527, allocations: 15.98 kB / 0.5613 GB, free: 1.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.611e-05/0.4528, allocations: 22.19 kB / 0.5613 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001665/0.4529, allocations: 143.7 kB / 0.5615 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001099/0.454, allocations: 200 kB / 0.5617 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/0.4555, allocations: 0.6595 MB / 0.5623 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.564e-05/0.4555, allocations: 70.11 kB / 0.5624 GB, free: 500 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.4557, allocations: 80 kB / 0.5624 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/0.4577, allocations: 1.179 MB / 0.5636 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.095e-05/0.4577, allocations: 11.94 kB / 0.5636 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.862e-05/0.4578, allocations: 32 kB / 0.5636 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.597e-05/0.4579, allocations: 57.97 kB / 0.5637 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001736/0.4596, allocations: 0.9287 MB / 0.5646 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006941/0.4665, allocations: 4.686 MB / 0.5692 GB, free: 9.23 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001269/0.4678, allocations: 0.6268 MB / 0.5698 GB, free: 8.586 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005419/0.4684, allocations: 343.9 kB / 0.5701 GB, free: 8.238 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.021e-05/0.4684, allocations: 8.438 kB / 0.5701 GB, free: 8.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006937/0.4691, allocations: 440.8 kB / 0.5705 GB, free: 7.773 MB / 414.1 MB Notification: Performance of pre-optimization done (n=65): time 3.386e-06/0.4691, allocations: 4 kB / 0.5705 GB, free: 7.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=66): time 0.005952/0.4751, allocations: 2.315 MB / 0.5728 GB, free: 5.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.4752, allocations: 166.9 kB / 0.573 GB, free: 5.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008102/0.476, allocations: 0.6056 MB / 0.5736 GB, free: 4.617 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/0.476, allocations: 41.64 kB / 0.5736 GB, free: 4.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004344/0.4765, allocations: 495.9 kB / 0.5741 GB, free: 4.078 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.4767, allocations: 234.1 kB / 0.5743 GB, free: 3.848 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002365/0.477, allocations: 154.6 kB / 0.5744 GB, free: 3.691 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.4772, allocations: 386.7 kB / 0.5748 GB, free: 3.305 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004758/0.4776, allocations: 285.8 kB / 0.5751 GB, free: 3.023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007325/0.4784, allocations: 0.5564 MB / 0.5756 GB, free: 2.344 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.48, allocations: 0.9584 MB / 0.5766 GB, free: 1.246 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.779e-06/0.48, allocations: 4 kB / 0.5766 GB, free: 1.242 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003529/0.4835, allocations: 1.214 MB / 0.5778 GB, free: 8 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.302e-05/0.4836, allocations: 33.7 kB / 0.5778 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/0.4836, allocations: 8 kB / 0.5778 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/0.4852, allocations: 349.7 kB / 0.5781 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008027/0.486, allocations: 143.7 kB / 0.5783 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009876/0.4959, allocations: 5.192 MB / 0.5833 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.497, allocations: 31.98 kB / 0.5834 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/0.4972, allocations: 36 kB / 0.5834 GB, free: 9.965 MB / 430.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.0009849/0.4981, allocations: 359.2 kB / 0.5837 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/0.4984, allocations: 83.56 kB / 0.5838 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00343/0.5019, allocations: 1.027 MB / 0.5848 GB, free: 8.461 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/0.5019, allocations: 11.94 kB / 0.5848 GB, free: 8.449 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.929e-05/0.5019, allocations: 4 kB / 0.5848 GB, free: 8.445 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.5019, allocations: 3.984 kB / 0.5848 GB, free: 8.441 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006052/0.508, allocations: 2.02 MB / 0.5868 GB, free: 6.348 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/0.508, allocations: 0 / 0.5868 GB, free: 6.348 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005099/0.5085, allocations: 79.83 kB / 0.5869 GB, free: 6.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001439/0.5099, allocations: 317.5 kB / 0.5872 GB, free: 5.953 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.497e-05/0.51, allocations: 15.98 kB / 0.5872 GB, free: 5.938 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/0.5203, allocations: 5.093 MB / 0.5922 GB, free: 0.582 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.35e-05/0.5203, allocations: 4 kB / 0.5922 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003758/0.5241, allocations: 1.119 MB / 0.5933 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000364/0.5244, allocations: 71.48 kB / 0.5933 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002231/0.5247, allocations: 15.98 kB / 0.5934 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000691/0.5253, allocations: 16 kB / 0.5934 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002411/0.5256, allocations: 64.33 kB / 0.5934 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-05/0.5257, allocations: 20 kB / 0.5935 GB, free: 15.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001087/0.5268, allocations: 419 kB / 0.5939 GB, free: 14.83 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5268, allocations: 0 / 0.5939 GB, free: 14.83 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001908/0.5287, allocations: 272 kB / 0.5941 GB, free: 14.56 MB / 446.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.003698/0.5324, allocations: 1.674 MB / 0.5958 GB, free: 12.83 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003364/0.5357, allocations: 1.134 MB / 0.5969 GB, free: 11.67 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.5357, allocations: 0 / 0.5969 GB, free: 11.67 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002106/0.5378, allocations: 0.7439 MB / 0.5976 GB, free: 10.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001664/0.5395, allocations: 177.8 kB / 0.5978 GB, free: 10.71 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01836/0.5579, allocations: 7.311 MB / 0.6049 GB, free: 3.016 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/0.559, allocations: 1.103 MB / 0.606 GB, free: 1.883 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00075/0.5598, allocations: 178.4 kB / 0.6061 GB, free: 1.703 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005825/0.5603, allocations: 327.3 kB / 0.6065 GB, free: 1.383 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/0.5604, allocations: 0 / 0.6065 GB, free: 1.383 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05696/0.6173, allocations: 19.16 MB / 0.6252 GB, free: 14.41 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.74/16.36, allocations: 11.36 kB / 0.6252 GB, free: 14.41 MB / 478.1 MB " [Timeout remaining time 643] (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 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 19.34335480397567] Failed to read output from testmodel.py, exit status != 0: 16.546050240984187 16.568680633 16.115138505 Calling exit ...