Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.001381/0.001381, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001628/0.001628, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.524/1.524, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.3291/0.3291, allocations: 38.52 MB / 353.2 MB, free: 12.55 MB / 286.1 MB " [Timeout remaining time 179] 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.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",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.002038/0.002038, allocations: 59.91 kB / 493.3 MB, free: 4.906 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.4075, allocations: 62.46 MB / 0.5427 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01098/0.4185, allocations: 7.781 MB / 0.5503 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005661/0.4242, allocations: 2.391 MB / 0.5527 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006977/0.4248, allocations: 37.38 kB / 0.5527 GB, free: 8.383 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002558/0.4274, allocations: 0.8817 MB / 0.5536 GB, free: 7.703 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001554/0.429, allocations: 0.512 MB / 0.5541 GB, free: 7.277 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.4304, allocations: 460.4 kB / 0.5545 GB, free: 6.941 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002131/0.4325, allocations: 1.32 MB / 0.5558 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001155/0.4337, allocations: 0.5333 MB / 0.5563 GB, free: 5.844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.435, allocations: 0.5875 MB / 0.5569 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/0.4363, allocations: 0.7332 MB / 0.5576 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.4365, allocations: 81.91 kB / 0.5577 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008456/0.4373, allocations: 294.8 kB / 0.558 GB, free: 4.906 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005663/0.4379, allocations: 0.5143 MB / 0.5585 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006656/0.4385, allocations: 0.552 MB / 0.559 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001989/0.4405, allocations: 1.342 MB / 0.5603 GB, free: 2.488 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.4405, allocations: 0 / 0.5603 GB, free: 2.488 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4405, allocations: 0 / 0.5603 GB, free: 2.488 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.207e-05/0.4406, allocations: 0 / 0.5603 GB, free: 2.488 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.002846/0.4434, allocations: 1.297 MB / 0.5616 GB, free: 1.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.4435, allocations: 11.98 kB / 0.5616 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.693e-05/0.4435, allocations: 26.19 kB / 0.5616 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001719/0.4437, allocations: 139.7 kB / 0.5618 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001263/0.4449, allocations: 204.1 kB / 0.562 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001366/0.4463, allocations: 0.6751 MB / 0.5626 GB, free: 60 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.945e-05/0.4464, allocations: 70.2 kB / 0.5627 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002375/0.4466, allocations: 103.8 kB / 0.5628 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.4486, allocations: 1.216 MB / 0.564 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.7e-05/0.4487, allocations: 11.88 kB / 0.564 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-05/0.4487, allocations: 32 kB / 0.564 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002846/0.449, allocations: 65.95 kB / 0.5641 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001698/0.4507, allocations: 1.007 MB / 0.5651 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006752/0.4575, allocations: 4.674 MB / 0.5696 GB, free: 8.617 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.4586, allocations: 0.6282 MB / 0.5702 GB, free: 7.969 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006379/0.4593, allocations: 412.1 kB / 0.5706 GB, free: 7.559 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.721e-05/0.4593, allocations: 8.656 kB / 0.5706 GB, free: 7.551 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008009/0.4601, allocations: 0.5056 MB / 0.5711 GB, free: 7.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=69): time 2.144e-06/0.4601, allocations: 0 / 0.5711 GB, free: 7.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=73): time 0.005088/0.4652, allocations: 2.744 MB / 0.5738 GB, free: 4.219 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001407/0.4654, allocations: 166.9 kB / 0.574 GB, free: 4.016 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008966/0.4663, allocations: 0.5977 MB / 0.5746 GB, free: 3.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.102e-05/0.4663, allocations: 41.7 kB / 0.5746 GB, free: 3.363 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004706/0.4668, allocations: 488.2 kB / 0.5751 GB, free: 2.879 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002594/0.4671, allocations: 269.8 kB / 0.5753 GB, free: 2.613 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002788/0.4673, allocations: 174.6 kB / 0.5755 GB, free: 2.438 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.4675, allocations: 390.8 kB / 0.5759 GB, free: 2.047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006106/0.4682, allocations: 377.8 kB / 0.5762 GB, free: 1.676 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008552/0.469, allocations: 0.6349 MB / 0.5768 GB, free: 0.9258 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00732/0.4763, allocations: 3.214 MB / 0.58 GB, free: 13.59 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.4763, allocations: 4 kB / 0.58 GB, free: 13.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002614/0.479, allocations: 1.336 MB / 0.5813 GB, free: 12.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.486e-05/0.479, allocations: 34.48 kB / 0.5813 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.912e-05/0.479, allocations: 8 kB / 0.5813 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006794/0.4797, allocations: 262.3 kB / 0.5816 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001171/0.4809, allocations: 259.6 kB / 0.5818 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006263/0.4871, allocations: 5.767 MB / 0.5875 GB, free: 5.555 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007402/0.4879, allocations: 39.98 kB / 0.5875 GB, free: 5.516 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.487e-05/0.488, allocations: 39.98 kB / 0.5875 GB, free: 5.477 MB / 430.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006959/0.4887, allocations: 387 kB / 0.5879 GB, free: 5.082 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.4888, allocations: 83.42 kB / 0.588 GB, free: 5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00211/0.4909, allocations: 1.137 MB / 0.5891 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.983e-05/0.4909, allocations: 8 kB / 0.5891 GB, free: 3.824 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.491, allocations: 4.125 kB / 0.5891 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.491, allocations: 11.98 kB / 0.5891 GB, free: 3.809 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003927/0.4949, allocations: 2.22 MB / 0.5913 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.4949, allocations: 0 / 0.5913 GB, free: 1.508 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009775/0.4959, allocations: 187.8 kB / 0.5915 GB, free: 1.324 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008077/0.4967, allocations: 246.7 kB / 0.5917 GB, free: 1.074 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.649e-05/0.4968, allocations: 27.98 kB / 0.5917 GB, free: 1.047 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00664/0.5034, allocations: 5.701 MB / 0.5973 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.5034, allocations: 3.984 kB / 0.5973 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00322/0.5066, allocations: 1.636 MB / 0.5989 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000287/0.5069, allocations: 75.53 kB / 0.599 GB, free: 9.242 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001723/0.5071, allocations: 24 kB / 0.599 GB, free: 9.219 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004935/0.5076, allocations: 27.97 kB / 0.599 GB, free: 9.191 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.5078, allocations: 64.55 kB / 0.5991 GB, free: 9.129 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.278e-05/0.5078, allocations: 23.98 kB / 0.5991 GB, free: 9.105 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0006617/0.5085, allocations: 419 kB / 0.5995 GB, free: 8.703 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5085, allocations: 0 / 0.5995 GB, free: 8.703 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001312/0.5098, allocations: 275.9 kB / 0.5998 GB, free: 8.434 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003458/0.5133, allocations: 2.211 MB / 0.6019 GB, free: 6.164 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002833/0.5161, allocations: 1.349 MB / 0.6032 GB, free: 4.762 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.16e-05/0.5161, allocations: 8 kB / 0.6032 GB, free: 4.754 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/0.5177, allocations: 0.8787 MB / 0.6041 GB, free: 3.824 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.519, allocations: 181.8 kB / 0.6043 GB, free: 3.645 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/0.5357, allocations: 8.223 MB / 0.6123 GB, free: 11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/0.5371, allocations: 1.115 MB / 0.6134 GB, free: 9.863 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007299/0.5378, allocations: 206.5 kB / 0.6136 GB, free: 9.656 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000674/0.5385, allocations: 339.3 kB / 0.6139 GB, free: 9.324 MB / 462.1 MB Notification: Performance of SimCode: time 1.843e-06/0.5385, allocations: 0 / 0.6139 GB, free: 9.324 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06119/0.5997, allocations: 19.8 MB / 0.6333 GB, free: 5.711 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.61, allocations: 11.86 kB / 0.6333 GB, free: 5.699 MB / 478.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.791875370021444] Failed to read output from testmodel.py, exit status != 0: 13.795736994012259 13.819220923 13.37395863 Calling exit ...