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.0008151/0.0008151, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003954/0.003954, allocations: 165.3 kB / 24.7 MB, free: 9.426 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.8529/0.8529, 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.204/0.204, allocations: 29.41 MB / 290.8 MB, free: 2.438 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.GeneratorTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|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.1.|generator.p.2.|generator.phi|generator1.p.1.|generator1.p.2.|generator1.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 431.5 MB, free: 13.09 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.161e-05/3.348e-05, allocations: 4.812 kB / 431.5 MB, free: 13.09 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006198/0.006231, allocations: 4.719 MB / 436.2 MB, free: 8.34 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003259/0.00949, allocations: 2.332 MB / 438.5 MB, free: 5.996 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003566/0.009847, allocations: 11.94 kB / 438.5 MB, free: 5.984 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.01091, allocations: 433.9 kB / 439 MB, free: 5.559 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001303/0.01221, allocations: 0.5247 MB / 439.5 MB, free: 5.031 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007512/0.01296, allocations: 290.9 kB / 439.8 MB, free: 4.746 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009282/0.01389, allocations: 0.7473 MB / 440.5 MB, free: 3.996 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005569/0.01445, allocations: 293.6 kB / 440.8 MB, free: 3.707 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007186/0.01517, allocations: 450.6 kB / 441.2 MB, free: 3.266 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005135/0.01568, allocations: 307.1 kB / 441.5 MB, free: 2.965 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 5.842e-05/0.01574, allocations: 36 kB / 441.6 MB, free: 2.93 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.01674, allocations: 0.5412 MB / 442.1 MB, free: 2.387 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002128/0.01696, allocations: 215.4 kB / 442.3 MB, free: 2.176 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.01717, allocations: 167.6 kB / 442.5 MB, free: 2.012 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.0184, allocations: 0.7984 MB / 443.3 MB, free: 1.211 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.0184, allocations: 0 / 443.3 MB, free: 1.211 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.01841, allocations: 0 / 443.3 MB, free: 1.211 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.01842, allocations: 4 kB / 443.3 MB, free: 1.207 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001216/0.01963, allocations: 0.7115 MB / 444 MB, free: 476 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.01968, allocations: 15.98 kB / 444 MB, free: 460 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001474/0.02116, allocations: 200.4 kB / 444.2 MB, free: 260 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1799/0.201, allocations: 303.3 kB / 444.5 MB, free: 54.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.2011, allocations: 29.16 kB / 444.5 MB, free: 54.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.321e-05/0.2012, allocations: 48.12 kB / 444.6 MB, free: 54.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/0.2018, allocations: 0.6218 MB / 445.2 MB, free: 54.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.2018, allocations: 4.719 kB / 445.2 MB, free: 54.54 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.884e-05/0.2018, allocations: 19.84 kB / 445.2 MB, free: 54.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.925e-05/0.2019, allocations: 36.64 kB / 445.3 MB, free: 54.53 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005357/0.2024, allocations: 0.6062 MB / 445.9 MB, free: 54.35 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.2042, allocations: 1.995 MB / 447.9 MB, free: 53.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003658/0.2046, allocations: 376 kB / 448.2 MB, free: 53 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001647/0.2048, allocations: 211.9 kB / 448.4 MB, free: 52.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.2048, allocations: 12.75 kB / 448.5 MB, free: 52.92 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.666e-05/0.2048, allocations: 37.62 kB / 448.5 MB, free: 52.88 MB / 410.7 MB Notification: Performance of pre-optimization done (n=42): time 1.884e-06/0.2048, allocations: 0 / 448.5 MB, free: 52.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=43): time 0.001868/0.2067, allocations: 1.555 MB / 450 MB, free: 52.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.2067, allocations: 83.48 kB / 450.1 MB, free: 52.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.2068, allocations: 252.1 kB / 450.4 MB, free: 51.97 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.2069, allocations: 29.7 kB / 450.4 MB, free: 51.94 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.683e-05/0.2069, allocations: 242.6 kB / 450.6 MB, free: 51.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.331e-05/0.207, allocations: 154.2 kB / 450.8 MB, free: 51.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.37e-05/0.2071, allocations: 82.08 kB / 450.9 MB, free: 51.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.986e-05/0.2071, allocations: 346.3 kB / 451.2 MB, free: 51.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.2072, allocations: 174.3 kB / 451.4 MB, free: 51.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.2074, allocations: 299.6 kB / 451.7 MB, free: 51.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.2078, allocations: 0.4947 MB / 452.2 MB, free: 50.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2078, allocations: 3.281 kB / 452.2 MB, free: 50.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005831/0.2083, allocations: 0.6792 MB / 452.9 MB, free: 50.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.2084, allocations: 9.031 kB / 452.9 MB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2084, allocations: 5.578 kB / 452.9 MB, free: 50.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003114/0.2087, allocations: 171.2 kB / 453 MB, free: 50.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.2089, allocations: 97.14 kB / 453.1 MB, free: 50.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.2106, allocations: 2.636 MB / 455.8 MB, free: 48.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.2108, allocations: 24.86 kB / 455.8 MB, free: 48.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.2108, allocations: 21.84 kB / 455.8 MB, free: 48.62 MB / 410.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.0001501/0.2109, allocations: 197.8 kB / 456 MB, free: 48.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.708e-05/0.211, allocations: 36.77 kB / 456 MB, free: 48.44 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006038/0.2116, allocations: 0.632 MB / 456.7 MB, free: 48.17 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2116, allocations: 6.469 kB / 456.7 MB, free: 48.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.2116, allocations: 0 / 456.7 MB, free: 48.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2116, allocations: 3.562 kB / 456.7 MB, free: 48.17 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.2126, allocations: 1.158 MB / 457.8 MB, free: 47.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2126, allocations: 0 / 457.8 MB, free: 47.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.2128, allocations: 81.53 kB / 457.9 MB, free: 47.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002219/0.213, allocations: 145.4 kB / 458.1 MB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.213, allocations: 7.219 kB / 458.1 MB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.2144, allocations: 2.417 MB / 460.5 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2144, allocations: 0 / 460.5 MB, free: 45.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007272/0.2151, allocations: 0.95 MB / 461.4 MB, free: 45.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.029e-05/0.2151, allocations: 29.17 kB / 461.5 MB, free: 45.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.2152, allocations: 18.31 kB / 461.5 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.594e-05/0.2153, allocations: 10.56 kB / 461.5 MB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/0.2153, allocations: 37.8 kB / 461.5 MB, free: 45.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.2153, allocations: 14.06 kB / 461.5 MB, free: 45.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.599e-05/0.2154, allocations: 177.5 kB / 461.7 MB, free: 45.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2154, allocations: 0 / 461.7 MB, free: 45.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003925/0.2158, allocations: 137.3 kB / 461.8 MB, free: 45.17 MB / 410.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.0001007/0.2159, allocations: 114 kB / 462 MB, free: 45.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006642/0.2166, allocations: 0.6472 MB / 462.6 MB, free: 44.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2166, allocations: 4.125 kB / 462.6 MB, free: 44.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.2169, allocations: 404.1 kB / 463 MB, free: 44.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.2172, allocations: 65.91 kB / 463.1 MB, free: 44.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.2182, allocations: 1.076 MB / 464.1 MB, free: 43.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001528/0.2184, allocations: 265.3 kB / 464.4 MB, free: 43.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.13e-05/0.2185, allocations: 33.86 kB / 464.4 MB, free: 43.85 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/0.2185, allocations: 0 / 464.4 MB, free: 43.85 MB / 410.7 MB Notification: Performance of Templates: time 0.005661/0.2241, allocations: 7.116 MB / 471.6 MB, free: 43.27 MB / 410.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=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest2.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: 5.027128681540489]