Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.0009947/0.0009947, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001725/0.001725, allocations: 165 kB / 24.56 MB, free: 16 kB / 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.951/0.951, allocations: 177.1 MB / 205 MB, free: 5.305 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.2482/0.2482, allocations: 29.41 MB / 290.9 MB, free: 2.48 MB / 266.7 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: translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.powerAngle|sensor.p.[0-9,]+.|sensor1.p.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.powerAngle|sensor.p.[0-9,]+.|sensor1.p.[0-9,]+.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.824e-06/1.824e-06, allocations: 0 / 369.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.22e-05/2.403e-05, allocations: 2.312 kB / 369.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.006785/0.006809, allocations: 6.371 MB / 376 MB, free: 4.609 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003216/0.01002, allocations: 2.96 MB / 379 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002615/0.01029, allocations: 39.69 kB / 379 MB, free: 1.602 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007298/0.01102, allocations: 278.2 kB / 379.3 MB, free: 1.328 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009455/0.01196, allocations: 0.711 MB / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005329/0.01249, allocations: 390.9 kB / 380.4 MB, free: 236 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.01362, allocations: 1.367 MB / 381.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005465/0.01417, allocations: 0.5574 MB / 382.3 MB, free: 14.29 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005602/0.01473, allocations: 0.7403 MB / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005859/0.01531, allocations: 0.5961 MB / 383.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.554e-05/0.0154, allocations: 72 kB / 383.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000558/0.01596, allocations: 0.5067 MB / 384.2 MB, free: 12.37 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003176/0.01627, allocations: 490.8 kB / 384.7 MB, free: 11.89 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002719/0.01655, allocations: 355.2 kB / 385 MB, free: 11.54 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009686/0.01752, allocations: 1.106 MB / 386.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.01752, allocations: 0 / 386.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.01752, allocations: 3.938 kB / 386.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.01753, allocations: 0 / 386.2 MB, free: 10.43 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.001431/0.01896, allocations: 1.332 MB / 387.5 MB, free: 9.059 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.019, allocations: 15.97 kB / 387.5 MB, free: 9.043 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008006/0.0198, allocations: 296.1 kB / 387.8 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008771/0.02068, allocations: 0.6753 MB / 388.5 MB, free: 8.051 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.02071, allocations: 62.38 kB / 388.5 MB, free: 7.992 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.02087, allocations: 96.66 kB / 388.6 MB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008318/0.0217, allocations: 0.7607 MB / 389.4 MB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.02172, allocations: 7.891 kB / 389.4 MB, free: 7.066 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.064e-05/0.02177, allocations: 32 kB / 389.4 MB, free: 7.035 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.833e-05/0.02187, allocations: 69.97 kB / 389.5 MB, free: 6.969 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005893/0.02246, allocations: 403.5 kB / 389.9 MB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003098/0.02556, allocations: 3.837 MB / 393.7 MB, free: 2.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003213/0.02588, allocations: 204.3 kB / 393.9 MB, free: 2.328 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.02604, allocations: 131.3 kB / 394 MB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.823e-05/0.02608, allocations: 12 kB / 394.1 MB, free: 2.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.02611, allocations: 41.39 kB / 394.1 MB, free: 2.129 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 1.964e-06/0.02611, allocations: 4 kB / 394.1 MB, free: 2.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.002152/0.02827, allocations: 1.357 MB / 395.5 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.033e-05/0.02831, allocations: 85.73 kB / 395.5 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003722/0.02868, allocations: 0.5375 MB / 396.1 MB, free: 76 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.764e-05/0.02871, allocations: 33.7 kB / 396.1 MB, free: 36 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002607/0.02897, allocations: 0.5336 MB / 396.6 MB, free: 15.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/0.02908, allocations: 198.4 kB / 396.8 MB, free: 15.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.02923, allocations: 148.2 kB / 397 MB, free: 15.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.02939, allocations: 0.5547 MB / 397.5 MB, free: 14.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.02956, allocations: 109.9 kB / 397.6 MB, free: 14.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005884/0.03015, allocations: 464.5 kB / 398.1 MB, free: 13.87 MB / 378.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0006953/0.03084, allocations: 0.7608 MB / 398.9 MB, free: 12.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.03085, allocations: 4 kB / 398.9 MB, free: 12.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009384/0.03179, allocations: 0.7174 MB / 399.6 MB, free: 12.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.03181, allocations: 12 kB / 399.6 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005305/0.03234, allocations: 396.1 kB / 400 MB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/0.03268, allocations: 147.2 kB / 400.1 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003345/0.03301, allocations: 175.7 kB / 400.3 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002719/0.03573, allocations: 5.459 MB / 405.8 MB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002184/0.03595, allocations: 43.91 kB / 405.8 MB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.738e-05/0.03598, allocations: 31.98 kB / 405.8 MB, free: 5.578 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002015/0.03619, allocations: 212.2 kB / 406 MB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.101e-05/0.03627, allocations: 83.58 kB / 406.1 MB, free: 5.277 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000508/0.03678, allocations: 435.9 kB / 406.5 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.03678, allocations: 4 kB / 406.6 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.03678, allocations: 144 / 406.6 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.03679, allocations: 7.969 kB / 406.6 MB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.03818, allocations: 1.137 MB / 407.7 MB, free: 3.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.03819, allocations: 4 kB / 407.7 MB, free: 3.629 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004224/0.03861, allocations: 123.9 kB / 407.8 MB, free: 3.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.03861, allocations: 4 kB / 407.8 MB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.03865, allocations: 19.94 kB / 407.8 MB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.03865, allocations: 4 kB / 407.8 MB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.03866, allocations: 7.938 kB / 407.9 MB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007847/0.03944, allocations: 0.6901 MB / 408.5 MB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.03961, allocations: 103.5 kB / 408.6 MB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.982e-05/0.03967, allocations: 19.94 kB / 408.7 MB, free: 2.613 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.03989, allocations: 23.97 kB / 408.7 MB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.155e-05/0.03995, allocations: 32.44 kB / 408.7 MB, free: 2.559 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/0.03998, allocations: 16 kB / 408.7 MB, free: 2.543 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002933/0.04027, allocations: 342.8 kB / 409.1 MB, free: 2.211 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.04027, allocations: 0 / 409.1 MB, free: 2.211 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006813/0.04096, allocations: 227.9 kB / 409.3 MB, free: 1.988 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002658/0.04122, allocations: 154.4 kB / 409.4 MB, free: 1.832 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.04226, allocations: 0.9354 MB / 410.4 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.04226, allocations: 0 / 410.4 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002382/0.0425, allocations: 177 kB / 410.6 MB, free: 0.668 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006118/0.04311, allocations: 143.8 kB / 410.7 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00292/0.04603, allocations: 1.677 MB / 412.4 MB, free: 14.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002032/0.04624, allocations: 246.8 kB / 412.6 MB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003544/0.04659, allocations: 161.3 kB / 412.8 MB, free: 14.36 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/0.04674, allocations: 56.48 kB / 412.8 MB, free: 14.31 MB / 394.7 MB Notification: Performance of SimCode: time 8.11e-07/0.04674, allocations: 4 kB / 412.8 MB, free: 14.3 MB / 394.7 MB Notification: Performance of Templates: time 0.0133/0.06004, allocations: 8.181 MB / 421 MB, free: 6.238 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.4133384618908167]