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.001035/0.001035, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.00104/0.00104, allocations: 169.6 kB / 24.91 MB, free: 8.688 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.029/1.029, allocations: 177.1 MB / 205.3 MB, free: 5.484 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.2791/0.2791, allocations: 29.43 MB / 291.2 MB, free: 2.465 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.683e-06/1.683e-06, allocations: 0 / 316.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.389e-05/2.557e-05, allocations: 3.625 kB / 316.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005372/0.005397, allocations: 4.854 MB / 321.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003161/0.008558, allocations: 2.01 MB / 323.7 MB, free: 9.062 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003089/0.008867, allocations: 15.88 kB / 323.8 MB, free: 9.047 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007394/0.009606, allocations: 334.3 kB / 324.1 MB, free: 8.719 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001122/0.01073, allocations: 0.5053 MB / 324.6 MB, free: 8.211 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006193/0.01135, allocations: 286.8 kB / 324.9 MB, free: 7.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008236/0.01217, allocations: 0.7438 MB / 325.6 MB, free: 7.184 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004494/0.01262, allocations: 300.3 kB / 325.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007657/0.01339, allocations: 434.8 kB / 326.3 MB, free: 6.465 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004495/0.01384, allocations: 295.1 kB / 326.6 MB, free: 6.176 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.578e-05/0.01389, allocations: 36 kB / 326.7 MB, free: 6.141 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.01501, allocations: 0.5335 MB / 327.2 MB, free: 5.605 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002247/0.01523, allocations: 211.4 kB / 327.4 MB, free: 5.398 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001819/0.01541, allocations: 175.6 kB / 327.6 MB, free: 5.227 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.01659, allocations: 0.6541 MB / 328.2 MB, free: 4.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.0166, allocations: 0 / 328.2 MB, free: 4.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.0166, allocations: 0 / 328.2 MB, free: 4.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.01661, allocations: 0 / 328.2 MB, free: 4.57 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.0009259/0.01754, allocations: 0.6903 MB / 328.9 MB, free: 3.852 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.01759, allocations: 11.98 kB / 328.9 MB, free: 3.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001118/0.01871, allocations: 272.5 kB / 329.2 MB, free: 3.574 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.01909, allocations: 280.4 kB / 329.5 MB, free: 3.277 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.01912, allocations: 37.36 kB / 329.5 MB, free: 3.242 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.01917, allocations: 44.38 kB / 329.5 MB, free: 3.199 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004225/0.01959, allocations: 392.6 kB / 329.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.01961, allocations: 4.141 kB / 329.9 MB, free: 2.785 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.01965, allocations: 24.36 kB / 330 MB, free: 2.762 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-05/0.0197, allocations: 36.91 kB / 330 MB, free: 2.723 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003378/0.02004, allocations: 205.5 kB / 330.2 MB, free: 2.523 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.02197, allocations: 1.523 MB / 331.7 MB, free: 0.918 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002774/0.02224, allocations: 252.9 kB / 332 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.362e-05/0.02234, allocations: 87.48 kB / 332.1 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.987e-05/0.02237, allocations: 15.98 kB / 332.1 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.369e-05/0.0224, allocations: 50.33 kB / 332.1 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 3.516e-06/0.0224, allocations: 0 / 332.1 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of matching and sorting (n=43): time 0.001492/0.0239, allocations: 0.824 MB / 332.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.02395, allocations: 85.11 kB / 333 MB, free: 15.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.02411, allocations: 237 kB / 333.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.02413, allocations: 29.7 kB / 333.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.02425, allocations: 216.9 kB / 333.5 MB, free: 15.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.02435, allocations: 158.6 kB / 333.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.178e-05/0.02444, allocations: 82.09 kB / 333.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.02454, allocations: 346.7 kB / 334.1 MB, free: 14.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.556e-05/0.02462, allocations: 59.8 kB / 334.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.02475, allocations: 170.4 kB / 334.3 MB, free: 14.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002376/0.02499, allocations: 266.1 kB / 334.6 MB, free: 13.86 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.02499, allocations: 4 kB / 334.6 MB, free: 13.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004213/0.02541, allocations: 363.8 kB / 334.9 MB, free: 13.49 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.02543, allocations: 8.031 kB / 334.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.02544, allocations: 11.94 kB / 334.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003456/0.02578, allocations: 145.3 kB / 335.1 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.02602, allocations: 103.8 kB / 335.2 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.02803, allocations: 1.924 MB / 337.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.02816, allocations: 16 kB / 337.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.02818, allocations: 15.94 kB / 337.1 MB, free: 11.18 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.0001084/0.02829, allocations: 140.5 kB / 337.3 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.737e-05/0.02834, allocations: 39.97 kB / 337.3 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004085/0.02875, allocations: 334.7 kB / 337.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.02876, allocations: 4 kB / 337.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.02876, allocations: 4 kB / 337.6 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.02876, allocations: 3.984 kB / 337.6 MB, free: 10.64 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.0008812/0.02965, allocations: 0.7689 MB / 338.4 MB, free: 9.84 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.02965, allocations: 3.938 kB / 338.4 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002111/0.02986, allocations: 87.88 kB / 338.5 MB, free: 9.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000262/0.03012, allocations: 130.3 kB / 338.6 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.266e-05/0.03014, allocations: 15.98 kB / 338.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001343/0.03149, allocations: 1.817 MB / 340.5 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.03149, allocations: 3.938 kB / 340.5 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005218/0.03201, allocations: 0.5308 MB / 341 MB, free: 7.133 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.997e-05/0.03204, allocations: 35.7 kB / 341 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.03207, allocations: 12 kB / 341 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.992e-05/0.03216, allocations: 8 kB / 341.1 MB, free: 7.078 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.03223, allocations: 39.86 kB / 341.1 MB, free: 7.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.03225, allocations: 12 kB / 341.1 MB, free: 7.027 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.873e-05/0.03231, allocations: 74.78 kB / 341.2 MB, free: 6.945 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03231, allocations: 0 / 341.2 MB, free: 6.945 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003695/0.03268, allocations: 136 kB / 341.3 MB, free: 6.812 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.0001056/0.03279, allocations: 92.34 kB / 341.4 MB, free: 6.711 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005629/0.03335, allocations: 431.3 kB / 341.8 MB, free: 6.277 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.996e-06/0.03336, allocations: 4 kB / 341.8 MB, free: 6.273 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003284/0.03369, allocations: 321.9 kB / 342.1 MB, free: 5.945 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002945/0.03398, allocations: 66.05 kB / 342.2 MB, free: 5.879 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.03546, allocations: 0.885 MB / 343.1 MB, free: 4.957 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.03559, allocations: 150.2 kB / 343.2 MB, free: 4.789 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.0357, allocations: 39.27 kB / 343.3 MB, free: 4.754 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.03583, allocations: 95.36 kB / 343.4 MB, free: 4.66 MB / 314.7 MB Notification: Performance of SimCode: time 1.332e-06/0.03583, allocations: 0 / 343.4 MB, free: 4.66 MB / 314.7 MB Notification: Performance of Templates: time 0.008837/0.04467, allocations: 5.843 MB / 349.2 MB, free: 14.88 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 -s gbode -gbm=radauIIA3 -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.0021769530139863]