Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.001287/0.001287, allocations: 73.02 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.001412/0.001412, allocations: 159.2 kB / 24.5 MB, free: 3.715 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.458/1.458, allocations: 177.2 MB / 204.9 MB, free: 9.008 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.1778/0.1778, allocations: 29.42 MB / 290.7 MB, free: 3.27 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.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meter_dq0.i.1.|meter_dq0.i.2.|meter_dq0.i.3.|meter_dq0.p.1.|meter_dq0.p.2.|meter_dq0.p.3.|meter_dq0.v.1.|meter_dq0.v.2.|meter_dq0.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial") [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.002134/0.002134, allocations: 67.89 kB / 431.2 MB, free: 3.223 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.373/0.3751, allocations: 62.44 MB / 493.6 MB, free: 37.81 MB / 446.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.004872/0.38, allocations: 4.324 MB / 497.9 MB, free: 34.88 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.3822, allocations: 1.397 MB / 499.3 MB, free: 33.96 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001904/0.3823, allocations: 18.09 kB / 499.4 MB, free: 33.95 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009786/0.3833, allocations: 371.3 kB / 499.7 MB, free: 33.74 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000499/0.3838, allocations: 219.7 kB / 499.9 MB, free: 33.62 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007028/0.3845, allocations: 258.7 kB / 0.4885 GB, free: 33.5 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004567/0.385, allocations: 0.529 MB / 0.489 GB, free: 33.28 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003194/0.3853, allocations: 220 kB / 0.4892 GB, free: 33.18 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003471/0.3856, allocations: 260.6 kB / 0.4894 GB, free: 33.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000378/0.386, allocations: 303.7 kB / 0.4897 GB, free: 32.97 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.114e-05/0.3861, allocations: 31.75 kB / 0.4898 GB, free: 32.97 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002989/0.3864, allocations: 143.4 kB / 0.4899 GB, free: 32.94 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.3866, allocations: 235.3 kB / 0.4901 GB, free: 32.86 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000195/0.3868, allocations: 192.3 kB / 0.4903 GB, free: 32.76 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006107/0.3874, allocations: 0.579 MB / 0.4909 GB, free: 32.55 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3874, allocations: 3.938 kB / 0.4909 GB, free: 32.54 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3874, allocations: 0 / 0.4909 GB, free: 32.54 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.976e-06/0.3874, allocations: 0 / 0.4909 GB, free: 32.54 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001161/0.3885, allocations: 0.6779 MB / 0.4915 GB, free: 32.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.3886, allocations: 13.73 kB / 0.4916 GB, free: 32.04 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006788/0.3893, allocations: 127.4 kB / 0.4917 GB, free: 32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006208/0.3899, allocations: 342.1 kB / 0.492 GB, free: 31.78 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.3899, allocations: 32.81 kB / 0.492 GB, free: 31.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.39, allocations: 48.28 kB / 0.4921 GB, free: 31.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000767/0.3908, allocations: 0.6276 MB / 0.4927 GB, free: 31.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.3908, allocations: 3.938 kB / 0.4927 GB, free: 31.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.272e-05/0.3909, allocations: 22.47 kB / 0.4927 GB, free: 31.38 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/0.391, allocations: 27.11 kB / 0.4927 GB, free: 31.38 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006482/0.3916, allocations: 482 kB / 0.4932 GB, free: 31.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002423/0.394, allocations: 2.658 MB / 0.4958 GB, free: 29.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.3944, allocations: 229 kB / 0.496 GB, free: 28.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.3945, allocations: 135.9 kB / 0.4961 GB, free: 28.92 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.437e-05/0.3946, allocations: 6.219 kB / 0.4962 GB, free: 28.92 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.3946, allocations: 38.5 kB / 0.4962 GB, free: 28.88 MB / 446.1 MB Notification: Performance of pre-optimization done (n=27): time 2.524e-06/0.3946, allocations: 0 / 0.4962 GB, free: 28.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=28): time 0.001438/0.3961, allocations: 0.9035 MB / 0.4971 GB, free: 28.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.4e-05/0.3961, allocations: 80.11 kB / 0.4971 GB, free: 28.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.3964, allocations: 322.8 kB / 0.4975 GB, free: 28.12 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.3964, allocations: 29.83 kB / 0.4975 GB, free: 28.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001313/0.3965, allocations: 285.6 kB / 0.4978 GB, free: 27.85 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.958e-05/0.3966, allocations: 112.6 kB / 0.4979 GB, free: 27.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3967, allocations: 93.55 kB / 0.498 GB, free: 27.71 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.001e-05/0.3968, allocations: 345 kB / 0.4983 GB, free: 27.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.3969, allocations: 148 kB / 0.4984 GB, free: 27.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.3972, allocations: 342.3 kB / 0.4987 GB, free: 27.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004659/0.3977, allocations: 0.5199 MB / 0.4993 GB, free: 26.66 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.3977, allocations: 2.906 kB / 0.4993 GB, free: 26.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006293/0.3983, allocations: 0.5351 MB / 0.4998 GB, free: 26.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3983, allocations: 13.06 kB / 0.4998 GB, free: 26.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.3983, allocations: 6.281 kB / 0.4998 GB, free: 26.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.3983, allocations: 9 kB / 0.4998 GB, free: 26.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004009/0.3987, allocations: 117.9 kB / 0.4999 GB, free: 26.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.407e-05/0.3988, allocations: 13.34 kB / 0.4999 GB, free: 26.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.399, allocations: 27.61 kB / 0.5 GB, free: 26.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.431e-05/0.3991, allocations: 26.31 kB / 0.5 GB, free: 26.41 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001866/0.3992, allocations: 220.2 kB / 0.5002 GB, free: 26.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.259e-05/0.3993, allocations: 28.31 kB / 0.5002 GB, free: 26.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005091/0.3998, allocations: 363.4 kB / 0.5006 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/0.3998, allocations: 7.062 kB / 0.5006 GB, free: 26.07 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3998, allocations: 0 / 0.5006 GB, free: 26.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3998, allocations: 7.312 kB / 0.5006 GB, free: 26.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.4009, allocations: 0.7664 MB / 0.5013 GB, free: 25.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4009, allocations: 4.094 kB / 0.5013 GB, free: 25.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002929/0.4012, allocations: 65.3 kB / 0.5014 GB, free: 25.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.4012, allocations: 3.625 kB / 0.5014 GB, free: 25.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.4012, allocations: 15.17 kB / 0.5014 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.4012, allocations: 0 / 0.5014 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.4012, allocations: 3.156 kB / 0.5014 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005954/0.4018, allocations: 0.5838 MB / 0.502 GB, free: 25.29 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.132e-05/0.4018, allocations: 29.67 kB / 0.502 GB, free: 25.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.428e-05/0.4019, allocations: 10.81 kB / 0.502 GB, free: 25.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.4021, allocations: 10.44 kB / 0.502 GB, free: 25.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/0.4021, allocations: 28.97 kB / 0.5021 GB, free: 25.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.4021, allocations: 6.5 kB / 0.5021 GB, free: 25.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.4023, allocations: 216.3 kB / 0.5023 GB, free: 25.13 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4023, allocations: 3.094 kB / 0.5023 GB, free: 25.13 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004221/0.4027, allocations: 92.72 kB / 0.5024 GB, free: 25.12 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.581e-05/0.4028, allocations: 100.4 kB / 0.5025 GB, free: 25.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004958/0.4033, allocations: 356.5 kB / 0.5028 GB, free: 24.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.4033, allocations: 0 / 0.5028 GB, free: 24.91 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.4035, allocations: 136.2 kB / 0.5029 GB, free: 24.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000484/0.4039, allocations: 73.53 kB / 0.503 GB, free: 24.85 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.4054, allocations: 0.9914 MB / 0.504 GB, free: 24.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.4057, allocations: 253.1 kB / 0.5042 GB, free: 24.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002831/0.4059, allocations: 130.3 kB / 0.5043 GB, free: 24.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.157e-05/0.406, allocations: 37.06 kB / 0.5044 GB, free: 24.13 MB / 446.1 MB Notification: Performance of SimCode: time 5.71e-07/0.406, allocations: 0 / 0.5044 GB, free: 24.13 MB / 446.1 MB Notification: Performance of Templates: time 0.007251/0.4133, allocations: 3.253 MB / 0.5075 GB, free: 23.72 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.071486823959276]