Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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.001193/0.001193, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001107/0.001107, allocations: 169 kB / 24.82 MB, free: 9.266 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 1.162/1.162, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.3683/0.3683, allocations: 29.42 MB / 291.2 MB, free: 2.457 MB / 266.7 MB " [Timeout remaining time 179] 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.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.[0-9,]+.|generator.phi|generator1.p.[0-9,]+.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 370.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.239e-05/3.446e-05, allocations: 5.125 kB / 370.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005101/0.005135, allocations: 4.786 MB / 374.9 MB, free: 5.93 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002615/0.00775, allocations: 1.97 MB / 376.9 MB, free: 3.949 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000273/0.008023, allocations: 15.88 kB / 376.9 MB, free: 3.934 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.009028, allocations: 342.4 kB / 377.2 MB, free: 3.598 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001072/0.0101, allocations: 0.5131 MB / 377.7 MB, free: 3.082 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006098/0.01071, allocations: 286.8 kB / 378 MB, free: 2.801 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009715/0.01168, allocations: 0.7474 MB / 378.8 MB, free: 2.051 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004961/0.01218, allocations: 277.7 kB / 379 MB, free: 1.777 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006909/0.01287, allocations: 434.8 kB / 379.4 MB, free: 1.352 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005119/0.01338, allocations: 311.1 kB / 379.8 MB, free: 1.047 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.63e-05/0.01345, allocations: 43.94 kB / 379.8 MB, free: 1.004 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.01478, allocations: 0.5296 MB / 380.3 MB, free: 484 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002183/0.015, allocations: 211.4 kB / 380.5 MB, free: 272 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.01519, allocations: 175.6 kB / 380.7 MB, free: 96 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009736/0.01616, allocations: 0.6502 MB / 381.4 MB, free: 15.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.01616, allocations: 4 kB / 381.4 MB, free: 15.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.01617, allocations: 0 / 381.4 MB, free: 15.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.01618, allocations: 0 / 381.4 MB, free: 15.44 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001166/0.01734, allocations: 0.8192 MB / 382.2 MB, free: 14.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.88e-05/0.0174, allocations: 15.98 kB / 382.2 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001465/0.01887, allocations: 260.2 kB / 382.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004982/0.01936, allocations: 303.2 kB / 382.7 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/0.01941, allocations: 37.36 kB / 382.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-05/0.01948, allocations: 40.31 kB / 382.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006158/0.0201, allocations: 391 kB / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.02013, allocations: 8.141 kB / 383.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.921e-05/0.02018, allocations: 24.34 kB / 383.2 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.376e-05/0.02024, allocations: 40.92 kB / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004185/0.02066, allocations: 218.6 kB / 383.5 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.02336, allocations: 1.88 MB / 385.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004158/0.02377, allocations: 242.5 kB / 385.6 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.0239, allocations: 99.38 kB / 385.7 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.488e-05/0.02393, allocations: 11.78 kB / 385.7 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.303e-05/0.02396, allocations: 41.39 kB / 385.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.094e-06/0.02397, allocations: 0 / 385.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.00232/0.02629, allocations: 0.9142 MB / 386.7 MB, free: 9.859 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.02635, allocations: 89.09 kB / 386.8 MB, free: 9.754 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005161/0.02686, allocations: 292.1 kB / 387 MB, free: 9.449 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.02689, allocations: 33.7 kB / 387.1 MB, free: 9.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.02706, allocations: 283.1 kB / 387.3 MB, free: 9.125 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.02721, allocations: 158.6 kB / 387.5 MB, free: 8.969 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.02736, allocations: 87.81 kB / 387.6 MB, free: 8.871 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002241/0.02758, allocations: 0.5234 MB / 388.1 MB, free: 8.336 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.0277, allocations: 60.98 kB / 388.2 MB, free: 8.277 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.02791, allocations: 216.2 kB / 388.4 MB, free: 8.008 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003805/0.02829, allocations: 322.6 kB / 388.7 MB, free: 7.629 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.02829, allocations: 4 kB / 388.7 MB, free: 7.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008009/0.02909, allocations: 432.6 kB / 389.1 MB, free: 7.191 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.02912, allocations: 4 kB / 389.1 MB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.02913, allocations: 7.984 kB / 389.1 MB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005078/0.02964, allocations: 159.6 kB / 389.3 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.02992, allocations: 83.89 kB / 389.4 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002457/0.03238, allocations: 2.504 MB / 391.9 MB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.03254, allocations: 12 kB / 391.9 MB, free: 4.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.757e-05/0.03257, allocations: 20 kB / 391.9 MB, free: 4.309 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.03272, allocations: 192.3 kB / 392.1 MB, free: 4.109 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/0.03277, allocations: 47.81 kB / 392.1 MB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005402/0.03331, allocations: 387.5 kB / 392.5 MB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.03332, allocations: 11.94 kB / 392.5 MB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.03332, allocations: 4 kB / 392.5 MB, free: 3.652 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.03333, allocations: 3.984 kB / 392.5 MB, free: 3.648 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009468/0.03428, allocations: 0.8335 MB / 393.4 MB, free: 2.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.03428, allocations: 8.062 kB / 393.4 MB, free: 2.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004011/0.03468, allocations: 67.91 kB / 393.4 MB, free: 2.695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000265/0.03495, allocations: 127.5 kB / 393.6 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.874e-05/0.03497, allocations: 16 kB / 393.6 MB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00147/0.03644, allocations: 2.369 MB / 396 MB, free: 72 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.03644, allocations: 4 kB / 396 MB, free: 68 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006205/0.03706, allocations: 0.604 MB / 396.6 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.998e-05/0.03709, allocations: 31.81 kB / 396.6 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.03712, allocations: 15.88 kB / 396.6 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.437e-05/0.03721, allocations: 15.98 kB / 396.6 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.774e-05/0.03726, allocations: 31.94 kB / 396.7 MB, free: 15.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.03728, allocations: 8 kB / 396.7 MB, free: 15.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.395e-05/0.03737, allocations: 197.1 kB / 396.9 MB, free: 15.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03737, allocations: 0 / 396.9 MB, free: 15.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003727/0.03775, allocations: 136 kB / 397 MB, free: 15 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006229/0.03837, allocations: 115.1 kB / 397.1 MB, free: 14.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006032/0.03897, allocations: 0.5059 MB / 397.6 MB, free: 14.35 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.03897, allocations: 0 / 397.6 MB, free: 14.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003155/0.03929, allocations: 387.2 kB / 398 MB, free: 13.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.0396, allocations: 67.16 kB / 398.1 MB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.0411, allocations: 0.9283 MB / 399 MB, free: 12.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.04121, allocations: 150.2 kB / 399.1 MB, free: 12.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.592e-05/0.04131, allocations: 42.94 kB / 399.2 MB, free: 12.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001328/0.04144, allocations: 118.2 kB / 399.3 MB, free: 12.59 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.04144, allocations: 0 / 399.3 MB, free: 12.59 MB / 378.7 MB Notification: Performance of Templates: time 0.008489/0.04993, allocations: 5.762 MB / 405 MB, free: 6.879 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.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.7266475651413202]