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.001348/0.001348, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001102/0.001102, allocations: 167.9 kB / 25.61 MB, free: 8.582 MB / 18.57 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 0.9923/0.9923, allocations: 177.1 MB / 206.1 MB, free: 4.48 MB / 186.7 MB " [Timeout remaining time 179] 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.1225/0.1225, allocations: 29.43 MB / 292 MB, free: 2.613 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.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: translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meter.i.[0-9,]+.|meter.p.[0-9,]+.|meter.v.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meter.i.[0-9,]+.|meter.p.[0-9,]+.|meter.v.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 370.9 MB, free: 32.31 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.462e-05/1.631e-05, allocations: 3.156 kB / 370.9 MB, free: 32.31 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01116/0.01118, allocations: 6.297 MB / 377.2 MB, free: 25.99 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005728/0.0169, allocations: 2.282 MB / 379.5 MB, free: 23.7 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002647/0.01717, allocations: 35.69 kB / 379.5 MB, free: 23.67 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003431/0.0206, allocations: 0.6141 MB / 380.1 MB, free: 23.05 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005151/0.02112, allocations: 0.5048 MB / 380.6 MB, free: 22.54 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005899/0.02171, allocations: 482.5 kB / 381.1 MB, free: 22.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005975/0.0223, allocations: 1.322 MB / 382.4 MB, free: 20.75 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003838/0.02269, allocations: 0.5253 MB / 382.9 MB, free: 20.21 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005618/0.02325, allocations: 0.8571 MB / 383.8 MB, free: 19.35 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004104/0.02366, allocations: 0.596 MB / 384.4 MB, free: 18.75 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.579e-05/0.02372, allocations: 76 kB / 384.5 MB, free: 18.68 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002898/0.02401, allocations: 283.5 kB / 384.7 MB, free: 18.4 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002556/0.02427, allocations: 0.5377 MB / 385.3 MB, free: 17.86 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002216/0.02449, allocations: 383.1 kB / 385.6 MB, free: 17.48 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005828/0.02507, allocations: 0.9966 MB / 386.6 MB, free: 16.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.02508, allocations: 4 kB / 386.6 MB, free: 16.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.02508, allocations: 0 / 386.6 MB, free: 16.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.614e-06/0.02509, allocations: 0 / 386.6 MB, free: 16.48 MB / 314.7 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.001101/0.02619, allocations: 1.361 MB / 388 MB, free: 15.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.02623, allocations: 8.031 kB / 388 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006505/0.02688, allocations: 276 kB / 388.3 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005124/0.02739, allocations: 0.6088 MB / 388.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.02742, allocations: 62.38 kB / 388.9 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.02754, allocations: 108.8 kB / 389.1 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005999/0.02814, allocations: 0.8384 MB / 389.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.02817, allocations: 11.88 kB / 389.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.911e-05/0.02821, allocations: 35.98 kB / 389.9 MB, free: 13 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/0.02834, allocations: 61.97 kB / 390 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004012/0.02874, allocations: 403 kB / 390.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.03109, allocations: 4.761 MB / 395.2 MB, free: 7.586 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003734/0.03147, allocations: 386.2 kB / 395.5 MB, free: 7.176 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.03163, allocations: 227.5 kB / 395.8 MB, free: 6.941 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.03166, allocations: 12.66 kB / 395.8 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002625/0.03193, allocations: 377.6 kB / 396.1 MB, free: 6.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 1.803e-06/0.03193, allocations: 4 kB / 396.1 MB, free: 6.516 MB / 314.7 MB Notification: Performance of matching and sorting (n=73): time 0.00161/0.03354, allocations: 1.459 MB / 397.6 MB, free: 4.984 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.03357, allocations: 178.8 kB / 397.8 MB, free: 4.773 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002494/0.03382, allocations: 0.5811 MB / 398.4 MB, free: 4.176 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.03385, allocations: 41.7 kB / 398.4 MB, free: 4.129 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.03401, allocations: 0.534 MB / 398.9 MB, free: 3.586 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.03411, allocations: 269.8 kB / 399.2 MB, free: 3.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.03426, allocations: 184.1 kB / 399.4 MB, free: 3.129 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.141e-05/0.03434, allocations: 0.578 MB / 400 MB, free: 2.539 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.03447, allocations: 139.6 kB / 400.1 MB, free: 2.398 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.03468, allocations: 0.5161 MB / 400.6 MB, free: 1.719 MB / 314.7 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.001035/0.03572, allocations: 1.335 MB / 401.9 MB, free: 228 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.03572, allocations: 4 kB / 401.9 MB, free: 224 kB / 314.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.0008843/0.03661, allocations: 0.8386 MB / 402.8 MB, free: 15.35 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/0.03664, allocations: 37.69 kB / 402.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.03665, allocations: 8 kB / 402.8 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003204/0.03697, allocations: 167.2 kB / 403 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.03749, allocations: 207.7 kB / 403.2 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003002/0.04049, allocations: 6.216 MB / 409.4 MB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002363/0.04073, allocations: 32 kB / 409.4 MB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.12e-05/0.04077, allocations: 31.98 kB / 409.5 MB, free: 8.301 MB / 330.7 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.0003674/0.04113, allocations: 265.9 kB / 409.7 MB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.04124, allocations: 107.4 kB / 409.8 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008097/0.04205, allocations: 0.7096 MB / 410.5 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.04206, allocations: 8 kB / 410.6 MB, free: 7.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.04206, allocations: 4 kB / 410.6 MB, free: 7.156 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.04207, allocations: 3.984 kB / 410.6 MB, free: 7.152 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/0.04368, allocations: 1.476 MB / 412 MB, free: 5.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.04368, allocations: 0 / 412 MB, free: 5.598 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004081/0.04409, allocations: 136 kB / 412.2 MB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003529/0.04444, allocations: 179.2 kB / 412.3 MB, free: 5.277 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.649e-05/0.04448, allocations: 23.98 kB / 412.4 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003014/0.04749, allocations: 6.204 MB / 418.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.04749, allocations: 0 / 418.6 MB, free: 14.71 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001022/0.04851, allocations: 1.06 MB / 419.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.949e-05/0.04857, allocations: 63.56 kB / 419.7 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.71e-05/0.04864, allocations: 31.92 kB / 419.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.04882, allocations: 12 kB / 419.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.551e-05/0.0489, allocations: 60.48 kB / 419.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.04893, allocations: 23.92 kB / 419.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001918/0.04912, allocations: 354.9 kB / 420.2 MB, free: 13.04 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04912, allocations: 4 kB / 420.2 MB, free: 13.04 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006038/0.04973, allocations: 267.9 kB / 420.4 MB, free: 12.78 MB / 346.7 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.00015/0.04988, allocations: 131.2 kB / 420.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009319/0.05081, allocations: 1.188 MB / 421.7 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.05081, allocations: 0 / 421.7 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009251/0.05174, allocations: 0.9062 MB / 422.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005076/0.05224, allocations: 185.8 kB / 422.8 MB, free: 10.22 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.05432, allocations: 1.837 MB / 424.7 MB, free: 8.312 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001768/0.0545, allocations: 268 kB / 424.9 MB, free: 8.031 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002053/0.05471, allocations: 98.42 kB / 425 MB, free: 7.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.05499, allocations: 234.1 kB / 425.3 MB, free: 7.699 MB / 346.7 MB Notification: Performance of SimCode: time 9.12e-07/0.05499, allocations: 4 kB / 425.3 MB, free: 7.695 MB / 346.7 MB Notification: Performance of Templates: time 0.01395/0.06893, allocations: 12.35 MB / 437.6 MB, free: 11.55 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile [Timeout 660] (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 & ./PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5803893231786788]