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.00109/0.00109, allocations: 80.8 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.000916/0.000916, allocations: 168.7 kB / 24.91 MB, free: 9.16 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 1.062/1.062, allocations: 177.1 MB / 205.3 MB, free: 5.512 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.2809/0.2809, allocations: 29.42 MB / 291.2 MB, free: 2.41 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.743e-06/1.743e-06, allocations: 0 / 316.8 MB, free: 15.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.172e-05/3.346e-05, allocations: 7.406 kB / 316.8 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.0053/0.005334, allocations: 4.799 MB / 321.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002771/0.008105, allocations: 2.01 MB / 323.7 MB, free: 9.145 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004731/0.008578, allocations: 23.88 kB / 323.7 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009704/0.009549, allocations: 334.4 kB / 324 MB, free: 8.793 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.0109, allocations: 0.513 MB / 324.5 MB, free: 8.277 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007686/0.01167, allocations: 294.9 kB / 324.8 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008526/0.01252, allocations: 0.7438 MB / 325.5 MB, free: 7.242 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004907/0.01301, allocations: 308.3 kB / 325.9 MB, free: 6.941 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006934/0.0137, allocations: 434.7 kB / 326.3 MB, free: 6.516 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004843/0.01419, allocations: 291.1 kB / 326.6 MB, free: 6.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.334e-05/0.01424, allocations: 36 kB / 326.6 MB, free: 6.195 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.01527, allocations: 0.5102 MB / 327.1 MB, free: 5.684 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.0155, allocations: 219.4 kB / 327.3 MB, free: 5.469 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.01566, allocations: 175.6 kB / 327.5 MB, free: 5.297 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.0168, allocations: 0.658 MB / 328.1 MB, free: 4.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.01681, allocations: 0 / 328.1 MB, free: 4.637 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.01681, allocations: 0 / 328.1 MB, free: 4.637 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.01682, allocations: 0 / 328.1 MB, free: 4.637 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001031/0.01785, allocations: 0.6825 MB / 328.8 MB, free: 3.926 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.0179, allocations: 11.98 kB / 328.8 MB, free: 3.914 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.01894, allocations: 280.5 kB / 329.1 MB, free: 3.641 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/0.0194, allocations: 280.4 kB / 329.4 MB, free: 3.344 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.01943, allocations: 33.36 kB / 329.4 MB, free: 3.312 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.104e-05/0.01949, allocations: 40.38 kB / 329.5 MB, free: 3.273 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004389/0.01993, allocations: 380.8 kB / 329.8 MB, free: 2.875 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/0.01995, allocations: 24.05 kB / 329.9 MB, free: 2.852 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.01999, allocations: 20.36 kB / 329.9 MB, free: 2.832 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.885e-05/0.02004, allocations: 36.92 kB / 329.9 MB, free: 2.793 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003086/0.02034, allocations: 201.6 kB / 330.1 MB, free: 2.598 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002282/0.02263, allocations: 1.527 MB / 331.6 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000506/0.02313, allocations: 261.8 kB / 331.9 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.02332, allocations: 93.52 kB / 332 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.09e-05/0.02337, allocations: 8 kB / 332 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.02342, allocations: 38.56 kB / 332 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 5.511e-06/0.02342, allocations: 0 / 332 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.00229/0.02572, allocations: 0.8279 MB / 332.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.02578, allocations: 81.11 kB / 332.9 MB, free: 15.6 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002292/0.026, allocations: 228.9 kB / 333.2 MB, free: 15.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.02604, allocations: 33.7 kB / 333.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.02614, allocations: 212.9 kB / 333.4 MB, free: 15.11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.542e-05/0.02624, allocations: 166.5 kB / 333.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.826e-05/0.02634, allocations: 94.22 kB / 333.7 MB, free: 14.85 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.02645, allocations: 342.7 kB / 334 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.521e-05/0.02653, allocations: 51.81 kB / 334 MB, free: 14.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.02667, allocations: 170.5 kB / 334.2 MB, free: 14.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002771/0.02695, allocations: 270.1 kB / 334.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.02695, allocations: 0 / 334.5 MB, free: 13.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004869/0.02744, allocations: 363.3 kB / 334.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.546e-05/0.02747, allocations: 8 kB / 334.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.02748, allocations: 4 kB / 334.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004025/0.02788, allocations: 148.8 kB / 335 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/0.0281, allocations: 87.89 kB / 335.1 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.03016, allocations: 1.929 MB / 337 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.03032, allocations: 12 kB / 337 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.03035, allocations: 12 kB / 337 MB, free: 11.28 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 0.0001679/0.03051, allocations: 144.5 kB / 337.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.013e-05/0.03056, allocations: 31.97 kB / 337.2 MB, free: 11.1 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004661/0.03103, allocations: 347.5 kB / 337.5 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.03104, allocations: 11.88 kB / 337.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.03104, allocations: 0 / 337.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.03104, allocations: 0 / 337.5 MB, free: 10.73 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.001057/0.0321, allocations: 0.7727 MB / 338.3 MB, free: 9.922 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.03211, allocations: 3.984 kB / 338.3 MB, free: 9.918 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.0323, allocations: 71.91 kB / 338.4 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003196/0.03262, allocations: 126.5 kB / 338.5 MB, free: 9.719 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.03264, allocations: 11.98 kB / 338.5 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001649/0.03429, allocations: 1.809 MB / 340.3 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.03429, allocations: 0 / 340.3 MB, free: 7.809 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005999/0.03489, allocations: 0.5385 MB / 340.9 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.551e-05/0.03494, allocations: 35.84 kB / 340.9 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.781e-05/0.03496, allocations: 8 kB / 340.9 MB, free: 7.199 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.587e-05/0.03506, allocations: 12 kB / 340.9 MB, free: 7.188 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.137e-05/0.03511, allocations: 39.86 kB / 341 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.03513, allocations: 8 kB / 341 MB, free: 7.141 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.06e-05/0.03519, allocations: 70.78 kB / 341 MB, free: 7.062 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.03519, allocations: 0 / 341 MB, free: 7.062 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000468/0.03566, allocations: 140 kB / 341.2 MB, free: 6.926 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 0.0001391/0.0358, allocations: 92.34 kB / 341.3 MB, free: 6.824 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006486/0.03645, allocations: 435.8 kB / 341.7 MB, free: 6.387 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.03646, allocations: 4 kB / 341.7 MB, free: 6.383 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003288/0.03679, allocations: 313.1 kB / 342 MB, free: 6.062 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.03712, allocations: 59.3 kB / 342.1 MB, free: 6 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.0391, allocations: 0.8814 MB / 342.9 MB, free: 5.078 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.03923, allocations: 150.2 kB / 343.1 MB, free: 4.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.03935, allocations: 38.95 kB / 343.1 MB, free: 4.875 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.03949, allocations: 99.36 kB / 343.2 MB, free: 4.777 MB / 314.7 MB Notification: Performance of SimCode: time 1.593e-06/0.03949, allocations: 0 / 343.2 MB, free: 4.777 MB / 314.7 MB Notification: Performance of Templates: time 0.009867/0.04936, allocations: 5.764 MB / 349 MB, free: 15.08 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.3353030551224947]