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.001542/0.001542, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.00188/0.00188, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.392/1.392, allocations: 230.6 MB / 258.3 MB, free: 7.996 MB / 206.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.1766/0.1766, allocations: 38.53 MB / 353.2 MB, free: 12.52 MB / 286.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.002136/0.002136, allocations: 67.91 kB / 493.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2752, allocations: 62.47 MB / 0.5432 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.00667/0.2819, allocations: 5.08 MB / 0.5482 GB, free: 12.6 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004021/0.2859, allocations: 2.561 MB / 0.5507 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003612/0.2863, allocations: 18.09 kB / 0.5507 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001324/0.2876, allocations: 444 kB / 0.5511 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00134/0.289, allocations: 0.5146 MB / 0.5516 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007741/0.2897, allocations: 280.2 kB / 0.5519 GB, free: 9.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.2909, allocations: 0.7345 MB / 0.5526 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000594/0.2915, allocations: 298.6 kB / 0.5529 GB, free: 8.984 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007425/0.2922, allocations: 324.1 kB / 0.5532 GB, free: 8.805 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007265/0.2929, allocations: 358.8 kB / 0.5536 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.293, allocations: 36.59 kB / 0.5536 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.2944, allocations: 0.6591 MB / 0.5542 GB, free: 8.219 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002791/0.2947, allocations: 189.6 kB / 0.5544 GB, free: 8.102 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004888/0.2952, allocations: 249 kB / 0.5546 GB, free: 7.941 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.2969, allocations: 0.7724 MB / 0.5554 GB, free: 7.465 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2969, allocations: 0 / 0.5554 GB, free: 7.465 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2969, allocations: 0 / 0.5554 GB, free: 7.465 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.615e-05/0.2969, allocations: 1.125 kB / 0.5554 GB, free: 7.465 MB / 398.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.001598/0.2985, allocations: 0.7152 MB / 0.5561 GB, free: 6.883 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2985, allocations: 13.62 kB / 0.5561 GB, free: 6.883 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001835/0.3004, allocations: 203.1 kB / 0.5563 GB, free: 6.789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007049/0.3011, allocations: 309.7 kB / 0.5566 GB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.978e-05/0.3011, allocations: 30.28 kB / 0.5566 GB, free: 6.516 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.3012, allocations: 43.33 kB / 0.5567 GB, free: 6.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.3024, allocations: 0.6316 MB / 0.5573 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.3024, allocations: 3.953 kB / 0.5573 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.084e-05/0.3024, allocations: 19.94 kB / 0.5573 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.276e-05/0.3025, allocations: 40.97 kB / 0.5574 GB, free: 5.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001035/0.3035, allocations: 0.6089 MB / 0.5579 GB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003704/0.3072, allocations: 2.181 MB / 0.5601 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006302/0.3079, allocations: 373.4 kB / 0.5604 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.3082, allocations: 209.7 kB / 0.5606 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.023e-05/0.3082, allocations: 8 kB / 0.5606 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.3083, allocations: 42.55 kB / 0.5607 GB, free: 2.332 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.655e-06/0.3083, allocations: 0 / 0.5607 GB, free: 2.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=43): time 0.003492/0.3118, allocations: 1.562 MB / 0.5622 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.3118, allocations: 81.11 kB / 0.5623 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003289/0.3122, allocations: 280.2 kB / 0.5626 GB, free: 360 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.3122, allocations: 37.64 kB / 0.5626 GB, free: 316 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.3124, allocations: 232.5 kB / 0.5628 GB, free: 76 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.3125, allocations: 158.8 kB / 0.563 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/0.3127, allocations: 86.12 kB / 0.563 GB, free: 15.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/0.3128, allocations: 350.6 kB / 0.5634 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002886/0.3131, allocations: 180.9 kB / 0.5635 GB, free: 15.3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003707/0.3135, allocations: 285.8 kB / 0.5638 GB, free: 14.97 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007005/0.3142, allocations: 0.5043 MB / 0.5643 GB, free: 14.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3142, allocations: 0 / 0.5643 GB, free: 14.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001207/0.3154, allocations: 0.6771 MB / 0.565 GB, free: 13.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.3154, allocations: 4.438 kB / 0.565 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.3154, allocations: 8 kB / 0.565 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005905/0.316, allocations: 172.7 kB / 0.5652 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003655/0.3164, allocations: 91.83 kB / 0.5652 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003587/0.32, allocations: 2.69 MB / 0.5679 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.3202, allocations: 23.92 kB / 0.5679 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.103e-05/0.3203, allocations: 20 kB / 0.5679 GB, free: 10.63 MB / 414.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.0002422/0.3205, allocations: 200.1 kB / 0.5681 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-05/0.3206, allocations: 43.7 kB / 0.5681 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001186/0.3218, allocations: 0.6295 MB / 0.5688 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3218, allocations: 8.078 kB / 0.5688 GB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3218, allocations: 7.938 kB / 0.5688 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.3218, allocations: 3.984 kB / 0.5688 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002256/0.3241, allocations: 1.316 MB / 0.5701 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3241, allocations: 0 / 0.5701 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/0.3244, allocations: 83.89 kB / 0.5701 GB, free: 8.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004376/0.3248, allocations: 140.7 kB / 0.5703 GB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.3249, allocations: 12 kB / 0.5703 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/0.328, allocations: 2.457 MB / 0.5727 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.328, allocations: 12.03 kB / 0.5727 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.3295, allocations: 0.9576 MB / 0.5736 GB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.3296, allocations: 31.77 kB / 0.5737 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.513e-05/0.3296, allocations: 23.97 kB / 0.5737 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.3298, allocations: 8 kB / 0.5737 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.207e-05/0.3299, allocations: 35.92 kB / 0.5737 GB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.242e-05/0.3299, allocations: 16 kB / 0.5737 GB, free: 4.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002166/0.3302, allocations: 199.1 kB / 0.5739 GB, free: 4.215 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3302, allocations: 0 / 0.5739 GB, free: 4.215 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006315/0.3308, allocations: 140 kB / 0.5741 GB, free: 4.078 MB / 414.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.0001279/0.3309, allocations: 107.2 kB / 0.5742 GB, free: 3.961 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.3323, allocations: 0.6538 MB / 0.5748 GB, free: 3.297 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3323, allocations: 0 / 0.5748 GB, free: 3.297 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008296/0.3331, allocations: 395.4 kB / 0.5752 GB, free: 2.898 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005649/0.3337, allocations: 69.3 kB / 0.5752 GB, free: 2.832 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.3358, allocations: 1.199 MB / 0.5764 GB, free: 1.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005585/0.3364, allocations: 0.8669 MB / 0.5773 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/0.3365, allocations: 39.42 kB / 0.5773 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3365, allocations: 0 / 0.5773 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of Templates: time 0.01086/0.3474, allocations: 7.035 MB / 0.5842 GB, free: 9.617 MB / 430.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/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: 8.12660977197811]