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.001453/0.001453, allocations: 74.25 kB / 21.24 MB, free: 0.5469 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.001523/0.001523, allocations: 159.3 kB / 24.5 MB, free: 3.719 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.472/1.472, allocations: 177.2 MB / 204.9 MB, free: 9.016 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.1748/0.1748, allocations: 29.43 MB / 290.7 MB, free: 3.277 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.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="Time|generator.p.1.|generator.p.2.|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.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002173/0.002173, allocations: 67.89 kB / 431.2 MB, free: 3.223 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.409/0.4112, allocations: 62.44 MB / 493.6 MB, free: 37.77 MB / 446.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004316/0.4155, allocations: 3.317 MB / 496.9 MB, free: 35.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.4174, allocations: 1.171 MB / 498.1 MB, free: 34.72 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.4176, allocations: 10.41 kB / 498.1 MB, free: 34.71 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007539/0.4183, allocations: 153.8 kB / 498.3 MB, free: 34.62 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004613/0.4188, allocations: 179.6 kB / 498.5 MB, free: 34.52 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002962/0.4191, allocations: 133.3 kB / 498.6 MB, free: 34.46 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003823/0.4194, allocations: 284.1 kB / 498.9 MB, free: 34.33 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003239/0.4198, allocations: 112.3 kB / 499 MB, free: 34.27 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002752/0.42, allocations: 132.3 kB / 499.1 MB, free: 34.21 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.4202, allocations: 109 kB / 499.2 MB, free: 34.17 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.533e-05/0.4203, allocations: 19.62 kB / 499.2 MB, free: 34.16 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002658/0.4205, allocations: 192.4 kB / 499.4 MB, free: 34.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.282e-05/0.4206, allocations: 64.02 kB / 499.5 MB, free: 34.06 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.568e-05/0.4207, allocations: 81.67 kB / 499.6 MB, free: 34.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003823/0.4211, allocations: 291.1 kB / 499.8 MB, free: 33.92 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.4211, allocations: 0 / 499.8 MB, free: 33.92 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4211, allocations: 0 / 499.8 MB, free: 33.92 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.4211, allocations: 0 / 499.8 MB, free: 33.92 MB / 446.1 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.0006364/0.4217, allocations: 435.3 kB / 0.4885 GB, free: 33.55 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.4218, allocations: 13.55 kB / 0.4886 GB, free: 33.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007018/0.4225, allocations: 79.55 kB / 0.4886 GB, free: 33.53 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.4228, allocations: 201.9 kB / 0.4888 GB, free: 33.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.4228, allocations: 11.33 kB / 0.4888 GB, free: 33.36 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.4228, allocations: 16.47 kB / 0.4889 GB, free: 33.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003738/0.4232, allocations: 272.3 kB / 0.4891 GB, free: 33.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.4232, allocations: 7.25 kB / 0.4891 GB, free: 33.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.4232, allocations: 4 kB / 0.4891 GB, free: 33.19 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.578e-05/0.4233, allocations: 9.922 kB / 0.4891 GB, free: 33.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002952/0.4236, allocations: 228.2 kB / 0.4893 GB, free: 33.12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.4248, allocations: 1.063 MB / 0.4904 GB, free: 32.26 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002047/0.425, allocations: 126 kB / 0.4905 GB, free: 32.19 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.916e-05/0.4251, allocations: 55.14 kB / 0.4906 GB, free: 32.15 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.4251, allocations: 0 / 0.4906 GB, free: 32.15 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.4251, allocations: 33.41 kB / 0.4906 GB, free: 32.11 MB / 446.1 MB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.4251, allocations: 0 / 0.4906 GB, free: 32.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003274/0.4254, allocations: 167.9 kB / 0.4908 GB, free: 32.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.4255, allocations: 84.23 kB / 0.4908 GB, free: 31.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001408/0.4256, allocations: 192.8 kB / 0.491 GB, free: 31.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.485e-05/0.4256, allocations: 25.7 kB / 0.491 GB, free: 31.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.194e-05/0.4257, allocations: 163.3 kB / 0.4912 GB, free: 31.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.155e-05/0.4257, allocations: 45.66 kB / 0.4912 GB, free: 31.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.416e-05/0.4258, allocations: 42.09 kB / 0.4913 GB, free: 31.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.041e-05/0.4259, allocations: 325.6 kB / 0.4916 GB, free: 31.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.073e-05/0.4259, allocations: 47.62 kB / 0.4916 GB, free: 31.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.426, allocations: 127.3 kB / 0.4918 GB, free: 31.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001764/0.4262, allocations: 179.4 kB / 0.4919 GB, free: 30.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4262, allocations: 0 / 0.4919 GB, free: 30.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002461/0.4265, allocations: 208.2 kB / 0.4921 GB, free: 30.85 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.4265, allocations: 6.344 kB / 0.4921 GB, free: 30.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.4265, allocations: 7.219 kB / 0.4921 GB, free: 30.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.4265, allocations: 2.719 kB / 0.4921 GB, free: 30.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.4267, allocations: 50.02 kB / 0.4922 GB, free: 30.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006894/0.4274, allocations: 1.305 MB / 0.4935 GB, free: 29.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.529e-05/0.4275, allocations: 18.08 kB / 0.4935 GB, free: 29.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.4275, allocations: 5.938 kB / 0.4935 GB, free: 29.54 MB / 446.1 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 9.752e-05/0.4276, allocations: 153.2 kB / 0.4936 GB, free: 29.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.656e-05/0.4277, allocations: 18.19 kB / 0.4937 GB, free: 29.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001964/0.4279, allocations: 147.2 kB / 0.4938 GB, free: 29.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.4279, allocations: 3.188 kB / 0.4938 GB, free: 29.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.4279, allocations: 0 / 0.4938 GB, free: 29.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.4279, allocations: 0 / 0.4938 GB, free: 29.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004878/0.4284, allocations: 425.2 kB / 0.4942 GB, free: 28.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.4284, allocations: 0 / 0.4942 GB, free: 28.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.4285, allocations: 31.69 kB / 0.4942 GB, free: 28.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4285, allocations: 4.062 kB / 0.4942 GB, free: 28.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.4285, allocations: 3.156 kB / 0.4942 GB, free: 28.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005395/0.4291, allocations: 1.299 MB / 0.4955 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4291, allocations: 96 / 0.4955 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002456/0.4293, allocations: 305.3 kB / 0.4958 GB, free: 27.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.438e-05/0.4293, allocations: 21.45 kB / 0.4958 GB, free: 27.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.4294, allocations: 8.156 kB / 0.4958 GB, free: 27.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.846e-05/0.4294, allocations: 6.938 kB / 0.4958 GB, free: 27.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.587e-05/0.4295, allocations: 10.47 kB / 0.4958 GB, free: 27.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.4295, allocations: 5.531 kB / 0.4958 GB, free: 27.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.772e-05/0.4296, allocations: 134.6 kB / 0.496 GB, free: 27.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4296, allocations: 0 / 0.496 GB, free: 27.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003258/0.4299, allocations: 46.89 kB / 0.496 GB, free: 27.33 MB / 446.1 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.781e-05/0.43, allocations: 106.2 kB / 0.4961 GB, free: 27.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002839/0.4303, allocations: 125.9 kB / 0.4962 GB, free: 27.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4303, allocations: 0 / 0.4962 GB, free: 27.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.4304, allocations: 55.89 kB / 0.4963 GB, free: 27.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/0.4308, allocations: 36.23 kB / 0.4963 GB, free: 27.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008194/0.4316, allocations: 0.5187 MB / 0.4968 GB, free: 26.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.4317, allocations: 137.5 kB / 0.497 GB, free: 26.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.222e-05/0.4318, allocations: 20.8 kB / 0.497 GB, free: 26.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.059e-05/0.4318, allocations: 21.23 kB / 0.497 GB, free: 26.71 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4318, allocations: 4 kB / 0.497 GB, free: 26.7 MB / 446.1 MB Notification: Performance of Templates: time 0.004783/0.4366, allocations: 1.374 MB / 0.4984 GB, free: 26.51 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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.074652357958257]