Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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.001459/0.001459, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001502/0.001502, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.512/1.512, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.188/0.188, allocations: 38.51 MB / 349.4 MB, free: 2.688 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/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_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_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.001985/0.001985, allocations: 71.83 kB / 487.8 MB, free: 22.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1254, allocations: 62.41 MB / 0.5373 GB, free: 7.676 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01042/0.1358, allocations: 7.656 MB / 0.5448 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004817/0.1406, allocations: 2.375 MB / 0.5471 GB, free: 13.61 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006139/0.1412, allocations: 39.69 kB / 0.5472 GB, free: 13.57 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002422/0.1436, allocations: 0.8634 MB / 0.548 GB, free: 12.7 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001564/0.1452, allocations: 0.5092 MB / 0.5485 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001437/0.1466, allocations: 462.9 kB / 0.549 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.1484, allocations: 1.309 MB / 0.5502 GB, free: 10.42 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008507/0.1493, allocations: 0.5411 MB / 0.5508 GB, free: 9.867 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001074/0.1504, allocations: 0.5953 MB / 0.5514 GB, free: 9.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001187/0.1515, allocations: 0.7319 MB / 0.5521 GB, free: 8.535 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.1517, allocations: 80 kB / 0.5521 GB, free: 8.457 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000696/0.1524, allocations: 279.6 kB / 0.5524 GB, free: 8.184 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005969/0.153, allocations: 0.5259 MB / 0.5529 GB, free: 7.656 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006094/0.1536, allocations: 0.5404 MB / 0.5535 GB, free: 7.113 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001622/0.1552, allocations: 1.335 MB / 0.5548 GB, free: 5.773 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1552, allocations: 0 / 0.5548 GB, free: 5.773 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1552, allocations: 0 / 0.5548 GB, free: 5.773 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.712e-05/0.1552, allocations: 0 / 0.5548 GB, free: 5.773 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.002608/0.1578, allocations: 1.372 MB / 0.5561 GB, free: 4.336 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.1579, allocations: 8.031 kB / 0.5561 GB, free: 4.328 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.124e-05/0.1579, allocations: 26.19 kB / 0.5561 GB, free: 4.305 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001696/0.1581, allocations: 139.7 kB / 0.5563 GB, free: 4.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/0.1593, allocations: 212.1 kB / 0.5565 GB, free: 3.953 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.1606, allocations: 0.7433 MB / 0.5572 GB, free: 3.168 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.081e-05/0.1607, allocations: 70.11 kB / 0.5573 GB, free: 3.102 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000359/0.161, allocations: 107.9 kB / 0.5574 GB, free: 2.996 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00294/0.164, allocations: 1.216 MB / 0.5585 GB, free: 1.707 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.337e-05/0.164, allocations: 3.938 kB / 0.5586 GB, free: 1.703 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/0.1642, allocations: 40 kB / 0.5586 GB, free: 1.664 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003973/0.1646, allocations: 65.95 kB / 0.5587 GB, free: 1.602 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00278/0.1673, allocations: 1.003 MB / 0.5596 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01003/0.1774, allocations: 4.764 MB / 0.5643 GB, free: 11.63 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/0.1791, allocations: 0.6203 MB / 0.5649 GB, free: 10.99 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001003/0.1801, allocations: 419.8 kB / 0.5653 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.555e-05/0.1802, allocations: 16.5 kB / 0.5653 GB, free: 10.56 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001239/0.1815, allocations: 0.5003 MB / 0.5658 GB, free: 10.03 MB / 430.1 MB Notification: Performance of pre-optimization done (n=69): time 4.869e-06/0.1815, allocations: 0 / 0.5658 GB, free: 10.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=73): time 0.008455/0.1899, allocations: 2.807 MB / 0.5685 GB, free: 7.148 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001653/0.1901, allocations: 162.8 kB / 0.5687 GB, free: 6.953 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/0.1914, allocations: 0.6017 MB / 0.5693 GB, free: 6.344 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.76e-05/0.1915, allocations: 41.7 kB / 0.5693 GB, free: 6.297 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006423/0.1921, allocations: 492.1 kB / 0.5698 GB, free: 5.809 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004654/0.1926, allocations: 261.8 kB / 0.57 GB, free: 5.551 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000497/0.1931, allocations: 182.5 kB / 0.5702 GB, free: 5.363 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000307/0.1934, allocations: 394.8 kB / 0.5706 GB, free: 4.969 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.1944, allocations: 369.8 kB / 0.5709 GB, free: 4.609 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.1957, allocations: 0.631 MB / 0.5716 GB, free: 3.867 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.01144/0.2072, allocations: 3.455 MB / 0.5749 GB, free: 236 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.2072, allocations: 0 / 0.5749 GB, free: 236 kB / 430.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003772/0.2109, allocations: 1.336 MB / 0.5762 GB, free: 14.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-05/0.211, allocations: 37.7 kB / 0.5763 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.993e-05/0.211, allocations: 12 kB / 0.5763 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009996/0.212, allocations: 258.6 kB / 0.5765 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/0.2138, allocations: 259.6 kB / 0.5768 GB, free: 14.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006511/0.2203, allocations: 6.078 MB / 0.5827 GB, free: 7.805 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007386/0.2211, allocations: 39.94 kB / 0.5828 GB, free: 7.766 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-05/0.2212, allocations: 43.98 kB / 0.5828 GB, free: 7.723 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.0006339/0.2218, allocations: 379.1 kB / 0.5832 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.2219, allocations: 79.47 kB / 0.5832 GB, free: 7.258 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002213/0.2241, allocations: 1.133 MB / 0.5843 GB, free: 6.098 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.54e-05/0.2242, allocations: 8 kB / 0.5843 GB, free: 6.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.467e-06/0.2242, allocations: 8 kB / 0.5844 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.2242, allocations: 3.984 kB / 0.5844 GB, free: 6.078 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003798/0.228, allocations: 2.239 MB / 0.5865 GB, free: 3.746 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.228, allocations: 4 kB / 0.5865 GB, free: 3.742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009975/0.229, allocations: 191.9 kB / 0.5867 GB, free: 3.555 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007409/0.2297, allocations: 254.3 kB / 0.587 GB, free: 3.297 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.2e-05/0.2298, allocations: 23.98 kB / 0.587 GB, free: 3.273 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2567/0.4865, allocations: 6.005 MB / 0.5929 GB, free: 47.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.4865, allocations: 3.75 kB / 0.5929 GB, free: 47.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/0.4897, allocations: 1.647 MB / 0.5945 GB, free: 47.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001882/0.4899, allocations: 150.1 kB / 0.5946 GB, free: 47.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.49, allocations: 27.66 kB / 0.5946 GB, free: 47.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004092/0.4904, allocations: 27.23 kB / 0.5947 GB, free: 47.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.4906, allocations: 61.61 kB / 0.5947 GB, free: 47.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.657e-05/0.4907, allocations: 20.98 kB / 0.5947 GB, free: 47.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005143/0.4912, allocations: 413.5 kB / 0.5951 GB, free: 47.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4912, allocations: 0.625 kB / 0.5951 GB, free: 47.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001121/0.4923, allocations: 276.4 kB / 0.5954 GB, free: 47.47 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.00297/0.4953, allocations: 2.219 MB / 0.5976 GB, free: 46.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002355/0.4976, allocations: 1.336 MB / 0.5989 GB, free: 45.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.4976, allocations: 1.094 kB / 0.5989 GB, free: 45.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.499, allocations: 0.891 MB / 0.5997 GB, free: 45.03 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000995/0.5, allocations: 186.8 kB / 0.5999 GB, free: 44.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/0.5125, allocations: 8.203 MB / 0.6079 GB, free: 40.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007316/0.5132, allocations: 1.109 MB / 0.609 GB, free: 39.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0007137/0.5139, allocations: 214.4 kB / 0.6092 GB, free: 39.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004138/0.5144, allocations: 335.5 kB / 0.6095 GB, free: 39.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.5144, allocations: 4 kB / 0.6095 GB, free: 39.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05094/0.5653, allocations: 19.1 MB / 0.6282 GB, free: 27.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.5, allocations: 14.89 kB / 0.6282 GB, free: 27.33 MB / 446.1 MB " [Timeout remaining time 647] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.54959989496274] Failed to read output from testmodel.py, exit status != 0: 12.650849285011645 12.669131984 12.510488271 Calling exit ...