Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.001216/0.001216, 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.001469/0.001469, 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.9744/0.9744, 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.1155/0.1155, allocations: 29.43 MB / 292 MB, free: 2.617 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.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.173e-06/1.173e-06, allocations: 0 / 370.9 MB, free: 32.3 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.658e-06/1.083e-05, allocations: 2.312 kB / 370.9 MB, free: 32.3 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.003228/0.003239, allocations: 4.797 MB / 375.7 MB, free: 27.49 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.004744, allocations: 1.974 MB / 377.7 MB, free: 25.51 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001639/0.004908, allocations: 15.88 kB / 377.7 MB, free: 25.49 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005338/0.005442, allocations: 330.5 kB / 378 MB, free: 25.17 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004758/0.005918, allocations: 0.5247 MB / 378.5 MB, free: 24.64 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.006176, allocations: 283 kB / 378.8 MB, free: 24.36 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.006567, allocations: 0.7438 MB / 379.5 MB, free: 23.62 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002586/0.006825, allocations: 285.7 kB / 379.8 MB, free: 23.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003164/0.007142, allocations: 434.7 kB / 380.2 MB, free: 22.91 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002557/0.007397, allocations: 319 kB / 380.5 MB, free: 22.6 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.00743, allocations: 36 kB / 380.6 MB, free: 22.56 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003786/0.007809, allocations: 0.5297 MB / 381.1 MB, free: 22.03 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.007921, allocations: 215.4 kB / 381.3 MB, free: 21.82 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.008029, allocations: 175.6 kB / 381.5 MB, free: 21.65 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005168/0.008546, allocations: 0.6502 MB / 382.1 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.008548, allocations: 0 / 382.1 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.008549, allocations: 0 / 382.1 MB, free: 21 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.008554, allocations: 0 / 382.1 MB, free: 21 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0006485/0.009203, allocations: 0.8189 MB / 383 MB, free: 20.14 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.009236, allocations: 8.031 kB / 383 MB, free: 20.13 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008174/0.01005, allocations: 264.2 kB / 383.2 MB, free: 19.87 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002794/0.01033, allocations: 299.2 kB / 383.5 MB, free: 19.55 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.01035, allocations: 41.36 kB / 383.6 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.561e-05/0.0104, allocations: 40.38 kB / 383.6 MB, free: 19.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003268/0.01073, allocations: 394.9 kB / 384 MB, free: 19.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.01074, allocations: 4.141 kB / 384 MB, free: 19.05 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.01077, allocations: 16.38 kB / 384 MB, free: 19.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-05/0.01081, allocations: 40.92 kB / 384 MB, free: 19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002769/0.01108, allocations: 222.7 kB / 384.3 MB, free: 18.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.01279, allocations: 1.892 MB / 386.2 MB, free: 16.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002602/0.01305, allocations: 234.5 kB / 386.4 MB, free: 16.54 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.029e-05/0.01314, allocations: 99.38 kB / 386.5 MB, free: 16.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.351e-05/0.01316, allocations: 19.77 kB / 386.5 MB, free: 16.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.65e-05/0.01318, allocations: 45.33 kB / 386.5 MB, free: 16.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 1.994e-06/0.01318, allocations: 0 / 386.5 MB, free: 16.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=43): time 0.001432/0.01461, allocations: 0.9039 MB / 387.5 MB, free: 15.41 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.01464, allocations: 81.11 kB / 387.5 MB, free: 15.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.01478, allocations: 296.1 kB / 387.8 MB, free: 15.01 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.0148, allocations: 33.7 kB / 387.9 MB, free: 14.97 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.0149, allocations: 291.2 kB / 388.1 MB, free: 14.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.394e-05/0.01497, allocations: 162.6 kB / 388.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.01507, allocations: 91.81 kB / 388.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.792e-05/0.01516, allocations: 0.5195 MB / 388.9 MB, free: 13.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.959e-05/0.01523, allocations: 56.95 kB / 389 MB, free: 13.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.01536, allocations: 216.1 kB / 389.2 MB, free: 13.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.01561, allocations: 326.7 kB / 389.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.01562, allocations: 0 / 389.5 MB, free: 13.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004706/0.01609, allocations: 432.3 kB / 389.9 MB, free: 12.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.0161, allocations: 8 kB / 389.9 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.01611, allocations: 4.438 kB / 389.9 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003419/0.01645, allocations: 161.8 kB / 390.1 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.01664, allocations: 95.83 kB / 390.2 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.01814, allocations: 2.48 MB / 392.7 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.01826, allocations: 15.98 kB / 392.7 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.01829, allocations: 16 kB / 392.7 MB, free: 9.863 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 9.638e-05/0.01838, allocations: 184.5 kB / 392.9 MB, free: 9.672 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.326e-05/0.01844, allocations: 51.7 kB / 392.9 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004375/0.01887, allocations: 407.3 kB / 393.3 MB, free: 9.211 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.01888, allocations: 4 kB / 393.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.01888, allocations: 0 / 393.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.01888, allocations: 0 / 393.3 MB, free: 9.207 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008092/0.01969, allocations: 0.8296 MB / 394.1 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.0197, allocations: 0 / 394.1 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.01986, allocations: 75.91 kB / 394.2 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002449/0.02011, allocations: 127.5 kB / 394.3 MB, free: 8.129 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.02013, allocations: 11.98 kB / 394.4 MB, free: 8.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.02121, allocations: 2.38 MB / 396.7 MB, free: 5.629 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.02121, allocations: 0 / 396.7 MB, free: 5.629 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004946/0.0217, allocations: 0.6118 MB / 397.4 MB, free: 4.98 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.516e-05/0.02173, allocations: 31.8 kB / 397.4 MB, free: 4.949 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.7e-05/0.02175, allocations: 11.94 kB / 397.4 MB, free: 4.938 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.244e-05/0.02185, allocations: 8 kB / 397.4 MB, free: 4.93 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.251e-05/0.0219, allocations: 31.94 kB / 397.4 MB, free: 4.898 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.02192, allocations: 15.98 kB / 397.4 MB, free: 4.883 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.42e-05/0.02197, allocations: 193.1 kB / 397.6 MB, free: 4.691 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02197, allocations: 0 / 397.6 MB, free: 4.691 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003513/0.02232, allocations: 144 kB / 397.8 MB, free: 4.551 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * 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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 8.301e-05/0.0224, allocations: 103.3 kB / 397.9 MB, free: 4.441 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004883/0.02289, allocations: 0.5167 MB / 398.4 MB, free: 3.902 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.02289, allocations: 3.938 kB / 398.4 MB, free: 3.898 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.02314, allocations: 380 kB / 398.8 MB, free: 3.508 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.02342, allocations: 70.34 kB / 398.8 MB, free: 3.445 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.02447, allocations: 0.9264 MB / 399.8 MB, free: 2.473 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.996e-05/0.02455, allocations: 154.2 kB / 399.9 MB, free: 2.301 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.784e-05/0.02463, allocations: 34.95 kB / 399.9 MB, free: 2.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.02474, allocations: 126.2 kB / 400.1 MB, free: 2.145 MB / 314.7 MB Notification: Performance of SimCode: time 8.32e-07/0.02474, allocations: 0 / 400.1 MB, free: 2.145 MB / 314.7 MB Notification: Performance of Templates: time 0.007919/0.03266, allocations: 5.887 MB / 406 MB, free: 12.33 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.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.273765390738845]