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.001669/0.001669, allocations: 121 kB / 18.5 MB, free: 4.562 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.001966/0.001966, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.57/1.57, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.1839/0.1839, allocations: 38.51 MB / 349.4 MB, free: 2.59 MB / 270.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.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.002261/0.002261, allocations: 63.91 kB / 487.8 MB, free: 22.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1382, allocations: 62.42 MB / 0.5373 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01007/0.1483, allocations: 7.657 MB / 0.5448 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005033/0.1533, allocations: 2.379 MB / 0.5471 GB, free: 13.47 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006871/0.154, allocations: 35.69 kB / 0.5472 GB, free: 13.43 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002692/0.1567, allocations: 0.8635 MB / 0.548 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00162/0.1583, allocations: 0.5091 MB / 0.5485 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.16, allocations: 451 kB / 0.5489 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002387/0.1624, allocations: 1.324 MB / 0.5502 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001077/0.1635, allocations: 0.5409 MB / 0.5508 GB, free: 9.73 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001346/0.1648, allocations: 0.5875 MB / 0.5513 GB, free: 9.141 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00157/0.1664, allocations: 0.7359 MB / 0.5521 GB, free: 8.402 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003011/0.1667, allocations: 84 kB / 0.5521 GB, free: 8.32 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000988/0.1677, allocations: 287.6 kB / 0.5524 GB, free: 8.039 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008653/0.1685, allocations: 0.5142 MB / 0.5529 GB, free: 7.523 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001282/0.1698, allocations: 0.5403 MB / 0.5534 GB, free: 6.98 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002396/0.1722, allocations: 1.335 MB / 0.5547 GB, free: 5.641 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1722, allocations: 0 / 0.5547 GB, free: 5.641 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.1722, allocations: 0 / 0.5547 GB, free: 5.641 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.453e-05/0.1723, allocations: 4 kB / 0.5548 GB, free: 5.637 MB / 414.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.004075/0.1764, allocations: 1.368 MB / 0.5561 GB, free: 4.203 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.1764, allocations: 16.03 kB / 0.5561 GB, free: 4.188 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.051e-05/0.1765, allocations: 22.19 kB / 0.5561 GB, free: 4.168 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002106/0.1767, allocations: 139.7 kB / 0.5563 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001384/0.1781, allocations: 208.1 kB / 0.5565 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/0.1798, allocations: 0.7433 MB / 0.5572 GB, free: 3.035 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.054e-05/0.1799, allocations: 70.12 kB / 0.5573 GB, free: 2.969 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002748/0.1801, allocations: 103.9 kB / 0.5573 GB, free: 2.867 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002167/0.1823, allocations: 1.219 MB / 0.5585 GB, free: 1.574 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.116e-05/0.1823, allocations: 7.938 kB / 0.5585 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.726e-05/0.1824, allocations: 32 kB / 0.5586 GB, free: 1.535 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002935/0.1827, allocations: 61.97 kB / 0.5586 GB, free: 1.477 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.1846, allocations: 1.011 MB / 0.5596 GB, free: 472 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007082/0.1917, allocations: 4.764 MB / 0.5643 GB, free: 11.5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00123/0.1929, allocations: 0.6281 MB / 0.5649 GB, free: 10.85 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006842/0.1936, allocations: 411.8 kB / 0.5653 GB, free: 10.44 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.053e-05/0.1936, allocations: 8.562 kB / 0.5653 GB, free: 10.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008545/0.1945, allocations: 0.5119 MB / 0.5658 GB, free: 9.895 MB / 430.1 MB Notification: Performance of pre-optimization done (n=69): time 2.886e-06/0.1945, allocations: 4 kB / 0.5658 GB, free: 9.891 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.005445/0.2, allocations: 2.799 MB / 0.5685 GB, free: 7.016 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.2001, allocations: 174.8 kB / 0.5687 GB, free: 6.809 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000835/0.2009, allocations: 0.5938 MB / 0.5693 GB, free: 6.207 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.61e-05/0.201, allocations: 41.7 kB / 0.5693 GB, free: 6.16 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005751/0.2016, allocations: 488.2 kB / 0.5698 GB, free: 5.676 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003065/0.2019, allocations: 269.7 kB / 0.57 GB, free: 5.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003124/0.2022, allocations: 182.5 kB / 0.5702 GB, free: 5.223 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002495/0.2024, allocations: 390.7 kB / 0.5706 GB, free: 4.832 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006548/0.2031, allocations: 373.8 kB / 0.5709 GB, free: 4.469 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009022/0.204, allocations: 0.6349 MB / 0.5716 GB, free: 3.723 MB / 430.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.007757/0.2118, allocations: 3.439 MB / 0.5749 GB, free: 104 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.2118, allocations: 4 kB / 0.5749 GB, free: 100 kB / 430.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002544/0.2143, allocations: 1.34 MB / 0.5762 GB, free: 14.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.738e-05/0.2144, allocations: 37.69 kB / 0.5763 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/0.2144, allocations: 12.06 kB / 0.5763 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007134/0.2151, allocations: 242.3 kB / 0.5765 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.2163, allocations: 263.6 kB / 0.5768 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006644/0.223, allocations: 6.089 MB / 0.5827 GB, free: 7.668 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00103/0.224, allocations: 39.94 kB / 0.5827 GB, free: 7.629 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.231e-05/0.2241, allocations: 32 kB / 0.5828 GB, free: 7.598 MB / 446.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.0008101/0.2249, allocations: 383.1 kB / 0.5831 GB, free: 7.207 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.2251, allocations: 79.47 kB / 0.5832 GB, free: 7.129 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002243/0.2273, allocations: 1.137 MB / 0.5843 GB, free: 5.965 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/0.2273, allocations: 12 kB / 0.5843 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.2273, allocations: 8 kB / 0.5843 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.2273, allocations: 3.984 kB / 0.5844 GB, free: 5.941 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004146/0.2315, allocations: 2.246 MB / 0.5865 GB, free: 3.602 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.2315, allocations: 0 / 0.5865 GB, free: 3.602 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009701/0.2325, allocations: 183.8 kB / 0.5867 GB, free: 3.422 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007697/0.2332, allocations: 246.4 kB / 0.587 GB, free: 3.172 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-05/0.2333, allocations: 27.97 kB / 0.587 GB, free: 3.145 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2832/0.5165, allocations: 6.006 MB / 0.5928 GB, free: 47.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.5165, allocations: 2.188 kB / 0.5929 GB, free: 47.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002884/0.5194, allocations: 1.653 MB / 0.5945 GB, free: 47.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.5197, allocations: 149.8 kB / 0.5946 GB, free: 47.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001225/0.5198, allocations: 30.67 kB / 0.5946 GB, free: 47.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004395/0.5202, allocations: 23.11 kB / 0.5947 GB, free: 47.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.5204, allocations: 53.98 kB / 0.5947 GB, free: 47.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.697e-05/0.5205, allocations: 27.91 kB / 0.5947 GB, free: 47.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005846/0.5211, allocations: 419.4 kB / 0.5951 GB, free: 47.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5211, allocations: 0 / 0.5951 GB, free: 47.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001308/0.5224, allocations: 273.8 kB / 0.5954 GB, free: 47.4 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.003116/0.5255, allocations: 2.213 MB / 0.5976 GB, free: 46.24 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00253/0.528, allocations: 1.342 MB / 0.5989 GB, free: 45.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.528, allocations: 0.75 kB / 0.5989 GB, free: 45.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.5295, allocations: 0.8851 MB / 0.5997 GB, free: 45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.5306, allocations: 187.8 kB / 0.5999 GB, free: 44.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01334/0.5439, allocations: 8.21 MB / 0.6079 GB, free: 40.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007851/0.5447, allocations: 1.115 MB / 0.609 GB, free: 39.87 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007288/0.5454, allocations: 209.5 kB / 0.6092 GB, free: 39.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004241/0.5458, allocations: 335.5 kB / 0.6095 GB, free: 39.59 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.5458, allocations: 0 / 0.6095 GB, free: 39.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05051/0.5963, allocations: 19.09 MB / 0.6282 GB, free: 27.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.34, allocations: 8.062 kB / 0.6282 GB, free: 27.19 MB / 446.1 MB " [Timeout remaining time 648] (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 os._exit(0), Time elapsed: 15.480614882020745] Failed to read output from testmodel.py, exit status != 0: 12.496604145970196 12.516218436 12.340154489 Calling exit ...