Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.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.FixedCurrentTest,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.FixedCurrentTest") translateModel(PowerSystems.Examples.Generic.Test.FixedCurrentTest,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.FixedCurrentTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001411/0.001412, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.312/1.312, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1983/0.1983, allocations: 38.04 MB / 329.7 MB, free: 8.855 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 68.38 kB / 398.8 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1027, allocations: 58.06 MB / 456.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004652/0.1074, allocations: 3.461 MB / 460.3 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.1094, allocations: 1.5 MB / 461.8 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.1095, allocations: 11.94 kB / 461.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000795/0.1103, allocations: 251 kB / 462.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005318/0.1109, allocations: 274.9 kB / 462.4 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.1112, allocations: 131.6 kB / 462.5 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003423/0.1115, allocations: 343 kB / 462.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002609/0.1118, allocations: 133.9 kB / 462.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002031/0.112, allocations: 151.4 kB / 463.1 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.1122, allocations: 147.5 kB / 463.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.1123, allocations: 16 kB / 463.3 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004927/0.1128, allocations: 335.1 kB / 463.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.1129, allocations: 99.75 kB / 463.7 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.113, allocations: 103.4 kB / 463.8 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004137/0.1134, allocations: 359 kB / 464.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1134, allocations: 0 / 464.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1134, allocations: 0 / 464.1 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1135, allocations: 0 / 464.1 MB, free: 0.7656 MB / 334.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.0006322/0.1141, allocations: 0.522 MB / 464.7 MB, free: 200 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.1141, allocations: 8.031 kB / 464.7 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000809/0.1149, allocations: 92.55 kB / 464.8 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.1152, allocations: 259.8 kB / 465 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.1153, allocations: 20.31 kB / 465 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.842e-05/0.1153, allocations: 12.38 kB / 465 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000459/0.1158, allocations: 322 kB / 465.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.1158, allocations: 11.94 kB / 465.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.879e-05/0.1158, allocations: 11.98 kB / 465.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-05/0.1159, allocations: 19.98 kB / 465.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004171/0.1163, allocations: 291.7 kB / 465.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001601/0.1179, allocations: 1.271 MB / 467 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000513/0.1184, allocations: 233 kB / 467.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.1186, allocations: 97.73 kB / 467.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.1186, allocations: 4 kB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.675e-05/0.1187, allocations: 34.56 kB / 467.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.493e-06/0.1187, allocations: 4 kB / 467.3 MB, free: 13.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007602/0.1194, allocations: 443.6 kB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.1195, allocations: 81.11 kB / 467.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.1197, allocations: 198.3 kB / 468 MB, free: 12.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.1197, allocations: 29.7 kB / 468.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.567e-05/0.1198, allocations: 151.9 kB / 468.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.1199, allocations: 59.11 kB / 468.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.12, allocations: 53.77 kB / 468.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1201, allocations: 330.8 kB / 468.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.1203, allocations: 83.95 kB / 468.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.1205, allocations: 160.5 kB / 468.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003341/0.1208, allocations: 267.7 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.1208, allocations: 4 kB / 469.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000409/0.1212, allocations: 293.1 kB / 469.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.1213, allocations: 7.984 kB / 469.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1213, allocations: 4 kB / 469.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.751e-05/0.1213, allocations: 8.219 kB / 469.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002437/0.1215, allocations: 55.91 kB / 469.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.1216, allocations: 4 kB / 469.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.1217, allocations: 11.98 kB / 469.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.1217, allocations: 12 kB / 469.5 MB, free: 11.01 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 (27): * Single equations (assignments): 27 * 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.0001374/0.1219, allocations: 153.8 kB / 469.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.302e-05/0.1219, allocations: 15.81 kB / 469.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003846/0.1223, allocations: 231.3 kB / 469.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1223, allocations: 8 kB / 469.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.1223, allocations: 0 / 469.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.1223, allocations: 3.984 kB / 469.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.1237, allocations: 0.9519 MB / 470.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.1237, allocations: 4 kB / 470.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001379/0.1238, allocations: 39.95 kB / 470.9 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1238, allocations: 4 kB / 470.9 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.883e-05/0.1239, allocations: 15.94 kB / 470.9 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.356e-06/0.1239, allocations: 15.86 kB / 471 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.1239, allocations: 8 kB / 471 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004354/0.1243, allocations: 411.8 kB / 471.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.291e-05/0.1244, allocations: 100.8 kB / 471.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.8e-05/0.1245, allocations: 15.98 kB / 471.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.1246, allocations: 11.92 kB / 471.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.628e-05/0.1247, allocations: 27.92 kB / 471.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.1247, allocations: 11.94 kB / 471.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.1248, allocations: 151 kB / 471.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1248, allocations: 0 / 471.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003471/0.1252, allocations: 52 kB / 471.7 MB, free: 8.605 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (18): * Single equations (assignments): 17 * 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 9.2e-05/0.1253, allocations: 111.2 kB / 471.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003705/0.1256, allocations: 223.6 kB / 472.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1257, allocations: 0 / 472.1 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001759/0.1258, allocations: 97.27 kB / 472.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004684/0.1263, allocations: 49.42 kB / 472.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000861/0.1272, allocations: 0.5606 MB / 472.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.1275, allocations: 0.7632 MB / 473.5 MB, free: 6.711 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001358/0.1276, allocations: 53.5 kB / 473.6 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.179e-05/0.1277, allocations: 23.42 kB / 473.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1277, allocations: 0 / 473.6 MB, free: 6.629 MB / 350.1 MB Notification: Performance of Templates: time 0.004586/0.1323, allocations: 1.874 MB / 475.5 MB, free: 4.758 MB / 350.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches