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.001704/0.001704, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001471/0.001471, allocations: 214.6 kB / 23.74 MB, free: 4.656 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.521/1.521, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.1939/0.1939, allocations: 38.53 MB / 352.5 MB, free: 12.5 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.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",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.002106/0.002106, allocations: 63.91 kB / 492.5 MB, free: 4.848 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3131, allocations: 62.45 MB / 0.542 GB, free: 416 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01002/0.3231, allocations: 7.775 MB / 0.5496 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004733/0.3279, allocations: 2.387 MB / 0.5519 GB, free: 8.375 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005453/0.3284, allocations: 37.75 kB / 0.5519 GB, free: 8.355 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.3308, allocations: 0.8809 MB / 0.5528 GB, free: 7.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001448/0.3323, allocations: 0.513 MB / 0.5533 GB, free: 7.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001476/0.3337, allocations: 464.2 kB / 0.5537 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00217/0.3359, allocations: 1.319 MB / 0.555 GB, free: 6.172 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009651/0.3369, allocations: 0.5299 MB / 0.5555 GB, free: 5.816 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001283/0.3382, allocations: 0.5914 MB / 0.5561 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001237/0.3394, allocations: 0.7341 MB / 0.5568 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001513/0.3395, allocations: 85.19 kB / 0.5569 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007473/0.3403, allocations: 298.1 kB / 0.5572 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006154/0.3409, allocations: 0.5143 MB / 0.5577 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007101/0.3416, allocations: 0.5481 MB / 0.5582 GB, free: 3.773 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001814/0.3434, allocations: 1.339 MB / 0.5596 GB, free: 2.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.479e-05/0.3434, allocations: 4 kB / 0.5596 GB, free: 2.426 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3434, allocations: 0 / 0.5596 GB, free: 2.426 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.282e-05/0.3435, allocations: 0 / 0.5596 GB, free: 2.426 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.002765/0.3462, allocations: 1.293 MB / 0.5608 GB, free: 1.086 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.3463, allocations: 11.98 kB / 0.5608 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001898/0.3465, allocations: 139.7 kB / 0.561 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001273/0.3477, allocations: 208.1 kB / 0.5612 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001649/0.3494, allocations: 0.6751 MB / 0.5618 GB, free: 24 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.4e-05/0.3495, allocations: 66.44 kB / 0.5619 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000274/0.3498, allocations: 103.9 kB / 0.562 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.3518, allocations: 1.212 MB / 0.5632 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.492e-05/0.3518, allocations: 7.938 kB / 0.5632 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.859e-05/0.3519, allocations: 43.98 kB / 0.5632 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002826/0.3522, allocations: 69.95 kB / 0.5633 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0019/0.3541, allocations: 1.007 MB / 0.5643 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007416/0.3615, allocations: 4.662 MB / 0.5688 GB, free: 8.586 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.3628, allocations: 0.6315 MB / 0.5694 GB, free: 7.934 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006891/0.3635, allocations: 412.2 kB / 0.5698 GB, free: 7.523 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.536e-05/0.3635, allocations: 12.64 kB / 0.5698 GB, free: 7.512 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000836/0.3644, allocations: 0.5133 MB / 0.5703 GB, free: 6.973 MB / 414.1 MB Notification: Performance of pre-optimization done (n=69): time 2.244e-06/0.3644, allocations: 0 / 0.5703 GB, free: 6.973 MB / 414.1 MB Notification: Performance of matching and sorting (n=73): time 0.00522/0.3696, allocations: 2.74 MB / 0.573 GB, free: 4.176 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/0.3697, allocations: 166.9 kB / 0.5732 GB, free: 3.973 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007887/0.3705, allocations: 0.6017 MB / 0.5738 GB, free: 3.367 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.06e-05/0.3706, allocations: 41.7 kB / 0.5738 GB, free: 3.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004682/0.3711, allocations: 488.2 kB / 0.5743 GB, free: 2.836 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002971/0.3714, allocations: 265.8 kB / 0.5745 GB, free: 2.574 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002734/0.3716, allocations: 178.5 kB / 0.5747 GB, free: 2.395 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000212/0.3719, allocations: 386.8 kB / 0.5751 GB, free: 2.008 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006519/0.3725, allocations: 373.8 kB / 0.5754 GB, free: 1.641 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008977/0.3734, allocations: 0.631 MB / 0.576 GB, free: 0.8945 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.007513/0.3809, allocations: 3.221 MB / 0.5792 GB, free: 13.55 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.3809, allocations: 4 kB / 0.5792 GB, free: 13.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002495/0.3834, allocations: 1.336 MB / 0.5805 GB, free: 12.19 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.795e-05/0.3835, allocations: 33.7 kB / 0.5805 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.675e-05/0.3835, allocations: 8 kB / 0.5805 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006648/0.3842, allocations: 250.9 kB / 0.5808 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001159/0.3853, allocations: 263.5 kB / 0.581 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006555/0.3919, allocations: 5.771 MB / 0.5867 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007422/0.3926, allocations: 40.05 kB / 0.5867 GB, free: 5.48 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.911e-05/0.3927, allocations: 43.98 kB / 0.5867 GB, free: 5.438 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.0007013/0.3934, allocations: 375.1 kB / 0.5871 GB, free: 5.055 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/0.3936, allocations: 87.48 kB / 0.5872 GB, free: 4.969 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002383/0.3959, allocations: 1.141 MB / 0.5883 GB, free: 3.797 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.575e-05/0.396, allocations: 12 kB / 0.5883 GB, free: 3.785 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.396, allocations: 8 kB / 0.5883 GB, free: 3.777 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.396, allocations: 7.969 kB / 0.5883 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004265/0.4003, allocations: 2.209 MB / 0.5905 GB, free: 1.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.4003, allocations: 3.938 kB / 0.5905 GB, free: 1.477 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009526/0.4012, allocations: 195.9 kB / 0.5907 GB, free: 1.285 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007724/0.402, allocations: 246.3 kB / 0.5909 GB, free: 1.035 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.963e-05/0.4021, allocations: 31.92 kB / 0.5909 GB, free: 1.004 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006299/0.4084, allocations: 5.697 MB / 0.5965 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.4084, allocations: 3.984 kB / 0.5965 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002984/0.4114, allocations: 1.64 MB / 0.5981 GB, free: 9.273 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.4116, allocations: 75.66 kB / 0.5982 GB, free: 9.199 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.4117, allocations: 20 kB / 0.5982 GB, free: 9.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004163/0.4121, allocations: 31.97 kB / 0.5982 GB, free: 9.148 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.4123, allocations: 64.48 kB / 0.5983 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.395e-05/0.4124, allocations: 20 kB / 0.5983 GB, free: 9.066 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005544/0.4129, allocations: 415 kB / 0.5987 GB, free: 8.664 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4129, allocations: 0 / 0.5987 GB, free: 8.664 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001171/0.4141, allocations: 279.9 kB / 0.599 GB, free: 8.391 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.003295/0.4174, allocations: 2.218 MB / 0.6011 GB, free: 6.117 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002583/0.42, allocations: 1.354 MB / 0.6025 GB, free: 4.711 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.42, allocations: 0 / 0.6025 GB, free: 4.711 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.4215, allocations: 0.8738 MB / 0.6033 GB, free: 3.785 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.4225, allocations: 178.8 kB / 0.6035 GB, free: 3.613 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/0.4361, allocations: 8.221 MB / 0.6115 GB, free: 10.98 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009938/0.4371, allocations: 1.107 MB / 0.6126 GB, free: 9.848 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007237/0.4378, allocations: 214.5 kB / 0.6128 GB, free: 9.633 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005179/0.4383, allocations: 339.3 kB / 0.6131 GB, free: 9.301 MB / 462.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4383, allocations: 4 kB / 0.6131 GB, free: 9.297 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06697/0.5053, allocations: 19.76 MB / 0.6324 GB, free: 5.703 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.45, allocations: 11.98 kB / 0.6324 GB, free: 5.691 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial_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_SimulationFixedInitial.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.3979993009998] Failed to read output from testmodel.py, exit status != 0: 13.578304661001312 13.601458277 13.254640169 Calling exit ...