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.0009968/0.0009968, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001249/0.001249, allocations: 169 kB / 24.91 MB, free: 8.723 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.996/0.996, allocations: 177.1 MB / 205.3 MB, free: 4.492 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.1511/0.1511, allocations: 29.44 MB / 291.3 MB, free: 2.688 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.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.753e-06/1.753e-06, allocations: 0 / 316.9 MB, free: 9.016 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.833e-05, allocations: 6.312 kB / 316.9 MB, free: 9.008 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.005347/0.005376, allocations: 3.521 MB / 320.4 MB, free: 5.461 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.007309, allocations: 1.051 MB / 321.5 MB, free: 4.402 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.007475, allocations: 11.94 kB / 321.5 MB, free: 4.391 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005527/0.008028, allocations: 155.2 kB / 321.6 MB, free: 4.238 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003646/0.008392, allocations: 167.1 kB / 321.8 MB, free: 4.074 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.008656, allocations: 131.5 kB / 321.9 MB, free: 3.945 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002862/0.008942, allocations: 294.8 kB / 322.2 MB, free: 3.656 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002066/0.009148, allocations: 126.8 kB / 322.3 MB, free: 3.535 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.009388, allocations: 171.5 kB / 322.5 MB, free: 3.367 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.009534, allocations: 95.69 kB / 322.6 MB, free: 3.273 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.952e-05/0.009554, allocations: 12 kB / 322.6 MB, free: 3.262 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002547/0.009808, allocations: 195.4 kB / 322.8 MB, free: 3.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003289/0.01014, allocations: 59.83 kB / 322.9 MB, free: 3.012 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.169e-05/0.0102, allocations: 63.83 kB / 322.9 MB, free: 2.949 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.01048, allocations: 239.2 kB / 323.2 MB, free: 2.715 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.01049, allocations: 0 / 323.2 MB, free: 2.715 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01049, allocations: 0 / 323.2 MB, free: 2.715 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.01049, allocations: 0 / 323.2 MB, free: 2.715 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004252/0.01092, allocations: 423.9 kB / 323.6 MB, free: 2.277 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.01095, allocations: 8.031 kB / 323.6 MB, free: 2.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004488/0.0114, allocations: 112.8 kB / 323.7 MB, free: 2.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002439/0.01164, allocations: 191.6 kB / 323.9 MB, free: 1.949 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.01166, allocations: 12.7 kB / 323.9 MB, free: 1.938 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.958e-05/0.01169, allocations: 20.38 kB / 323.9 MB, free: 1.918 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.01189, allocations: 179.3 kB / 324.1 MB, free: 1.719 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.01191, allocations: 192 / 324.1 MB, free: 1.719 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.01192, allocations: 16.11 kB / 324.1 MB, free: 1.703 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/0.01195, allocations: 12.33 kB / 324.1 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.01207, allocations: 87.23 kB / 324.2 MB, free: 1.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007831/0.01285, allocations: 0.9093 MB / 325.1 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001177/0.01297, allocations: 118.7 kB / 325.2 MB, free: 0.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.094e-05/0.013, allocations: 33.75 kB / 325.2 MB, free: 472 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.01301, allocations: 0 / 325.2 MB, free: 472 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.01304, allocations: 38.5 kB / 325.3 MB, free: 424 kB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 8.22e-07/0.01304, allocations: 0 / 325.3 MB, free: 424 kB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002101/0.01325, allocations: 93.47 kB / 325.4 MB, free: 324 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.01328, allocations: 81.11 kB / 325.5 MB, free: 224 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.513e-05/0.01338, allocations: 171.5 kB / 325.6 MB, free: 36 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.01341, allocations: 37.75 kB / 325.7 MB, free: 15.99 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.221e-05/0.01347, allocations: 152 kB / 325.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.311e-05/0.01349, allocations: 43.62 kB / 325.9 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/0.01353, allocations: 45.64 kB / 325.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.012e-05/0.01362, allocations: 330.7 kB / 326.2 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.569e-05/0.01364, allocations: 18.81 kB / 326.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.8e-05/0.0137, allocations: 90.28 kB / 326.3 MB, free: 15.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.01381, allocations: 139.7 kB / 326.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.01381, allocations: 0 / 326.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001338/0.01394, allocations: 136.2 kB / 326.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.01396, allocations: 8 kB / 326.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.01396, allocations: 4 kB / 326.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.01398, allocations: 4 kB / 326.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.01418, allocations: 59.91 kB / 326.7 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005924/0.01478, allocations: 1.226 MB / 327.9 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.936e-05/0.01484, allocations: 23.78 kB / 327.9 MB, free: 13.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.132e-05/0.01485, allocations: 8 kB / 327.9 MB, free: 13.52 MB / 314.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 7.226e-05/0.01492, allocations: 124.6 kB / 328 MB, free: 13.39 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.379e-05/0.01494, allocations: 11.98 kB / 328.1 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.323e-05/0.01504, allocations: 83.06 kB / 328.1 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.01504, allocations: 4 kB / 328.1 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.01504, allocations: 3.938 kB / 328.1 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.01504, allocations: 0 / 328.1 MB, free: 13.28 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003112/0.01535, allocations: 349.8 kB / 328.5 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.01536, allocations: 4 kB / 328.5 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.902e-05/0.01546, allocations: 35.97 kB / 328.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.01546, allocations: 7.938 kB / 328.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.01547, allocations: 0 / 328.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000474/0.01594, allocations: 1.24 MB / 329.8 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.01594, allocations: 0 / 329.8 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001606/0.0161, allocations: 269.1 kB / 330 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.391e-05/0.01612, allocations: 19.89 kB / 330.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.01613, allocations: 8 kB / 330.1 MB, free: 11.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.689e-05/0.01618, allocations: 4 kB / 330.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.912e-05/0.0162, allocations: 7.984 kB / 330.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-06/0.0162, allocations: 8 kB / 330.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.31e-05/0.01624, allocations: 50.7 kB / 330.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-08/0.01624, allocations: 0 / 330.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001787/0.01642, allocations: 51.95 kB / 330.2 MB, free: 11.09 MB / 314.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.222e-05/0.0165, allocations: 84.36 kB / 330.3 MB, free: 10.99 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001389/0.01664, allocations: 83.47 kB / 330.4 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.01664, allocations: 4 kB / 330.4 MB, free: 10.91 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.726e-05/0.0167, allocations: 45.44 kB / 330.4 MB, free: 10.86 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.0169, allocations: 39.5 kB / 330.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008168/0.01772, allocations: 465.9 kB / 330.9 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.98e-05/0.01777, allocations: 83.91 kB / 331 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.755e-05/0.01782, allocations: 17.64 kB / 331 MB, free: 10.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.004e-05/0.01789, allocations: 75.36 kB / 331.1 MB, free: 10.14 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01789, allocations: 0 / 331.1 MB, free: 10.14 MB / 314.7 MB Notification: Performance of Templates: time 0.003221/0.02111, allocations: 1.595 MB / 332.7 MB, free: 8.566 MB / 314.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 -s gbode -gbm=radauIIA3 -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: 2.9874924831092358]