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.001083/0.001083, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001162/0.001162, allocations: 170 kB / 24.91 MB, free: 8.723 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.9682/0.9682, allocations: 177.1 MB / 205.3 MB, free: 5.109 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.2513/0.2513, allocations: 29.42 MB / 291.2 MB, free: 2.453 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 1.894e-06/1.894e-06, allocations: 0 / 316.8 MB, free: 28 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.695e-05/1.885e-05, allocations: 6.312 kB / 316.8 MB, free: 20 kB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003664/0.003683, allocations: 3.465 MB / 320.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.005084, allocations: 1.052 MB / 321.4 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.005234, allocations: 15.88 kB / 321.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007392/0.005973, allocations: 155.2 kB / 321.5 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003216/0.006295, allocations: 175 kB / 321.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.006546, allocations: 139.5 kB / 321.8 MB, free: 11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.006831, allocations: 287.2 kB / 322.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002116/0.007042, allocations: 118.9 kB / 322.2 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.00729, allocations: 179.4 kB / 322.4 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.007448, allocations: 87.77 kB / 322.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.185e-05/0.007469, allocations: 12 kB / 322.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002363/0.007706, allocations: 187.4 kB / 322.7 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-05/0.007782, allocations: 67.81 kB / 322.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.959e-05/0.007842, allocations: 71.78 kB / 322.8 MB, free: 10 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.008107, allocations: 251.1 kB / 323.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.894e-06/0.008109, allocations: 0 / 323.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.92e-07/0.00811, allocations: 0 / 323.1 MB, free: 9.758 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.008113, allocations: 0 / 323.1 MB, free: 9.758 MB / 298.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.0004203/0.008534, allocations: 407.7 kB / 323.5 MB, free: 9.336 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.008569, allocations: 11.98 kB / 323.5 MB, free: 9.324 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000386/0.008955, allocations: 104.8 kB / 323.6 MB, free: 9.223 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002237/0.009178, allocations: 205.3 kB / 323.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.345e-05/0.009192, allocations: 12.7 kB / 323.8 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.324e-05/0.009225, allocations: 16.36 kB / 323.8 MB, free: 8.969 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.009435, allocations: 184 kB / 324 MB, free: 8.766 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.009447, allocations: 192 / 324 MB, free: 8.766 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.009461, allocations: 8.125 kB / 324 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.394e-05/0.009485, allocations: 20.31 kB / 324 MB, free: 8.738 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/0.009604, allocations: 91.19 kB / 324.1 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.01076, allocations: 0.8938 MB / 325 MB, free: 7.695 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001363/0.01089, allocations: 130.6 kB / 325.1 MB, free: 7.547 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.146e-05/0.01093, allocations: 22.44 kB / 325.2 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.461e-05/0.01094, allocations: 11.92 kB / 325.2 MB, free: 7.508 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.01096, allocations: 34.56 kB / 325.2 MB, free: 7.465 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.01096, allocations: 0 / 325.2 MB, free: 7.465 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001562/0.01112, allocations: 90.25 kB / 325.3 MB, free: 7.371 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.01116, allocations: 77.11 kB / 325.4 MB, free: 7.277 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.01126, allocations: 183.2 kB / 325.5 MB, free: 7.082 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.01128, allocations: 29.7 kB / 325.6 MB, free: 7.047 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.98e-05/0.01135, allocations: 148.1 kB / 325.7 MB, free: 6.898 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.01138, allocations: 51.56 kB / 325.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.175e-05/0.01142, allocations: 33.7 kB / 325.8 MB, free: 6.809 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.906e-05/0.01151, allocations: 338.7 kB / 326.1 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.491e-05/0.01153, allocations: 18.95 kB / 326.1 MB, free: 6.449 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.797e-05/0.0116, allocations: 97.05 kB / 326.2 MB, free: 6.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/0.0117, allocations: 137.8 kB / 326.4 MB, free: 6.148 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.01171, allocations: 4 kB / 326.4 MB, free: 6.145 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001314/0.01184, allocations: 132.1 kB / 326.5 MB, free: 6.008 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.01185, allocations: 4 kB / 326.5 MB, free: 6.004 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.01186, allocations: 4 kB / 326.5 MB, free: 6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.01187, allocations: 12.34 kB / 326.5 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.01203, allocations: 55.91 kB / 326.6 MB, free: 5.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006601/0.01269, allocations: 1.225 MB / 327.8 MB, free: 4.613 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.344e-05/0.01276, allocations: 15.84 kB / 327.8 MB, free: 4.598 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.253e-05/0.01277, allocations: 12 kB / 327.8 MB, free: 4.586 MB / 298.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 7.363e-05/0.01284, allocations: 124.7 kB / 328 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.031e-05/0.01286, allocations: 12 kB / 328 MB, free: 4.441 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.929e-05/0.01296, allocations: 92.8 kB / 328.1 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-06/0.01297, allocations: 0 / 328.1 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.01297, allocations: 0 / 328.1 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.01297, allocations: 7.938 kB / 328.1 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003215/0.01329, allocations: 345.8 kB / 328.4 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.0133, allocations: 0 / 328.4 MB, free: 3.965 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.024e-05/0.01338, allocations: 27.98 kB / 328.4 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.145e-06/0.01338, allocations: 0 / 328.4 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.01339, allocations: 12.06 kB / 328.4 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005011/0.01389, allocations: 1.228 MB / 329.7 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.01389, allocations: 8 kB / 329.7 MB, free: 2.594 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.01405, allocations: 266.8 kB / 329.9 MB, free: 2.305 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.668e-05/0.01407, allocations: 23.83 kB / 330 MB, free: 2.281 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.012e-05/0.01408, allocations: 0 / 330 MB, free: 2.281 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.722e-05/0.01413, allocations: 12.16 kB / 330 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.01415, allocations: 7.984 kB / 330 MB, free: 2.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.01415, allocations: 0 / 330 MB, free: 2.262 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.871e-05/0.01419, allocations: 50.72 kB / 330 MB, free: 2.211 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01419, allocations: 0 / 330 MB, free: 2.211 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001893/0.01438, allocations: 55.83 kB / 330.1 MB, free: 2.156 MB / 298.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 8.47e-05/0.01447, allocations: 80.41 kB / 330.2 MB, free: 2.066 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000157/0.01462, allocations: 96.88 kB / 330.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.01463, allocations: 0 / 330.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.874e-05/0.01469, allocations: 41.52 kB / 330.3 MB, free: 1.926 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002014/0.01489, allocations: 47.86 kB / 330.3 MB, free: 1.883 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008259/0.01571, allocations: 460.6 kB / 330.8 MB, free: 1.398 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.275e-05/0.01577, allocations: 87.97 kB / 330.9 MB, free: 1.293 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.687e-05/0.01581, allocations: 17.47 kB / 330.9 MB, free: 1.273 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.603e-05/0.01588, allocations: 71.36 kB / 331 MB, free: 1.203 MB / 298.7 MB Notification: Performance of SimCode: time 8.22e-07/0.01588, allocations: 0 / 331 MB, free: 1.203 MB / 298.7 MB Notification: Performance of Templates: time 0.00396/0.01984, allocations: 1.499 MB / 332.5 MB, free: 15.72 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.0068258070386946]