Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.0009878/0.0009878, allocations: 81.97 kB / 22.21 MB, free: 2.297 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.00102/0.00102, allocations: 164.5 kB / 25.61 MB, free: 8.922 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.9447/0.9447, allocations: 177.2 MB / 206.1 MB, free: 4.504 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.113/0.113, allocations: 29.44 MB / 292 MB, free: 2.625 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.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.62e-07/9.62e-07, allocations: 0 / 370.9 MB, free: 32.33 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.586e-06/9.548e-06, allocations: 4.219 kB / 370.9 MB, free: 32.33 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.002616/0.002625, allocations: 3.455 MB / 374.3 MB, free: 28.86 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009837/0.003609, allocations: 1.036 MB / 375.4 MB, free: 27.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.003714, allocations: 15.88 kB / 375.4 MB, free: 27.8 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003978/0.004112, allocations: 147.2 kB / 375.5 MB, free: 27.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.004356, allocations: 175 kB / 375.7 MB, free: 27.49 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001671/0.004523, allocations: 135.5 kB / 375.8 MB, free: 27.36 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001994/0.004723, allocations: 298.9 kB / 376.1 MB, free: 27.06 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.004882, allocations: 114.7 kB / 376.2 MB, free: 26.95 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.005073, allocations: 175.5 kB / 376.4 MB, free: 26.78 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.005191, allocations: 95.69 kB / 376.5 MB, free: 26.68 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.005208, allocations: 12 kB / 376.5 MB, free: 26.67 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001678/0.005376, allocations: 191.4 kB / 376.7 MB, free: 26.48 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.685e-05/0.005423, allocations: 63.81 kB / 376.8 MB, free: 26.42 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.767e-05/0.005471, allocations: 67.78 kB / 376.8 MB, free: 26.36 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.005689, allocations: 247.1 kB / 377.1 MB, free: 26.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.005691, allocations: 4 kB / 377.1 MB, free: 26.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.005691, allocations: 0 / 377.1 MB, free: 26.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.005695, allocations: 0 / 377.1 MB, free: 26.11 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0003627/0.006058, allocations: 0.527 MB / 377.6 MB, free: 25.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.006087, allocations: 12.03 kB / 377.6 MB, free: 25.54 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004213/0.006508, allocations: 100.7 kB / 377.7 MB, free: 25.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.006693, allocations: 212.8 kB / 377.9 MB, free: 25.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.006706, allocations: 12.7 kB / 377.9 MB, free: 25.19 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/0.006732, allocations: 20.36 kB / 378 MB, free: 25.17 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000166/0.006898, allocations: 191 kB / 378.1 MB, free: 24.96 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.00691, allocations: 192 / 378.1 MB, free: 24.96 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.006921, allocations: 12.12 kB / 378.1 MB, free: 24.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.564e-05/0.006947, allocations: 24.25 kB / 378.2 MB, free: 24.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.007051, allocations: 96.33 kB / 378.3 MB, free: 24.83 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000635/0.007686, allocations: 1.175 MB / 379.4 MB, free: 23.58 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001103/0.007796, allocations: 98.28 kB / 379.5 MB, free: 23.46 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.674e-05/0.007823, allocations: 31.36 kB / 379.6 MB, free: 23.42 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.007835, allocations: 4 kB / 379.6 MB, free: 23.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.007849, allocations: 33.39 kB / 379.6 MB, free: 23.37 MB / 314.7 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.00785, allocations: 4 kB / 379.6 MB, free: 23.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001672/0.008017, allocations: 109.4 kB / 379.7 MB, free: 23.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.339e-05/0.008041, allocations: 85.11 kB / 379.8 MB, free: 23.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.544e-05/0.008116, allocations: 234.5 kB / 380 MB, free: 22.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.123e-06/0.008123, allocations: 33.7 kB / 380.1 MB, free: 22.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.028e-05/0.008174, allocations: 210.8 kB / 380.3 MB, free: 22.65 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.008192, allocations: 43.62 kB / 380.3 MB, free: 22.61 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.00823, allocations: 43.38 kB / 380.4 MB, free: 22.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.279e-05/0.008282, allocations: 0.5039 MB / 380.9 MB, free: 22.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.965e-05/0.008302, allocations: 11.98 kB / 380.9 MB, free: 22.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.297e-05/0.008355, allocations: 149.5 kB / 381 MB, free: 21.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.285e-05/0.008448, allocations: 166.5 kB / 381.2 MB, free: 21.62 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.00845, allocations: 4 kB / 381.2 MB, free: 21.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001344/0.008584, allocations: 157.3 kB / 381.3 MB, free: 21.46 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.008595, allocations: 4 kB / 381.3 MB, free: 21.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.0086, allocations: 8 kB / 381.3 MB, free: 21.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.008612, allocations: 4 kB / 381.3 MB, free: 21.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.00875, allocations: 48.25 kB / 381.4 MB, free: 21.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004551/0.009205, allocations: 1.798 MB / 383.2 MB, free: 19.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.489e-05/0.00926, allocations: 19.89 kB / 383.2 MB, free: 19.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.00927, allocations: 4 kB / 383.2 MB, free: 19.46 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 5.511e-05/0.009325, allocations: 172.5 kB / 383.4 MB, free: 19.29 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.009349, allocations: 19.91 kB / 383.4 MB, free: 19.27 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.543e-05/0.009435, allocations: 103.2 kB / 383.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.009437, allocations: 4 kB / 383.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.009438, allocations: 3.938 kB / 383.5 MB, free: 19.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.009441, allocations: 0 / 383.5 MB, free: 19.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002838/0.009725, allocations: 397.1 kB / 383.9 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.009727, allocations: 0 / 383.9 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.896e-05/0.009806, allocations: 35.91 kB / 383.9 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.009807, allocations: 0 / 383.9 MB, free: 18.69 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.009815, allocations: 7.938 kB / 383.9 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003596/0.01017, allocations: 1.798 MB / 385.7 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.01018, allocations: 0 / 385.7 MB, free: 16.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001355/0.01031, allocations: 294.8 kB / 386 MB, free: 16.45 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.155e-05/0.01032, allocations: 15.84 kB / 386 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.287e-05/0.01034, allocations: 7.984 kB / 386.1 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.695e-05/0.01038, allocations: 4 kB / 386.1 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.765e-05/0.0104, allocations: 12.08 kB / 386.1 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.293e-06/0.01041, allocations: 8 kB / 386.1 MB, free: 16.4 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.945e-05/0.01045, allocations: 169 kB / 386.2 MB, free: 16.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01045, allocations: 3.938 kB / 386.2 MB, free: 16.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001942/0.01064, allocations: 51.89 kB / 386.3 MB, free: 16.18 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 5.954e-05/0.0107, allocations: 99.23 kB / 386.4 MB, free: 16.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001424/0.01084, allocations: 88.77 kB / 386.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01084, allocations: 4.125 kB / 386.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.697e-05/0.0109, allocations: 50.33 kB / 386.5 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/0.01113, allocations: 39.61 kB / 386.6 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007116/0.01185, allocations: 475.8 kB / 387 MB, free: 15.39 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.385e-05/0.01188, allocations: 83.97 kB / 387.1 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.232e-05/0.01192, allocations: 17.48 kB / 387.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.549e-05/0.01198, allocations: 90.19 kB / 387.2 MB, free: 15.18 MB / 314.7 MB Notification: Performance of SimCode: time 9.12e-07/0.01198, allocations: 0 / 387.2 MB, free: 15.18 MB / 314.7 MB Notification: Performance of Templates: time 0.003059/0.01504, allocations: 1.507 MB / 388.7 MB, free: 13.7 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.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.0740951881743968]