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.001268/0.001268, allocations: 84.61 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001381/0.001381, allocations: 164.9 kB / 23.95 MB, free: 4.168 MB / 14.72 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.403/1.403, allocations: 177.2 MB / 204.3 MB, free: 9.188 MB / 190.1 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.1688/0.1688, allocations: 29.43 MB / 290.1 MB, free: 3.293 MB / 270.1 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.553e-06/1.553e-06, allocations: 0 / 430.7 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.494e-05/2.649e-05, allocations: 2.281 kB / 430.7 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006033/0.00606, allocations: 4.734 MB / 435.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00359/0.00965, allocations: 2.325 MB / 437.8 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.009826, allocations: 19.88 kB / 437.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001245/0.01107, allocations: 432.3 kB / 438.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001074/0.01215, allocations: 0.5246 MB / 438.7 MB, free: 9.895 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006205/0.01277, allocations: 290.9 kB / 439 MB, free: 9.609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008285/0.01359, allocations: 0.7552 MB / 439.8 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004615/0.01406, allocations: 281.7 kB / 440 MB, free: 8.574 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006072/0.01466, allocations: 446.6 kB / 440.5 MB, free: 8.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00047/0.01513, allocations: 307.1 kB / 440.8 MB, free: 7.836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.437e-05/0.0152, allocations: 36 kB / 440.8 MB, free: 7.801 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009112/0.01611, allocations: 0.5451 MB / 441.4 MB, free: 7.254 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.01632, allocations: 207.5 kB / 441.6 MB, free: 7.051 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.01654, allocations: 171.6 kB / 441.7 MB, free: 6.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.01758, allocations: 0.7984 MB / 442.5 MB, free: 6.082 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.01759, allocations: 0 / 442.5 MB, free: 6.082 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.01759, allocations: 0 / 442.5 MB, free: 6.082 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.0176, allocations: 0 / 442.5 MB, free: 6.082 MB / 366.1 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.001219/0.01882, allocations: 0.7033 MB / 443.2 MB, free: 5.352 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/0.01886, allocations: 15.98 kB / 443.3 MB, free: 5.336 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001569/0.02043, allocations: 208.4 kB / 443.5 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005135/0.02094, allocations: 308.3 kB / 443.8 MB, free: 4.809 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.499e-05/0.02098, allocations: 33.36 kB / 443.8 MB, free: 4.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.261e-05/0.02107, allocations: 52.31 kB / 443.8 MB, free: 4.727 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009701/0.02204, allocations: 0.6191 MB / 444.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.02207, allocations: 8.125 kB / 444.5 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.145e-05/0.02212, allocations: 20.36 kB / 444.5 MB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.601e-05/0.02218, allocations: 40.91 kB / 444.5 MB, free: 4.012 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009754/0.02316, allocations: 0.6011 MB / 445.1 MB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003187/0.02635, allocations: 1.996 MB / 447.1 MB, free: 1.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006295/0.02698, allocations: 380.5 kB / 447.5 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003223/0.0273, allocations: 221.6 kB / 447.7 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.02733, allocations: 4 kB / 447.7 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.02738, allocations: 42.5 kB / 447.8 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 1.814e-06/0.02738, allocations: 0 / 447.8 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.1764/0.2038, allocations: 1.543 MB / 449.3 MB, free: 30.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.542e-05/0.2038, allocations: 85.86 kB / 449.4 MB, free: 29.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002285/0.204, allocations: 251.5 kB / 449.6 MB, free: 29.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.2041, allocations: 32.55 kB / 449.7 MB, free: 29.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.687e-05/0.2041, allocations: 239 kB / 449.9 MB, free: 29.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.749e-05/0.2042, allocations: 157.4 kB / 450 MB, free: 29.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.2044, allocations: 89.66 kB / 450.1 MB, free: 29.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.616e-05/0.2044, allocations: 345.5 kB / 450.5 MB, free: 29.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.2047, allocations: 177.9 kB / 450.6 MB, free: 29.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/0.205, allocations: 290.3 kB / 450.9 MB, free: 28.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005779/0.2056, allocations: 0.5079 MB / 451.4 MB, free: 28.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2056, allocations: 2.969 kB / 451.4 MB, free: 28.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001118/0.2067, allocations: 0.6678 MB / 452.1 MB, free: 28.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2067, allocations: 6.469 kB / 452.1 MB, free: 28.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.2067, allocations: 3.469 kB / 452.1 MB, free: 28.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006008/0.2073, allocations: 173.3 kB / 452.3 MB, free: 28.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.2077, allocations: 94.98 kB / 452.4 MB, free: 28.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002979/0.2107, allocations: 2.624 MB / 455 MB, free: 26.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.2109, allocations: 21.22 kB / 455 MB, free: 26.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.984e-05/0.2109, allocations: 22.02 kB / 455 MB, free: 26.49 MB / 366.1 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.0002222/0.2112, allocations: 201.8 kB / 455.2 MB, free: 26.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.616e-05/0.2112, allocations: 40.16 kB / 455.3 MB, free: 26.31 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001091/0.2123, allocations: 0.6208 MB / 455.9 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.2123, allocations: 6.781 kB / 455.9 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.2123, allocations: 1.125 kB / 455.9 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.2123, allocations: 7.203 kB / 455.9 MB, free: 26.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/0.2142, allocations: 1.162 MB / 457.1 MB, free: 25.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2142, allocations: 1.375 kB / 457.1 MB, free: 25.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.2145, allocations: 81.97 kB / 457.2 MB, free: 25.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004376/0.215, allocations: 145.3 kB / 457.3 MB, free: 25.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.215, allocations: 13.59 kB / 457.3 MB, free: 25.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002443/0.2174, allocations: 2.405 MB / 459.7 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2174, allocations: 2.047 kB / 459.7 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.2187, allocations: 0.9538 MB / 460.7 MB, free: 23.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.832e-05/0.2188, allocations: 33.06 kB / 460.7 MB, free: 23.19 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.748e-05/0.2188, allocations: 12.53 kB / 460.7 MB, free: 23.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.2191, allocations: 11.47 kB / 460.7 MB, free: 23.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.218e-05/0.2191, allocations: 40.8 kB / 460.8 MB, free: 23.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.168e-05/0.2192, allocations: 15.73 kB / 460.8 MB, free: 23.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001466/0.2193, allocations: 174.5 kB / 461 MB, free: 23.06 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2193, allocations: 0 / 461 MB, free: 23.06 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006271/0.2199, allocations: 142.6 kB / 461.1 MB, free: 23.04 MB / 366.1 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.0001119/0.2201, allocations: 109 kB / 461.2 MB, free: 22.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.2213, allocations: 0.6455 MB / 461.8 MB, free: 22.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2213, allocations: 0 / 461.8 MB, free: 22.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006369/0.2219, allocations: 403.5 kB / 462.2 MB, free: 22.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.2224, allocations: 60.91 kB / 462.3 MB, free: 22.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.2239, allocations: 1.036 MB / 463.3 MB, free: 21.88 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.2242, allocations: 263.8 kB / 463.6 MB, free: 21.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000176/0.2243, allocations: 68.69 kB / 463.7 MB, free: 21.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.258e-05/0.2244, allocations: 36.28 kB / 463.7 MB, free: 21.77 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2244, allocations: 0 / 463.7 MB, free: 21.77 MB / 366.1 MB Notification: Performance of Templates: time 0.01134/0.2358, allocations: 5.381 MB / 469.1 MB, free: 20.62 MB / 366.1 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: 4.606503956019878]