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.0015/0.0015, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001537/0.001537, allocations: 161.7 kB / 24.26 MB, free: 176 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.458/1.458, allocations: 177.2 MB / 204.6 MB, free: 5.586 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.3236/0.3236, allocations: 29.42 MB / 290.5 MB, free: 2.434 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.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|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.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 368.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.177e-05/3.36e-05, allocations: 2.312 kB / 368.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005225/0.005259, allocations: 3.323 MB / 372.2 MB, free: 7.965 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002057/0.007316, allocations: 1.169 MB / 373.4 MB, free: 6.789 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.007441, allocations: 11.94 kB / 373.4 MB, free: 6.777 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006279/0.008069, allocations: 151.2 kB / 373.5 MB, free: 6.629 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004178/0.008487, allocations: 183 kB / 373.7 MB, free: 6.449 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.008814, allocations: 143.4 kB / 373.8 MB, free: 6.309 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005195/0.009333, allocations: 290.9 kB / 374.1 MB, free: 6.023 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002645/0.009598, allocations: 106.3 kB / 374.2 MB, free: 5.922 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000312/0.00991, allocations: 171.5 kB / 374.4 MB, free: 5.754 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.0101, allocations: 95.69 kB / 374.5 MB, free: 5.66 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.01013, allocations: 16 kB / 374.5 MB, free: 5.645 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003259/0.01045, allocations: 195.3 kB / 374.7 MB, free: 5.453 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.766e-05/0.01055, allocations: 67.75 kB / 374.8 MB, free: 5.387 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.01066, allocations: 67.83 kB / 374.8 MB, free: 5.32 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004464/0.0111, allocations: 299 kB / 375.1 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.01111, allocations: 0 / 375.1 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.01111, allocations: 0 / 375.1 MB, free: 5.027 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.289e-06/0.01111, allocations: 0 / 375.1 MB, free: 5.027 MB / 346.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.0006952/0.01181, allocations: 425.5 kB / 375.5 MB, free: 4.582 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.01185, allocations: 15.98 kB / 375.6 MB, free: 4.566 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007311/0.01258, allocations: 120.6 kB / 375.7 MB, free: 4.449 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.01292, allocations: 209.3 kB / 375.9 MB, free: 4.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.01295, allocations: 16.7 kB / 375.9 MB, free: 4.203 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.211e-05/0.013, allocations: 20.36 kB / 375.9 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004612/0.01346, allocations: 260.6 kB / 376.2 MB, free: 3.906 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.01348, allocations: 4.125 kB / 376.2 MB, free: 3.902 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.0135, allocations: 16.06 kB / 376.2 MB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.995e-05/0.01353, allocations: 12.33 kB / 376.2 MB, free: 3.875 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00038/0.01391, allocations: 224.3 kB / 376.4 MB, free: 3.656 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.01559, allocations: 1.064 MB / 377.5 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002532/0.01584, allocations: 137.2 kB / 377.6 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.947e-05/0.01592, allocations: 37.77 kB / 377.7 MB, free: 2.324 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.01594, allocations: 12 kB / 377.7 MB, free: 2.312 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.01597, allocations: 34.56 kB / 377.7 MB, free: 2.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.183e-06/0.01597, allocations: 0 / 377.7 MB, free: 2.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003864/0.01636, allocations: 165.4 kB / 377.9 MB, free: 2.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.602e-05/0.01643, allocations: 85.05 kB / 377.9 MB, free: 2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.01664, allocations: 191.1 kB / 378.1 MB, free: 1.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.01667, allocations: 25.7 kB / 378.2 MB, free: 1.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.0168, allocations: 164.1 kB / 378.3 MB, free: 1.602 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.01684, allocations: 39.64 kB / 378.4 MB, free: 1.562 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.041e-05/0.01691, allocations: 37.7 kB / 378.4 MB, free: 1.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.01709, allocations: 338.9 kB / 378.7 MB, free: 1.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.423e-05/0.01718, allocations: 39.97 kB / 378.8 MB, free: 1.141 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.01735, allocations: 124.5 kB / 378.9 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002643/0.01761, allocations: 189.3 kB / 379.1 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.01761, allocations: 0 / 379.1 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003395/0.01795, allocations: 209.3 kB / 379.3 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.01797, allocations: 7.984 kB / 379.3 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.01798, allocations: 8.344 kB / 379.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.01801, allocations: 7.984 kB / 379.3 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.01826, allocations: 51.91 kB / 379.3 MB, free: 492 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.01944, allocations: 1.297 MB / 380.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.01955, allocations: 15.89 kB / 380.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.01957, allocations: 12 kB / 380.7 MB, free: 15.05 MB / 362.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 0.0001546/0.01973, allocations: 149.9 kB / 380.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/0.01977, allocations: 19.91 kB / 380.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003292/0.0201, allocations: 146.9 kB / 381 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.02011, allocations: 0 / 381 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.02011, allocations: 4 kB / 381 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.02011, allocations: 0 / 381 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006719/0.02078, allocations: 423.6 kB / 381.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.02079, allocations: 3.938 kB / 381.4 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.02096, allocations: 27.98 kB / 381.4 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.421e-06/0.02097, allocations: 4.062 kB / 381.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.02098, allocations: 8 kB / 381.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.02206, allocations: 1.29 MB / 382.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.02206, allocations: 0 / 382.7 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000404/0.02246, allocations: 308.8 kB / 383 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/0.0225, allocations: 23.86 kB / 383.1 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.02252, allocations: 7.984 kB / 383.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.46e-05/0.02262, allocations: 4.219 kB / 383.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.557e-05/0.02265, allocations: 15.92 kB / 383.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.02266, allocations: 4 kB / 383.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001308/0.0228, allocations: 141.1 kB / 383.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0228, allocations: 0 / 383.2 MB, free: 12.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003534/0.02315, allocations: 47.89 kB / 383.3 MB, free: 12.28 MB / 362.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 0.0001203/0.02327, allocations: 99.19 kB / 383.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003311/0.0236, allocations: 128.2 kB / 383.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.0236, allocations: 0 / 383.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.02376, allocations: 55.91 kB / 383.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004085/0.02417, allocations: 39.19 kB / 383.6 MB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000951/0.02512, allocations: 469.6 kB / 384 MB, free: 11.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001539/0.02528, allocations: 132.9 kB / 384.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.453e-05/0.02536, allocations: 25.47 kB / 384.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.373e-05/0.02542, allocations: 20.48 kB / 384.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02542, allocations: 4 kB / 384.2 MB, free: 11.27 MB / 362.7 MB Notification: Performance of Templates: time 0.00504/0.03046, allocations: 1.378 MB / 385.6 MB, free: 9.906 MB / 362.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=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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: 4.76673109002877]