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.002251/0.002251, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002009/0.002009, allocations: 169.3 kB / 24.28 MB, free: 152 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 1.588/1.588, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 178] 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.3259/0.3259, allocations: 29.41 MB / 290.5 MB, free: 2.406 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.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|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.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.634e-06/1.634e-06, allocations: 0 / 368.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.786e-05/2.95e-05, allocations: 5.266 kB / 368.9 MB, free: 11.3 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.00804/0.00807, allocations: 4.969 MB / 373.9 MB, free: 6.305 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004465/0.01254, allocations: 2.477 MB / 376.3 MB, free: 3.816 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002984/0.01283, allocations: 19.88 kB / 376.3 MB, free: 3.797 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.01421, allocations: 442 kB / 376.8 MB, free: 3.363 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.01546, allocations: 0.5169 MB / 377.3 MB, free: 2.844 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.01655, allocations: 286.9 kB / 377.6 MB, free: 2.562 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009385/0.01749, allocations: 0.7591 MB / 378.3 MB, free: 1.801 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004952/0.01798, allocations: 285.6 kB / 378.6 MB, free: 1.52 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008122/0.0188, allocations: 442.6 kB / 379 MB, free: 1.086 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005191/0.01932, allocations: 311.1 kB / 379.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.933e-05/0.01939, allocations: 40 kB / 379.4 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000989/0.02037, allocations: 0.5451 MB / 379.9 MB, free: 200 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005557/0.02093, allocations: 219.4 kB / 380.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.02117, allocations: 171.6 kB / 380.3 MB, free: 15.81 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.02251, allocations: 0.7944 MB / 381.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.02252, allocations: 3.984 kB / 381.1 MB, free: 15.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.02252, allocations: 0 / 381.1 MB, free: 15.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.02253, allocations: 0 / 381.1 MB, free: 15.01 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001371/0.0239, allocations: 0.8424 MB / 382 MB, free: 14.13 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.02395, allocations: 11.98 kB / 382 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001689/0.02564, allocations: 292.2 kB / 382.3 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006101/0.02625, allocations: 319.2 kB / 382.6 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.02629, allocations: 33.38 kB / 382.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.061e-05/0.02638, allocations: 48.31 kB / 382.6 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008829/0.02726, allocations: 475 kB / 383.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.02729, allocations: 8.141 kB / 383.1 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.081e-05/0.02734, allocations: 16.38 kB / 383.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.697e-05/0.02741, allocations: 40.86 kB / 383.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007676/0.02818, allocations: 339.7 kB / 383.5 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003696/0.03187, allocations: 2.079 MB / 385.6 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005787/0.03245, allocations: 290.5 kB / 385.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.03273, allocations: 143 kB / 386 MB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.324e-05/0.03279, allocations: 11.78 kB / 386 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.03284, allocations: 41.39 kB / 386.1 MB, free: 9.832 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.695e-06/0.03284, allocations: 4 kB / 386.1 MB, free: 9.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.003575/0.03641, allocations: 1.165 MB / 387.2 MB, free: 8.621 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.467e-05/0.03649, allocations: 81.11 kB / 387.3 MB, free: 8.523 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/0.03685, allocations: 340.2 kB / 387.6 MB, free: 8.172 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-05/0.03688, allocations: 29.7 kB / 387.7 MB, free: 8.137 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.03711, allocations: 291.1 kB / 388 MB, free: 7.844 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.03728, allocations: 170.8 kB / 388.1 MB, free: 7.676 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.03746, allocations: 99.8 kB / 388.2 MB, free: 7.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003129/0.03777, allocations: 0.5352 MB / 388.8 MB, free: 7.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002108/0.03798, allocations: 92.95 kB / 388.8 MB, free: 6.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003564/0.03834, allocations: 260.2 kB / 389.1 MB, free: 6.617 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006312/0.03897, allocations: 410.7 kB / 389.5 MB, free: 6.152 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.03897, allocations: 4 kB / 389.5 MB, free: 6.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0011/0.04007, allocations: 0.5042 MB / 390 MB, free: 5.633 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.04009, allocations: 8 kB / 390 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.0401, allocations: 4 kB / 390 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007153/0.04082, allocations: 171.9 kB / 390.2 MB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/0.04119, allocations: 95.83 kB / 390.3 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00367/0.04486, allocations: 2.66 MB / 392.9 MB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.04512, allocations: 23.92 kB / 393 MB, free: 2.562 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.04517, allocations: 23.98 kB / 393 MB, free: 2.539 MB / 362.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.0002634/0.04543, allocations: 196.4 kB / 393.2 MB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.665e-05/0.04553, allocations: 43.81 kB / 393.2 MB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001129/0.04666, allocations: 471.4 kB / 393.7 MB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.04666, allocations: 4.109 kB / 393.7 MB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.04667, allocations: 3.938 kB / 393.7 MB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.04668, allocations: 3.984 kB / 393.7 MB, free: 1.809 MB / 362.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.00244/0.04911, allocations: 1.032 MB / 394.7 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.04912, allocations: 0 / 394.7 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003774/0.0495, allocations: 83.83 kB / 394.8 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000525/0.05002, allocations: 135.6 kB / 394.9 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.605e-05/0.05006, allocations: 12 kB / 395 MB, free: 0.4922 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003222/0.05328, allocations: 2.505 MB / 397.5 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.05328, allocations: 0 / 397.5 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.05463, allocations: 0.7212 MB / 398.2 MB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.323e-05/0.05471, allocations: 39.7 kB / 398.2 MB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.817e-05/0.05476, allocations: 8 kB / 398.2 MB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002069/0.05497, allocations: 15.98 kB / 398.2 MB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.84e-05/0.05506, allocations: 31.94 kB / 398.3 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.133e-05/0.0551, allocations: 19.98 kB / 398.3 MB, free: 13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002402/0.05534, allocations: 213.1 kB / 398.5 MB, free: 12.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.05534, allocations: 0 / 398.5 MB, free: 12.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006596/0.056, allocations: 140 kB / 398.6 MB, free: 12.65 MB / 378.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.0001572/0.05616, allocations: 111.3 kB / 398.7 MB, free: 12.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.05743, allocations: 0.5954 MB / 399.3 MB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.05744, allocations: 0 / 399.3 MB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007173/0.05815, allocations: 423.1 kB / 399.8 MB, free: 11.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005024/0.05865, allocations: 62.77 kB / 399.8 MB, free: 11.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.0605, allocations: 0.9502 MB / 400.8 MB, free: 10.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.06083, allocations: 258.7 kB / 401 MB, free: 10.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001878/0.06101, allocations: 59.23 kB / 401.1 MB, free: 10.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.655e-05/0.06111, allocations: 32.48 kB / 401.1 MB, free: 10.07 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.06111, allocations: 0 / 401.1 MB, free: 10.07 MB / 378.7 MB Notification: Performance of Templates: time 0.0124/0.07351, allocations: 5.467 MB / 406.6 MB, free: 4.66 MB / 378.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.079285384039395]