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.001169/0.00117, allocations: 112.2 kB / 16.51 MB, free: 6.715 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.001358/0.001358, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.39/1.39, allocations: 222.9 MB / 241.1 MB, free: 15.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1724/0.1724, allocations: 38.04 MB / 329.3 MB, free: 9.07 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 65.97 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1066, allocations: 58.06 MB / 456.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005158/0.1118, allocations: 3.709 MB / 459.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002253/0.1141, allocations: 1.578 MB / 461.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.1143, allocations: 7.938 kB / 461.5 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008882/0.1152, allocations: 237.1 kB / 461.7 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006181/0.1158, allocations: 259.2 kB / 461.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.1162, allocations: 119.7 kB / 462.1 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005907/0.1168, allocations: 0.5651 MB / 462.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004035/0.1172, allocations: 142 kB / 462.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.1174, allocations: 127.4 kB / 462.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002269/0.1177, allocations: 163.4 kB / 463 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.743e-05/0.1177, allocations: 12 kB / 463.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006038/0.1183, allocations: 403.1 kB / 463.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001208/0.1185, allocations: 103.7 kB / 463.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001181/0.1186, allocations: 99.47 kB / 463.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004354/0.119, allocations: 378.8 kB / 464 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.119, allocations: 0 / 464 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.119, allocations: 0 / 464 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1191, allocations: 0 / 464 MB, free: 0.6484 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.0007786/0.1198, allocations: 0.522 MB / 464.5 MB, free: 80 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.1199, allocations: 8.031 kB / 464.5 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009815/0.1209, allocations: 88.64 kB / 464.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003239/0.1212, allocations: 266.6 kB / 464.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.581e-05/0.1213, allocations: 20.31 kB / 464.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/0.1213, allocations: 12.38 kB / 464.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005016/0.1218, allocations: 321.8 kB / 465.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.1218, allocations: 11.92 kB / 465.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/0.1219, allocations: 4 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.422e-05/0.1219, allocations: 19.98 kB / 465.3 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004318/0.1223, allocations: 287.8 kB / 465.6 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.1241, allocations: 1.275 MB / 466.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000452/0.1245, allocations: 229.1 kB / 467.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.1247, allocations: 101.7 kB / 467.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.1247, allocations: 4 kB / 467.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.1248, allocations: 38.55 kB / 467.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.964e-06/0.1248, allocations: 0 / 467.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009178/0.1257, allocations: 443.5 kB / 467.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.1258, allocations: 85.05 kB / 467.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.126, allocations: 198.3 kB / 467.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.126, allocations: 29.7 kB / 467.9 MB, free: 12.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1261, allocations: 155.8 kB / 468.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.549e-05/0.1262, allocations: 63.31 kB / 468.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.796e-05/0.1263, allocations: 49.69 kB / 468.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1264, allocations: 326.8 kB / 468.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.1266, allocations: 83.95 kB / 468.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001913/0.1268, allocations: 162.2 kB / 468.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/0.1271, allocations: 260.3 kB / 469 MB, free: 11.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.1271, allocations: 0 / 469 MB, free: 11.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004357/0.1276, allocations: 299.5 kB / 469.3 MB, free: 11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1276, allocations: 4.281 kB / 469.3 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1276, allocations: 11.94 kB / 469.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1276, allocations: 4 kB / 469.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002451/0.1279, allocations: 51.91 kB / 469.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.1279, allocations: 4 kB / 469.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/0.128, allocations: 11.98 kB / 469.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.164e-05/0.1281, allocations: 12 kB / 469.4 MB, free: 10.91 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.0001708/0.1283, allocations: 153.8 kB / 469.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.816e-05/0.1283, allocations: 19.72 kB / 469.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004026/0.1287, allocations: 231.4 kB / 469.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.1287, allocations: 7.984 kB / 469.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1287, allocations: 0 / 469.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.1288, allocations: 7.922 kB / 469.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.1301, allocations: 0.9519 MB / 470.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/0.1302, allocations: 15.88 kB / 470.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.1303, allocations: 31.98 kB / 470.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.1303, allocations: 4 kB / 470.8 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.1304, allocations: 19.92 kB / 470.8 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.1304, allocations: 7.938 kB / 470.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/0.1304, allocations: 4 kB / 470.8 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.1309, allocations: 415.3 kB / 471.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.275e-05/0.131, allocations: 100.8 kB / 471.3 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.576e-05/0.131, allocations: 15.94 kB / 471.4 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001706/0.1312, allocations: 11.98 kB / 471.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.1313, allocations: 27.86 kB / 471.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.1313, allocations: 12 kB / 471.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001506/0.1315, allocations: 151 kB / 471.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.365e-06/0.1315, allocations: 0 / 471.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004/0.1319, allocations: 55.94 kB / 471.6 MB, free: 8.488 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 0.0001381/0.132, allocations: 103.2 kB / 471.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003782/0.1324, allocations: 207.7 kB / 471.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1324, allocations: 3.938 kB / 471.9 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.1326, allocations: 101.2 kB / 472 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005108/0.1331, allocations: 39.97 kB / 472.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.1343, allocations: 0.6446 MB / 472.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.1347, allocations: 0.7596 MB / 473.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001513/0.1349, allocations: 49.5 kB / 473.5 MB, free: 6.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.966e-05/0.135, allocations: 23.42 kB / 473.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.135, allocations: 0 / 473.5 MB, free: 6.449 MB / 350.1 MB Notification: Performance of Templates: time 0.005113/0.1401, allocations: 1.786 MB / 475.3 MB, free: 4.664 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