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.001412/0.001412, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.00154/0.00154, allocations: 216.3 kB / 23.75 MB, free: 4.668 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.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 7.992 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.1895/0.1895, allocations: 38.53 MB / 352.5 MB, free: 12.61 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",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.002084/0.002084, allocations: 67.89 kB / 492.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.326, allocations: 62.46 MB / 0.542 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009646/0.3357, allocations: 7.778 MB / 0.5496 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004605/0.3403, allocations: 2.386 MB / 0.5519 GB, free: 8.395 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005352/0.3408, allocations: 37.94 kB / 0.552 GB, free: 8.375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002346/0.3432, allocations: 0.8893 MB / 0.5528 GB, free: 7.688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001369/0.3445, allocations: 0.5092 MB / 0.5533 GB, free: 7.266 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.3459, allocations: 463.4 kB / 0.5538 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001733/0.3476, allocations: 1.271 MB / 0.555 GB, free: 6.219 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000841/0.3485, allocations: 0.5237 MB / 0.5555 GB, free: 5.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00101/0.3495, allocations: 0.5729 MB / 0.5561 GB, free: 5.535 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001089/0.3506, allocations: 0.702 MB / 0.5568 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.3507, allocations: 74.56 kB / 0.5568 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005368/0.3512, allocations: 240.6 kB / 0.5571 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005181/0.3517, allocations: 0.5002 MB / 0.5576 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005638/0.3523, allocations: 0.5208 MB / 0.5581 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001485/0.3538, allocations: 1.249 MB / 0.5593 GB, free: 2.742 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.3538, allocations: 4 kB / 0.5593 GB, free: 2.738 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3538, allocations: 0 / 0.5593 GB, free: 2.738 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.721e-05/0.3538, allocations: 0 / 0.5593 GB, free: 2.738 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.002431/0.3562, allocations: 1.267 MB / 0.5605 GB, free: 1.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3563, allocations: 19.97 kB / 0.5605 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001749/0.3565, allocations: 135.7 kB / 0.5607 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001188/0.3576, allocations: 208 kB / 0.5609 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.3591, allocations: 0.6595 MB / 0.5615 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.691e-05/0.3591, allocations: 58.38 kB / 0.5616 GB, free: 324 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.3593, allocations: 91.94 kB / 0.5617 GB, free: 232 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.3612, allocations: 1.171 MB / 0.5628 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.731e-05/0.3612, allocations: 11.89 kB / 0.5628 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.392e-05/0.3613, allocations: 43.89 kB / 0.5629 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.683e-05/0.3614, allocations: 53.98 kB / 0.5629 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.3629, allocations: 0.9288 MB / 0.5638 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006272/0.3692, allocations: 4.686 MB / 0.5684 GB, free: 9.047 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001244/0.3704, allocations: 0.6209 MB / 0.569 GB, free: 8.406 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005429/0.371, allocations: 343.8 kB / 0.5693 GB, free: 8.059 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.856e-05/0.371, allocations: 12.48 kB / 0.5693 GB, free: 8.047 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006704/0.3717, allocations: 440.8 kB / 0.5698 GB, free: 7.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=65): time 2.094e-06/0.3717, allocations: 0 / 0.5698 GB, free: 7.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=66): time 0.005545/0.3772, allocations: 2.322 MB / 0.572 GB, free: 5.242 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.3774, allocations: 162.9 kB / 0.5722 GB, free: 5.047 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008515/0.3782, allocations: 0.6017 MB / 0.5728 GB, free: 4.441 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.732e-05/0.3783, allocations: 37.7 kB / 0.5728 GB, free: 4.398 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000442/0.3787, allocations: 499.9 kB / 0.5733 GB, free: 3.902 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002275/0.3789, allocations: 230.1 kB / 0.5735 GB, free: 3.676 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/0.3792, allocations: 154.6 kB / 0.5737 GB, free: 3.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002294/0.3794, allocations: 390.8 kB / 0.574 GB, free: 3.129 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004859/0.3799, allocations: 285.8 kB / 0.5743 GB, free: 2.848 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007025/0.3806, allocations: 0.5603 MB / 0.5748 GB, free: 2.164 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.3819, allocations: 0.9506 MB / 0.5758 GB, free: 1.074 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.382, allocations: 0 / 0.5758 GB, free: 1.074 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002286/0.3842, allocations: 1.218 MB / 0.577 GB, free: 15.83 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.501e-05/0.3843, allocations: 33.7 kB / 0.577 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.3843, allocations: 8 kB / 0.577 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/0.3854, allocations: 350 kB / 0.5773 GB, free: 15.44 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005649/0.386, allocations: 143.7 kB / 0.5775 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007033/0.393, allocations: 5.189 MB / 0.5825 GB, free: 9.863 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007793/0.3938, allocations: 32.03 kB / 0.5826 GB, free: 9.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.3939, allocations: 40 kB / 0.5826 GB, free: 9.793 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.0006256/0.3945, allocations: 355.2 kB / 0.5829 GB, free: 9.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.3947, allocations: 83.42 kB / 0.583 GB, free: 9.348 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.3967, allocations: 1.031 MB / 0.584 GB, free: 8.289 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.238e-06/0.3967, allocations: 4 kB / 0.584 GB, free: 8.285 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/0.3967, allocations: 8 kB / 0.584 GB, free: 8.277 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3967, allocations: 3.984 kB / 0.584 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003596/0.4003, allocations: 2.027 MB / 0.586 GB, free: 6.172 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.4003, allocations: 0 / 0.586 GB, free: 6.172 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000333/0.4007, allocations: 71.91 kB / 0.5861 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008846/0.4015, allocations: 317.8 kB / 0.5864 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.875e-05/0.4016, allocations: 19.88 kB / 0.5864 GB, free: 5.766 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006433/0.408, allocations: 5.109 MB / 0.5914 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.408, allocations: 4 kB / 0.5914 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002045/0.4101, allocations: 1.115 MB / 0.5925 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.4103, allocations: 67.48 kB / 0.5926 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.735e-05/0.4104, allocations: 19.98 kB / 0.5926 GB, free: 15.15 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003227/0.4107, allocations: 20 kB / 0.5926 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.4108, allocations: 64.27 kB / 0.5927 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/0.4109, allocations: 16 kB / 0.5927 GB, free: 15.05 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005444/0.4114, allocations: 423 kB / 0.5931 GB, free: 14.64 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4114, allocations: 0 / 0.5931 GB, free: 14.64 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009499/0.4124, allocations: 272 kB / 0.5933 GB, free: 14.38 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.002298/0.4147, allocations: 1.675 MB / 0.595 GB, free: 12.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001975/0.4166, allocations: 1.114 MB / 0.5961 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4166, allocations: 0 / 0.5961 GB, free: 11.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.4178, allocations: 0.7481 MB / 0.5968 GB, free: 10.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000924/0.4187, allocations: 177.7 kB / 0.597 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/0.43, allocations: 7.319 MB / 0.6041 GB, free: 2.836 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000826/0.4308, allocations: 1.103 MB / 0.6052 GB, free: 1.703 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004858/0.4313, allocations: 174.3 kB / 0.6054 GB, free: 1.527 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004053/0.4317, allocations: 323.3 kB / 0.6057 GB, free: 1.211 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4317, allocations: 4 kB / 0.6057 GB, free: 1.207 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05866/0.4904, allocations: 19.13 MB / 0.6243 GB, free: 14.25 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.81/16.3, allocations: 8.234 kB / 0.6244 GB, free: 14.25 MB / 478.1 MB " [Timeout remaining time 644] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.16874605599878] Failed to read output from testmodel.py, exit status != 0: 16.42056990400306 16.436749196 16.079734357 Calling exit ...