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.0024/0.0024, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002527/0.002527, allocations: 165.3 kB / 24.27 MB, free: 156 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.577/1.577, allocations: 177.1 MB / 204.6 MB, free: 5.598 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.3062/0.3062, allocations: 29.41 MB / 290.5 MB, free: 2.402 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.503e-06/1.503e-06, allocations: 3.938 kB / 368.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.634e-05/2.784e-05, allocations: 5.688 kB / 368.9 MB, free: 11.31 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005617/0.005645, allocations: 3.421 MB / 372.3 MB, free: 7.863 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.007932, allocations: 1.228 MB / 373.5 MB, free: 6.629 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001538/0.008085, allocations: 11.88 kB / 373.5 MB, free: 6.617 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006542/0.00874, allocations: 159.2 kB / 373.7 MB, free: 6.461 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004641/0.009204, allocations: 179 kB / 373.9 MB, free: 6.285 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.009562, allocations: 131.5 kB / 374 MB, free: 6.156 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000394/0.009956, allocations: 290.9 kB / 374.3 MB, free: 5.871 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002801/0.01024, allocations: 110.3 kB / 374.4 MB, free: 5.766 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003336/0.01057, allocations: 179.5 kB / 374.6 MB, free: 5.59 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002041/0.01077, allocations: 99.67 kB / 374.7 MB, free: 5.492 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.119e-05/0.01081, allocations: 12 kB / 374.7 MB, free: 5.48 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003803/0.01119, allocations: 191.4 kB / 374.9 MB, free: 5.293 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.529e-05/0.01128, allocations: 67.75 kB / 374.9 MB, free: 5.227 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001051/0.01139, allocations: 67.84 kB / 375 MB, free: 5.16 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004881/0.01187, allocations: 303 kB / 375.3 MB, free: 4.863 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.01188, allocations: 0 / 375.3 MB, free: 4.863 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01188, allocations: 4 kB / 375.3 MB, free: 4.859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.01188, allocations: 0 / 375.3 MB, free: 4.859 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.0007866/0.01267, allocations: 0.5307 MB / 375.8 MB, free: 4.293 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.01271, allocations: 11.98 kB / 375.8 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007065/0.01341, allocations: 112.6 kB / 375.9 MB, free: 4.172 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.01379, allocations: 220.1 kB / 376.2 MB, free: 3.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.01381, allocations: 16.69 kB / 376.2 MB, free: 3.914 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.143e-05/0.01385, allocations: 16.38 kB / 376.2 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004398/0.01429, allocations: 225.5 kB / 376.4 MB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.01431, allocations: 192 / 376.4 MB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.01434, allocations: 16.06 kB / 376.4 MB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.706e-05/0.01437, allocations: 20.31 kB / 376.4 MB, free: 3.613 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003091/0.01468, allocations: 136.3 kB / 376.6 MB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001845/0.01653, allocations: 1.276 MB / 377.9 MB, free: 2.121 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.01677, allocations: 122 kB / 378 MB, free: 1.977 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.066e-05/0.01685, allocations: 39.61 kB / 378 MB, free: 1.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.01687, allocations: 4 kB / 378 MB, free: 1.926 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.159e-05/0.01692, allocations: 37.39 kB / 378.1 MB, free: 1.879 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.01692, allocations: 0 / 378.1 MB, free: 1.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004004/0.01733, allocations: 133.4 kB / 378.2 MB, free: 1.742 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.01739, allocations: 77.11 kB / 378.3 MB, free: 1.648 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005358/0.01793, allocations: 266.7 kB / 378.5 MB, free: 1.367 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.01795, allocations: 25.7 kB / 378.5 MB, free: 1.336 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.01811, allocations: 210.8 kB / 378.8 MB, free: 1.121 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.902e-05/0.01816, allocations: 47.64 kB / 378.8 MB, free: 1.074 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-05/0.01825, allocations: 51.36 kB / 378.8 MB, free: 1.016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002827/0.01853, allocations: 0.5117 MB / 379.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.89e-05/0.0186, allocations: 27.98 kB / 379.4 MB, free: 476 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.01877, allocations: 146.3 kB / 379.5 MB, free: 280 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002837/0.01905, allocations: 203.2 kB / 379.7 MB, free: 28 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.01906, allocations: 0 / 379.7 MB, free: 28 kB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003427/0.0194, allocations: 197.3 kB / 379.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.01942, allocations: 8 kB / 379.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.01942, allocations: 0 / 379.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.01944, allocations: 4 kB / 379.9 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002549/0.01969, allocations: 51.91 kB / 380 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/0.02117, allocations: 1.825 MB / 381.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.02128, allocations: 19.89 kB / 381.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.358e-05/0.02131, allocations: 12 kB / 381.8 MB, free: 13.79 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.0001684/0.02148, allocations: 180.4 kB / 382 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.639e-05/0.02152, allocations: 15.91 kB / 382 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002418/0.02176, allocations: 119 kB / 382.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.02177, allocations: 4 kB / 382.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-06/0.02177, allocations: 0 / 382.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.02178, allocations: 0 / 382.2 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007567/0.02253, allocations: 480.5 kB / 382.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.02253, allocations: 0 / 382.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/0.02273, allocations: 31.92 kB / 382.7 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.816e-06/0.02273, allocations: 0 / 382.7 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.042e-05/0.02275, allocations: 11.98 kB / 382.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.02409, allocations: 1.817 MB / 384.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.02409, allocations: 4.031 kB / 384.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003894/0.02448, allocations: 326.1 kB / 384.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.573e-05/0.02452, allocations: 19.89 kB / 384.8 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.21e-05/0.02454, allocations: 3.984 kB / 384.8 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.502e-05/0.02463, allocations: 8 kB / 384.8 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.883e-05/0.02469, allocations: 15.86 kB / 384.9 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.278e-05/0.02471, allocations: 7.938 kB / 384.9 MB, free: 10.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001525/0.02486, allocations: 173.1 kB / 385 MB, free: 10.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02486, allocations: 0 / 385 MB, free: 10.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003474/0.02521, allocations: 51.89 kB / 385.1 MB, free: 10.34 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.0001391/0.02535, allocations: 103.3 kB / 385.2 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003477/0.02569, allocations: 119.5 kB / 385.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.0257, allocations: 0 / 385.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003947/0.02609, allocations: 56.41 kB / 385.4 MB, free: 10.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003845/0.02647, allocations: 38.41 kB / 385.4 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000948/0.02742, allocations: 467.7 kB / 385.8 MB, free: 9.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001446/0.02757, allocations: 124.9 kB / 386 MB, free: 9.379 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.585e-05/0.02765, allocations: 25.47 kB / 386 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.0277, allocations: 24.48 kB / 386 MB, free: 9.328 MB / 362.7 MB Notification: Performance of SimCode: time 4.8e-07/0.0277, allocations: 0 / 386 MB, free: 9.328 MB / 362.7 MB Notification: Performance of Templates: time 0.005156/0.03286, allocations: 1.385 MB / 387.4 MB, free: 7.973 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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 240] 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.8549681029981]