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.0008082/0.0008082, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.00368/0.00368, allocations: 164.1 kB / 24.7 MB, free: 9.43 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 0.8286/0.8286, allocations: 177.2 MB / 205 MB, free: 5.719 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.2055/0.2055, allocations: 29.41 MB / 290.9 MB, free: 2.422 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 2.004e-06/2.004e-06, allocations: 4 kB / 431.5 MB, free: 13.1 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.616e-05/1.816e-05, allocations: 4.672 kB / 431.5 MB, free: 13.1 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.002803/0.002822, allocations: 3.308 MB / 434.8 MB, free: 9.766 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009765/0.003798, allocations: 1.173 MB / 436 MB, free: 8.586 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.746e-05/0.003896, allocations: 11.88 kB / 436 MB, free: 8.574 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004275/0.004323, allocations: 155.2 kB / 436.1 MB, free: 8.422 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.004565, allocations: 183 kB / 436.3 MB, free: 8.242 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.004723, allocations: 131.5 kB / 436.4 MB, free: 8.113 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002326/0.004956, allocations: 298.8 kB / 436.7 MB, free: 7.82 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.005168, allocations: 122.2 kB / 436.8 MB, free: 7.703 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000448/0.005616, allocations: 171.5 kB / 437 MB, free: 7.535 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001196/0.005735, allocations: 95.67 kB / 437.1 MB, free: 7.441 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.727e-05/0.005752, allocations: 16 kB / 437.1 MB, free: 7.426 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.005926, allocations: 191.3 kB / 437.3 MB, free: 7.238 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.382e-05/0.00598, allocations: 59.81 kB / 437.4 MB, free: 7.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 5.726e-05/0.006037, allocations: 67.83 kB / 437.4 MB, free: 7.113 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002759/0.006313, allocations: 299 kB / 437.7 MB, free: 6.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.006316, allocations: 8 kB / 437.7 MB, free: 6.812 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.006317, allocations: 0 / 437.7 MB, free: 6.812 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.006321, allocations: 0 / 437.7 MB, free: 6.812 MB / 410.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.0004588/0.00678, allocations: 437.2 kB / 438.2 MB, free: 6.355 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.006814, allocations: 11.98 kB / 438.2 MB, free: 6.344 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003527/0.007167, allocations: 80.72 kB / 438.2 MB, free: 6.266 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.007384, allocations: 197.4 kB / 438.4 MB, free: 6.047 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.007397, allocations: 12.7 kB / 438.4 MB, free: 6.035 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.097e-05/0.007428, allocations: 20.33 kB / 438.5 MB, free: 6.016 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002744/0.007702, allocations: 264.5 kB / 438.7 MB, free: 5.734 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.007714, allocations: 192 / 438.7 MB, free: 5.734 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.007732, allocations: 12.12 kB / 438.7 MB, free: 5.723 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.319e-05/0.007755, allocations: 16.31 kB / 438.8 MB, free: 5.707 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002346/0.00799, allocations: 216.4 kB / 439 MB, free: 5.496 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009101/0.0089, allocations: 1.064 MB / 440 MB, free: 4.355 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.009065, allocations: 129.1 kB / 440.2 MB, free: 4.211 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.825e-05/0.009113, allocations: 49.84 kB / 440.2 MB, free: 4.156 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.009124, allocations: 0 / 440.2 MB, free: 4.156 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.009143, allocations: 38.5 kB / 440.2 MB, free: 4.109 MB / 410.7 MB Notification: Performance of pre-optimization done (n=12): time 9.22e-07/0.009144, allocations: 0 / 440.2 MB, free: 4.109 MB / 410.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002295/0.009373, allocations: 165.8 kB / 440.4 MB, free: 3.941 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.009407, allocations: 85.23 kB / 440.5 MB, free: 3.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.009515, allocations: 183.2 kB / 440.7 MB, free: 3.645 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.009527, allocations: 29.7 kB / 440.7 MB, free: 3.609 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.66e-05/0.009593, allocations: 160 kB / 440.8 MB, free: 3.449 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.009617, allocations: 39.69 kB / 440.9 MB, free: 3.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/0.009659, allocations: 45.59 kB / 440.9 MB, free: 3.359 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.587e-05/0.009735, allocations: 330.8 kB / 441.3 MB, free: 3.027 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.876e-05/0.009784, allocations: 43.97 kB / 441.3 MB, free: 2.984 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.818e-05/0.009862, allocations: 122.3 kB / 441.4 MB, free: 2.828 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.01, allocations: 186.1 kB / 441.6 MB, free: 2.609 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.01001, allocations: 0 / 441.6 MB, free: 2.609 MB / 410.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001811/0.01019, allocations: 205.2 kB / 441.8 MB, free: 2.402 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.0102, allocations: 8 kB / 441.8 MB, free: 2.395 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01021, allocations: 4 kB / 441.8 MB, free: 2.391 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.01022, allocations: 4 kB / 441.8 MB, free: 2.387 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.01036, allocations: 47.91 kB / 441.9 MB, free: 2.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005811/0.01094, allocations: 1.302 MB / 443.2 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.953e-05/0.011, allocations: 27.84 kB / 443.2 MB, free: 0.9102 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.01101, allocations: 7.984 kB / 443.2 MB, free: 0.9023 MB / 410.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 8.043e-05/0.01109, allocations: 141.7 kB / 443.3 MB, free: 0.7539 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.086e-05/0.01111, allocations: 19.89 kB / 443.4 MB, free: 0.7344 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001401/0.01125, allocations: 143 kB / 443.5 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.01125, allocations: 0 / 443.5 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.01126, allocations: 0 / 443.5 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.01126, allocations: 4.125 kB / 443.5 MB, free: 0.582 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006077/0.01187, allocations: 427.6 kB / 443.9 MB, free: 124 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.01187, allocations: 0 / 443.9 MB, free: 124 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.605e-05/0.01195, allocations: 31.92 kB / 443.9 MB, free: 92 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.01196, allocations: 0 / 443.9 MB, free: 92 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.01196, allocations: 8 kB / 444 MB, free: 84 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1679/0.1799, allocations: 1.286 MB / 445.2 MB, free: 48.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1799, allocations: 0 / 445.2 MB, free: 48.32 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002397/0.1801, allocations: 304.8 kB / 445.5 MB, free: 48.16 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.495e-05/0.1801, allocations: 19.72 kB / 445.6 MB, free: 48.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.1801, allocations: 4.5 kB / 445.6 MB, free: 48.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.257e-05/0.1802, allocations: 2 kB / 445.6 MB, free: 48.16 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.333e-05/0.1802, allocations: 21.61 kB / 445.6 MB, free: 48.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.1802, allocations: 3.625 kB / 445.6 MB, free: 48.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.222e-05/0.1803, allocations: 136.3 kB / 445.7 MB, free: 48.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1803, allocations: 4.312 kB / 445.7 MB, free: 48.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002389/0.1805, allocations: 46.8 kB / 445.8 MB, free: 48.09 MB / 410.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 8.082e-05/0.1806, allocations: 102.6 kB / 445.9 MB, free: 48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002181/0.1808, allocations: 127 kB / 446 MB, free: 48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.1808, allocations: 1.438 kB / 446 MB, free: 48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.035e-05/0.1809, allocations: 60.42 kB / 446.1 MB, free: 48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.1812, allocations: 34.58 kB / 446.1 MB, free: 48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006208/0.1818, allocations: 0.4926 MB / 446.6 MB, free: 47.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.909e-05/0.1819, allocations: 130.9 kB / 446.7 MB, free: 47.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.1819, allocations: 18 kB / 446.7 MB, free: 47.66 MB / 410.7 MB Notification: Performance of SimCode: time 5.41e-07/0.1819, allocations: 0 / 446.7 MB, free: 47.66 MB / 410.7 MB Notification: Performance of Templates: time 0.002656/0.1846, allocations: 3.041 MB / 449.8 MB, free: 47.49 MB / 410.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.599490716122091]