Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") translateModel(PowerSystems.Examples.Generic.Test.FixedLoadTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|line.i.1.|line.i.2.|line.p.1.|line.p.2.|line.v.1.|line.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000858/0.000858, allocations: 90.69 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009802/0.0009802, allocations: 185 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1791/0.1791, allocations: 38.09 MB / 330.8 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000299/0.0002994, allocations: 8.875 kB / 400.7 MB, free: 34.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09845/0.09877, allocations: 59.17 MB / 459.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedLoadTest): time 0.003818/0.1026, allocations: 3.345 MB / 463.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.1048, allocations: 1.563 MB / 464.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001875/0.105, allocations: 11.94 kB / 464.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.1051, allocations: 31.77 kB / 464.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006887/0.1058, allocations: 267.1 kB / 465.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003118/0.1062, allocations: 115.7 kB / 465.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005671/0.1067, allocations: 0.5729 MB / 465.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006303/0.1074, allocations: 322.8 kB / 466.1 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.1076, allocations: 123.4 kB / 466.2 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002614/0.1079, allocations: 151.5 kB / 466.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.1079, allocations: 12 kB / 466.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005872/0.1085, allocations: 399 kB / 466.8 MB, free: 144 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.1087, allocations: 91.77 kB / 466.9 MB, free: 52 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001449/0.1088, allocations: 125.1 kB / 467 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005273/0.1093, allocations: 370.8 kB / 467.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1094, allocations: 0 / 467.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1094, allocations: 0 / 467.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1094, allocations: 0 / 467.3 MB, free: 15.56 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0006567/0.11, allocations: 498.6 kB / 467.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.1101, allocations: 8.031 kB / 467.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009328/0.111, allocations: 100.6 kB / 467.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.1113, allocations: 267.7 kB / 468.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.1114, allocations: 12.33 kB / 468.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.81e-05/0.1114, allocations: 20.36 kB / 468.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004939/0.1119, allocations: 329.8 kB / 468.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.1119, allocations: 0 / 468.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.069e-05/0.112, allocations: 11.98 kB / 468.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.518e-05/0.112, allocations: 19.98 kB / 468.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.1125, allocations: 315.7 kB / 468.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.1142, allocations: 1.26 MB / 470.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.1144, allocations: 161 kB / 470.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.1146, allocations: 109.7 kB / 470.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.1146, allocations: 0 / 470.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.1147, allocations: 46.44 kB / 470.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.362e-06/0.1147, allocations: 3.938 kB / 470.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001541/0.1162, allocations: 0.6656 MB / 471.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.1163, allocations: 85.05 kB / 471.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.1165, allocations: 190.4 kB / 471.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.1165, allocations: 29.7 kB / 471.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.287e-05/0.1166, allocations: 152.1 kB / 471.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.754e-05/0.1167, allocations: 63.09 kB / 471.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.222e-05/0.1167, allocations: 29.7 kB / 471.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1169, allocations: 326.8 kB / 472 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.117, allocations: 83.94 kB / 472.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.1172, allocations: 149.4 kB / 472.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000334/0.1175, allocations: 258.5 kB / 472.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1175, allocations: 0 / 472.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006143/0.1182, allocations: 354 kB / 472.8 MB, free: 9.703 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1182, allocations: 10.81 kB / 472.8 MB, free: 9.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.1182, allocations: 4 kB / 472.8 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003847/0.1186, allocations: 84.78 kB / 472.9 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000155/0.1188, allocations: 43.91 kB / 473 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002629/0.1214, allocations: 1.947 MB / 474.9 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.1216, allocations: 19.92 kB / 474.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.1216, allocations: 12.06 kB / 474.9 MB, free: 7.445 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 20 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000182/0.1218, allocations: 162.1 kB / 475.1 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.96e-05/0.1219, allocations: 15.81 kB / 475.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006191/0.1225, allocations: 316.1 kB / 475.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.1225, allocations: 7.938 kB / 475.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.1225, allocations: 0 / 475.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1225, allocations: 4 kB / 475.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.1236, allocations: 0.7464 MB / 476.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1236, allocations: 0 / 476.2 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.1238, allocations: 28.05 kB / 476.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002734/0.124, allocations: 80.78 kB / 476.3 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.1241, allocations: 0 / 476.3 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/0.1259, allocations: 1.83 MB / 478.1 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.126, allocations: 0 / 478.1 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005698/0.1265, allocations: 414.5 kB / 478.5 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.71e-05/0.1266, allocations: 96.86 kB / 478.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.1266, allocations: 4 kB / 478.6 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.1268, allocations: 15.98 kB / 478.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.795e-05/0.1268, allocations: 19.92 kB / 478.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.464e-05/0.1269, allocations: 4 kB / 478.6 MB, free: 3.461 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001176/0.127, allocations: 140.3 kB / 478.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.127, allocations: 0 / 478.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004477/0.1274, allocations: 68 kB / 478.9 MB, free: 3.258 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (16): * Single equations (assignments): 14 * 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 {(2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001187/0.1276, allocations: 99.19 kB / 478.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006344/0.1282, allocations: 374.3 kB / 479.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1282, allocations: 0 / 479.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003787/0.1286, allocations: 261.5 kB / 479.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004113/0.129, allocations: 46.09 kB / 479.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008312/0.1299, allocations: 0.5918 MB / 480.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000341/0.1302, allocations: 0.7599 MB / 481 MB, free: 1.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001205/0.1303, allocations: 45.67 kB / 481 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.167e-05/0.1304, allocations: 23.42 kB / 481 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1304, allocations: 4 kB / 481 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of Templates: time 0.005836/0.1363, allocations: 2.696 MB / 483.7 MB, free: 14.28 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedLoadTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedLoadTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,line.i[1],line.i[2],line.p[1],line.p[2],line.v[1],line.v[2] Variables in the result:line.L,line.R,line.i[1],line.i[2],line.i_start[1],line.i_start[2],line.p[1],line.p[2],line.terminal_p.v[1],line.v[1],line.v[2],line.v_start[1],line.v_start[2],load.P,load.p[1],load.phi,load.v_start[1],load.v_start[2],source.V,source.definiteReference,source.potentialReference,source.terminal.v[1],system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time