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.001936/0.001936, allocations: 69.72 kB / 21.24 MB, free: 0.5547 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.002994/0.002994, allocations: 161.9 kB / 24.5 MB, free: 3.711 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.491/1.491, allocations: 177.2 MB / 204.9 MB, free: 8.988 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.2057/0.2057, allocations: 29.42 MB / 290.7 MB, free: 3.25 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: 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.002257/0.002257, allocations: 63.91 kB / 431.2 MB, free: 3.191 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4068, allocations: 62.44 MB / 493.6 MB, free: 37.77 MB / 446.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004758/0.4116, allocations: 4.759 MB / 498.4 MB, free: 34.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002733/0.4143, allocations: 2.347 MB / 0.489 GB, free: 32.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002497/0.4146, allocations: 16.59 kB / 0.489 GB, free: 32.98 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.4157, allocations: 428.9 kB / 0.4894 GB, free: 32.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009405/0.4166, allocations: 0.508 MB / 0.4899 GB, free: 32.46 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/0.4172, allocations: 285.3 kB / 0.4902 GB, free: 32.32 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005754/0.4177, allocations: 0.7332 MB / 0.4909 GB, free: 31.99 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003823/0.4181, allocations: 285 kB / 0.4912 GB, free: 31.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003797/0.4185, allocations: 345.8 kB / 0.4915 GB, free: 31.7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003831/0.4189, allocations: 325.6 kB / 0.4918 GB, free: 31.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.097e-05/0.4189, allocations: 36.53 kB / 0.4919 GB, free: 31.59 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007104/0.4196, allocations: 0.5291 MB / 0.4924 GB, free: 31.4 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.4198, allocations: 208.5 kB / 0.4926 GB, free: 31.32 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000179/0.42, allocations: 197.6 kB / 0.4928 GB, free: 31.22 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007286/0.4207, allocations: 0.7692 MB / 0.4935 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.4207, allocations: 4 kB / 0.4935 GB, free: 30.95 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4207, allocations: 3.938 kB / 0.4935 GB, free: 30.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.4207, allocations: 0 / 0.4935 GB, free: 30.94 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0008839/0.4216, allocations: 0.7089 MB / 0.4942 GB, free: 30.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.4216, allocations: 11.95 kB / 0.4942 GB, free: 30.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001513/0.4231, allocations: 208.7 kB / 0.4944 GB, free: 30.37 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.4236, allocations: 310.3 kB / 0.4947 GB, free: 30.15 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.4236, allocations: 37.23 kB / 0.4948 GB, free: 30.13 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.953e-05/0.4237, allocations: 37.72 kB / 0.4948 GB, free: 30.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007724/0.4244, allocations: 0.6351 MB / 0.4954 GB, free: 29.84 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.4244, allocations: 3.953 kB / 0.4954 GB, free: 29.83 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/0.4245, allocations: 21.95 kB / 0.4954 GB, free: 29.82 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.14e-05/0.4245, allocations: 37.17 kB / 0.4955 GB, free: 29.81 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007311/0.4253, allocations: 0.6046 MB / 0.4961 GB, free: 29.62 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.4277, allocations: 2.002 MB / 0.498 GB, free: 28.33 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004878/0.4282, allocations: 376.8 kB / 0.4984 GB, free: 28.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002382/0.4284, allocations: 209.9 kB / 0.4986 GB, free: 28.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.4284, allocations: 7.234 kB / 0.4986 GB, free: 28.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.4285, allocations: 41.84 kB / 0.4986 GB, free: 28.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 1.874e-06/0.4285, allocations: 0 / 0.4986 GB, free: 28.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=43): time 0.002862/0.4313, allocations: 1.558 MB / 0.5001 GB, free: 27.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.4314, allocations: 84.45 kB / 0.5002 GB, free: 27.24 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.4315, allocations: 249.1 kB / 0.5005 GB, free: 27.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.4316, allocations: 29.7 kB / 0.5005 GB, free: 27.06 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.492e-05/0.4317, allocations: 243.7 kB / 0.5007 GB, free: 26.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.782e-05/0.4317, allocations: 157.3 kB / 0.5009 GB, free: 26.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.4319, allocations: 86.48 kB / 0.501 GB, free: 26.69 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.061e-05/0.4319, allocations: 346.7 kB / 0.5013 GB, free: 26.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002318/0.4322, allocations: 176.3 kB / 0.5015 GB, free: 26.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002623/0.4324, allocations: 291.5 kB / 0.5017 GB, free: 26.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005143/0.4329, allocations: 0.5076 MB / 0.5022 GB, free: 25.81 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4329, allocations: 0 / 0.5022 GB, free: 25.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009619/0.4339, allocations: 0.6711 MB / 0.5029 GB, free: 25.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.4339, allocations: 11.5 kB / 0.5029 GB, free: 25.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.4339, allocations: 2.719 kB / 0.5029 GB, free: 25.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005275/0.4345, allocations: 169.7 kB / 0.5031 GB, free: 25.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.4348, allocations: 98.36 kB / 0.5032 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002907/0.4377, allocations: 2.626 MB / 0.5057 GB, free: 23.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.4379, allocations: 20.89 kB / 0.5057 GB, free: 23.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.4e-05/0.438, allocations: 20.22 kB / 0.5058 GB, free: 23.63 MB / 446.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.0001948/0.4382, allocations: 199.4 kB / 0.506 GB, free: 23.47 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.985e-05/0.4382, allocations: 33.98 kB / 0.506 GB, free: 23.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009723/0.4392, allocations: 0.6362 MB / 0.5066 GB, free: 23.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.4392, allocations: 6.406 kB / 0.5066 GB, free: 23.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.4392, allocations: 0 / 0.5066 GB, free: 23.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4392, allocations: 3.375 kB / 0.5066 GB, free: 23.19 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.4409, allocations: 1.15 MB / 0.5077 GB, free: 22.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.4409, allocations: 4 kB / 0.5077 GB, free: 22.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003337/0.4412, allocations: 85.22 kB / 0.5078 GB, free: 22.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003824/0.4416, allocations: 139.3 kB / 0.508 GB, free: 22.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.4416, allocations: 13.91 kB / 0.508 GB, free: 22.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002163/0.4438, allocations: 2.418 MB / 0.5103 GB, free: 20.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4438, allocations: 0 / 0.5103 GB, free: 20.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.445, allocations: 0.9558 MB / 0.5113 GB, free: 20.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.417e-05/0.445, allocations: 36.84 kB / 0.5113 GB, free: 20.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.014e-05/0.4451, allocations: 10 kB / 0.5113 GB, free: 20.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.4452, allocations: 18.69 kB / 0.5113 GB, free: 20.28 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.4453, allocations: 37.28 kB / 0.5114 GB, free: 20.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/0.4453, allocations: 16.66 kB / 0.5114 GB, free: 20.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.4455, allocations: 172.7 kB / 0.5115 GB, free: 20.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4455, allocations: 0 / 0.5115 GB, free: 20.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0007373/0.4462, allocations: 138.4 kB / 0.5117 GB, free: 20.14 MB / 446.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.0001274/0.4464, allocations: 106.4 kB / 0.5118 GB, free: 20.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001213/0.4476, allocations: 0.649 MB / 0.5124 GB, free: 19.76 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4476, allocations: 5 kB / 0.5124 GB, free: 19.76 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006349/0.4482, allocations: 411.2 kB / 0.5128 GB, free: 19.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00047/0.4487, allocations: 61.17 kB / 0.5129 GB, free: 19.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/0.4504, allocations: 1.133 MB / 0.514 GB, free: 18.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.4506, allocations: 268.2 kB / 0.5142 GB, free: 18.76 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.4509, allocations: 69 kB / 0.5143 GB, free: 18.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.033e-05/0.4509, allocations: 36.52 kB / 0.5143 GB, free: 18.74 MB / 446.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4509, allocations: 0 / 0.5143 GB, free: 18.74 MB / 446.1 MB Notification: Performance of Templates: time 0.01208/0.463, allocations: 5.386 MB / 0.5196 GB, free: 18.12 MB / 446.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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest2.mat","/var/lib/jenkins1/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.519335236982442]