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.001407/0.001407, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001462/0.001462, allocations: 165 kB / 24.56 MB, free: 12 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.049/1.049, allocations: 177.1 MB / 205 MB, free: 5.645 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.233/0.233, allocations: 29.43 MB / 290.9 MB, free: 2.52 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.854e-06/1.854e-06, allocations: 0 / 369.6 MB, free: 11.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.549e-05/2.734e-05, allocations: 2.312 kB / 369.6 MB, free: 11.02 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005283/0.00531, allocations: 4.84 MB / 374.5 MB, free: 6.152 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.008556/0.01387, allocations: 1.994 MB / 376.5 MB, free: 4.148 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000221/0.01409, allocations: 15.88 kB / 376.5 MB, free: 4.133 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007402/0.01483, allocations: 346.4 kB / 376.8 MB, free: 3.793 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008112/0.01564, allocations: 0.513 MB / 377.3 MB, free: 3.277 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.01611, allocations: 287 kB / 377.6 MB, free: 2.996 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006677/0.02279, allocations: 0.7435 MB / 378.4 MB, free: 2.25 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003986/0.02319, allocations: 281.7 kB / 378.6 MB, free: 1.973 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004995/0.02369, allocations: 438.7 kB / 379.1 MB, free: 1.543 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003722/0.02406, allocations: 311.1 kB / 379.4 MB, free: 1.238 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.795e-05/0.02411, allocations: 36 kB / 379.4 MB, free: 1.203 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006427/0.02475, allocations: 0.5335 MB / 379.9 MB, free: 0.668 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.02492, allocations: 215.5 kB / 380.2 MB, free: 468 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.02508, allocations: 171.6 kB / 380.3 MB, free: 296 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006773/0.03185, allocations: 0.6541 MB / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.03186, allocations: 4 kB / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.31e-07/0.03186, allocations: 0 / 381 MB, free: 15.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.03187, allocations: 3.984 kB / 381 MB, free: 15.62 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.0009159/0.03278, allocations: 0.8154 MB / 381.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.03282, allocations: 11.98 kB / 381.8 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001244/0.03406, allocations: 288.2 kB / 382.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.03446, allocations: 323.2 kB / 382.4 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.03448, allocations: 33.36 kB / 382.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.488e-05/0.03455, allocations: 40.38 kB / 382.5 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009644/0.04419, allocations: 427 kB / 382.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.04421, allocations: 4.141 kB / 382.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.04425, allocations: 20.36 kB / 382.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.386e-05/0.04431, allocations: 44.92 kB / 383 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004922/0.0448, allocations: 273.7 kB / 383.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01117/0.05597, allocations: 1.969 MB / 385.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004079/0.05637, allocations: 258.5 kB / 385.5 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.05655, allocations: 115.4 kB / 385.6 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/0.05658, allocations: 11.78 kB / 385.6 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.05661, allocations: 45.33 kB / 385.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.054e-06/0.05662, allocations: 0 / 385.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.01117/0.06778, allocations: 1.105 MB / 386.7 MB, free: 9.602 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.06783, allocations: 93.09 kB / 386.8 MB, free: 9.492 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/0.06807, allocations: 292.2 kB / 387.1 MB, free: 9.188 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.06809, allocations: 33.7 kB / 387.1 MB, free: 9.148 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.06824, allocations: 283.1 kB / 387.4 MB, free: 8.863 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001176/0.06836, allocations: 158.7 kB / 387.6 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/0.06848, allocations: 91.8 kB / 387.7 MB, free: 8.605 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001649/0.06864, allocations: 0.5157 MB / 388.2 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.06881, allocations: 72.95 kB / 388.2 MB, free: 8.008 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002493/0.06906, allocations: 236.2 kB / 388.5 MB, free: 7.719 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004505/0.06951, allocations: 358.8 kB / 388.8 MB, free: 7.305 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.06951, allocations: 4 kB / 388.8 MB, free: 7.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008299/0.07034, allocations: 472.5 kB / 389.3 MB, free: 6.828 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.07036, allocations: 8 kB / 389.3 MB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.07037, allocations: 4 kB / 389.3 MB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003497/0.07386, allocations: 155.8 kB / 389.5 MB, free: 6.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.07413, allocations: 103.8 kB / 389.6 MB, free: 6.559 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/0.07627, allocations: 2.562 MB / 392.1 MB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.07643, allocations: 27.92 kB / 392.1 MB, free: 3.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.264e-05/0.07646, allocations: 23.98 kB / 392.2 MB, free: 3.844 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.003161/0.07962, allocations: 184.4 kB / 392.3 MB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-05/0.0797, allocations: 43.81 kB / 392.4 MB, free: 3.609 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000716/0.08041, allocations: 435.4 kB / 392.8 MB, free: 3.172 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.08042, allocations: 4 kB / 392.8 MB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.08042, allocations: 4 kB / 392.8 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.08043, allocations: 7.984 kB / 392.8 MB, free: 3.156 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.001307/0.08173, allocations: 0.9345 MB / 393.8 MB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.08174, allocations: 0 / 393.8 MB, free: 2.168 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/0.08199, allocations: 87.83 kB / 393.9 MB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003278/0.08231, allocations: 127.6 kB / 394 MB, free: 1.953 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.08234, allocations: 8.109 kB / 394 MB, free: 1.945 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005009/0.08735, allocations: 2.442 MB / 396.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.08735, allocations: 4.031 kB / 396.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009537/0.0883, allocations: 0.6587 MB / 397.1 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.14e-05/0.08835, allocations: 31.77 kB / 397.1 MB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.084e-05/0.08839, allocations: 12 kB / 397.1 MB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.08853, allocations: 19.98 kB / 397.2 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.0886, allocations: 31.94 kB / 397.2 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.08863, allocations: 19.98 kB / 397.2 MB, free: 14.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001239/0.08875, allocations: 197.1 kB / 397.4 MB, free: 14.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.08875, allocations: 0 / 397.4 MB, free: 14.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005089/0.08926, allocations: 140 kB / 397.5 MB, free: 14.24 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.0001126/0.08937, allocations: 103.1 kB / 397.6 MB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007906/0.09016, allocations: 0.5482 MB / 398.2 MB, free: 13.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.09017, allocations: 4 kB / 398.2 MB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000462/0.09063, allocations: 395.9 kB / 398.6 MB, free: 13.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.09107, allocations: 66.02 kB / 398.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.09412, allocations: 0.9408 MB / 399.6 MB, free: 12.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.09426, allocations: 154.1 kB / 399.7 MB, free: 11.93 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001722/0.09444, allocations: 58.92 kB / 399.8 MB, free: 11.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.38e-05/0.09453, allocations: 32.5 kB / 399.8 MB, free: 11.84 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/0.09453, allocations: 0 / 399.8 MB, free: 11.84 MB / 378.7 MB Notification: Performance of Templates: time 0.01036/0.1049, allocations: 5.65 MB / 405.5 MB, free: 6.234 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","",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.2126636202447116]