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.0009707/0.0009707, allocations: 83.69 kB / 21.19 MB, free: 3.391 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.001236/0.001236, allocations: 165 kB / 24.56 MB, free: 20 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.036/1.036, allocations: 177.1 MB / 205 MB, free: 5.266 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.2614/0.2614, allocations: 29.41 MB / 290.9 MB, free: 2.383 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.[0-9,]+.|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.[0-9,]+.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 369.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.646e-05/2.811e-05, allocations: 6.312 kB / 369.6 MB, free: 11 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.003687/0.003715, allocations: 3.464 MB / 373.1 MB, free: 7.512 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.004996, allocations: 1.044 MB / 374.1 MB, free: 6.461 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.005113, allocations: 11.94 kB / 374.2 MB, free: 6.449 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003975/0.00551, allocations: 151.2 kB / 374.3 MB, free: 6.301 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000309/0.005819, allocations: 175 kB / 374.5 MB, free: 6.129 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.006057, allocations: 143.5 kB / 374.6 MB, free: 5.988 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002589/0.006316, allocations: 286.9 kB / 374.9 MB, free: 5.707 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.006498, allocations: 114.3 kB / 375 MB, free: 5.598 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002191/0.006717, allocations: 175.4 kB / 375.2 MB, free: 5.426 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.006862, allocations: 99.67 kB / 375.3 MB, free: 5.328 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.923e-05/0.006881, allocations: 12 kB / 375.3 MB, free: 5.316 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002301/0.007111, allocations: 187.5 kB / 375.5 MB, free: 5.133 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.922e-05/0.00717, allocations: 67.81 kB / 375.5 MB, free: 5.066 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.007232, allocations: 75.77 kB / 375.6 MB, free: 4.992 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.00751, allocations: 243.1 kB / 375.8 MB, free: 4.754 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.833e-06/0.007512, allocations: 0 / 375.8 MB, free: 4.754 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.007512, allocations: 0 / 375.8 MB, free: 4.754 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.007517, allocations: 4 kB / 375.8 MB, free: 4.75 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.0004335/0.00795, allocations: 0.5154 MB / 376.4 MB, free: 4.199 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.007985, allocations: 19.92 kB / 376.4 MB, free: 4.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004211/0.008406, allocations: 108.7 kB / 376.5 MB, free: 4.074 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000229/0.008635, allocations: 220.1 kB / 376.7 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.008647, allocations: 12.7 kB / 376.7 MB, free: 3.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.915e-05/0.008676, allocations: 16.38 kB / 376.7 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.008938, allocations: 213.4 kB / 376.9 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.00895, allocations: 192 / 376.9 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.008967, allocations: 12.12 kB / 377 MB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.008991, allocations: 16.25 kB / 377 MB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.009162, allocations: 116.4 kB / 377.1 MB, free: 3.426 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001042/0.0102, allocations: 1.233 MB / 378.3 MB, free: 2.109 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.01034, allocations: 102.2 kB / 378.4 MB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.967e-05/0.01038, allocations: 31.44 kB / 378.4 MB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.01039, allocations: 0 / 378.4 MB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.451e-05/0.01041, allocations: 49.31 kB / 378.5 MB, free: 1.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 3.026e-06/0.01042, allocations: 7.984 kB / 378.5 MB, free: 1.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002039/0.01062, allocations: 117 kB / 378.6 MB, free: 1.762 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.01066, allocations: 81.11 kB / 378.7 MB, free: 1.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.01079, allocations: 238.6 kB / 378.9 MB, free: 1.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.01081, allocations: 29.7 kB / 379 MB, free: 1.375 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.041e-05/0.01089, allocations: 202.8 kB / 379.2 MB, free: 1.168 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.01092, allocations: 47.62 kB / 379.2 MB, free: 1.121 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.694e-05/0.01096, allocations: 47.36 kB / 379.2 MB, free: 1.066 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.0111, allocations: 0.5 MB / 379.7 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.609e-05/0.01114, allocations: 15.98 kB / 379.8 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.989e-05/0.01123, allocations: 140.2 kB / 379.9 MB, free: 360 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001406/0.01137, allocations: 176 kB / 380.1 MB, free: 132 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.01137, allocations: 4 kB / 380.1 MB, free: 128 kB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000187/0.01156, allocations: 161.3 kB / 380.2 MB, free: 15.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.01157, allocations: 8 kB / 380.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.01157, allocations: 4 kB / 380.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.01158, allocations: 4.344 kB / 380.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.01175, allocations: 55.91 kB / 380.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007687/0.01251, allocations: 1.809 MB / 382.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.4e-05/0.01258, allocations: 19.83 kB / 382.1 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.0126, allocations: 16 kB / 382.1 MB, free: 13.93 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.0001008/0.0127, allocations: 164.5 kB / 382.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.018e-05/0.01273, allocations: 20.03 kB / 382.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.01286, allocations: 114.9 kB / 382.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.01286, allocations: 4 kB / 382.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-06/0.01287, allocations: 0 / 382.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.01287, allocations: 3.984 kB / 382.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003791/0.01325, allocations: 440.4 kB / 382.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.01325, allocations: 4 kB / 382.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.704e-05/0.01334, allocations: 31.98 kB / 382.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.01334, allocations: 0 / 382.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.01335, allocations: 4 kB / 382.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006456/0.014, allocations: 1.813 MB / 384.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.014, allocations: 3.984 kB / 384.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.01423, allocations: 306.7 kB / 385 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.662e-05/0.01425, allocations: 15.91 kB / 385 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.014e-05/0.01426, allocations: 0 / 385 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.784e-05/0.01431, allocations: 4 kB / 385.1 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.599e-05/0.01434, allocations: 20.08 kB / 385.1 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.577e-06/0.01434, allocations: 4 kB / 385.1 MB, free: 10.78 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.693e-05/0.01442, allocations: 169 kB / 385.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01442, allocations: 3.938 kB / 385.2 MB, free: 10.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002369/0.01466, allocations: 55.89 kB / 385.3 MB, free: 10.56 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 8.995e-05/0.01475, allocations: 99.19 kB / 385.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002087/0.01496, allocations: 110.1 kB / 385.5 MB, free: 10.35 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.01496, allocations: 0 / 385.5 MB, free: 10.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.21e-05/0.01503, allocations: 51.47 kB / 385.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.01528, allocations: 31.92 kB / 385.6 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.01631, allocations: 468.2 kB / 386 MB, free: 9.766 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.443e-05/0.01636, allocations: 79.97 kB / 386.1 MB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.456e-05/0.01643, allocations: 25.47 kB / 386.1 MB, free: 9.641 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.01647, allocations: 20.48 kB / 386.2 MB, free: 9.621 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01647, allocations: 4 kB / 386.2 MB, free: 9.617 MB / 362.7 MB Notification: Performance of Templates: time 0.00348/0.01995, allocations: 1.388 MB / 387.6 MB, free: 8.258 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","",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.2901110821403563]