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: "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.FixedCurrentTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.002146/0.002146, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.417/1.417, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1812/0.1812, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002285/0.002286, allocations: 61.8 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1139, allocations: 58.05 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.004776/0.1187, allocations: 3.461 MB / 460.4 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.1208, allocations: 1.504 MB / 461.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001779/0.121, allocations: 8 kB / 461.9 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007992/0.1218, allocations: 254.9 kB / 462.2 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006564/0.1225, allocations: 275 kB / 462.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003219/0.1228, allocations: 131.6 kB / 462.6 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003833/0.1232, allocations: 339 kB / 462.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002859/0.1235, allocations: 137.9 kB / 463.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002545/0.1238, allocations: 143.4 kB / 463.2 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002486/0.124, allocations: 163.4 kB / 463.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.33e-05/0.1241, allocations: 16 kB / 463.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005334/0.1246, allocations: 327.2 kB / 463.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.1247, allocations: 103.8 kB / 463.8 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000137/0.1249, allocations: 107.4 kB / 463.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005954/0.1255, allocations: 355 kB / 464.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1255, allocations: 0 / 464.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1255, allocations: 0 / 464.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.1255, allocations: 4 kB / 464.2 MB, free: 0.6562 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.0008837/0.1264, allocations: 0.5063 MB / 464.7 MB, free: 104 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.262e-05/0.1265, allocations: 15.89 kB / 464.8 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.759e-05/0.1266, allocations: 62.64 kB / 464.8 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/0.1277, allocations: 96.64 kB / 464.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.1281, allocations: 255.8 kB / 465.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.324e-05/0.1281, allocations: 20.31 kB / 465.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.84e-05/0.1282, allocations: 20.38 kB / 465.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005296/0.1287, allocations: 317.8 kB / 465.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.1288, allocations: 4 kB / 465.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.1288, allocations: 8 kB / 465.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.174e-05/0.1289, allocations: 19.98 kB / 465.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004554/0.1293, allocations: 283.8 kB / 465.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.1312, allocations: 1.275 MB / 467.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004573/0.1316, allocations: 237 kB / 467.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.1318, allocations: 97.72 kB / 467.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.1318, allocations: 0 / 467.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.1319, allocations: 38.56 kB / 467.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.1319, allocations: 3.938 kB / 467.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009834/0.1329, allocations: 443.5 kB / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.694e-05/0.133, allocations: 77.11 kB / 468 MB, free: 12.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002849/0.1333, allocations: 198.3 kB / 468.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.1333, allocations: 29.7 kB / 468.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.1334, allocations: 159.8 kB / 468.4 MB, free: 12.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.788e-05/0.1335, allocations: 63.17 kB / 468.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.1337, allocations: 45.7 kB / 468.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.1339, allocations: 331 kB / 468.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.134, allocations: 91.89 kB / 468.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.1343, allocations: 158.1 kB / 469 MB, free: 11.53 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003962/0.1347, allocations: 270.3 kB / 469.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1347, allocations: 4 kB / 469.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004241/0.1351, allocations: 291.7 kB / 469.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1351, allocations: 11.94 kB / 469.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.1352, allocations: 3.938 kB / 469.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.1352, allocations: 4 kB / 469.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.1354, allocations: 56.19 kB / 469.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.1355, allocations: 8 kB / 469.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.1356, allocations: 11.98 kB / 469.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.1356, allocations: 15.98 kB / 469.7 MB, free: 10.84 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.0001345/0.1358, allocations: 149.8 kB / 469.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/0.1358, allocations: 19.72 kB / 469.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003543/0.1362, allocations: 231.3 kB / 470.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.1362, allocations: 4 kB / 470.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1362, allocations: 0 / 470.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.1362, allocations: 4 kB / 470.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.1376, allocations: 0.9553 MB / 471 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.1376, allocations: 4 kB / 471.1 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.1377, allocations: 40.41 kB / 471.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.1378, allocations: 8 kB / 471.1 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.1378, allocations: 11.94 kB / 471.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.76e-06/0.1378, allocations: 4 kB / 471.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.798e-06/0.1378, allocations: 11.94 kB / 471.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004688/0.1383, allocations: 407.5 kB / 471.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.911e-05/0.1384, allocations: 104.9 kB / 471.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.909e-05/0.1384, allocations: 7.938 kB / 471.6 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001752/0.1386, allocations: 15.98 kB / 471.7 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.789e-05/0.1387, allocations: 27.86 kB / 471.7 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.1387, allocations: 8 kB / 471.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001285/0.1388, allocations: 155 kB / 471.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1388, allocations: 0 / 471.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003812/0.1392, allocations: 48 kB / 471.9 MB, free: 8.445 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.0006606/0.1399, allocations: 0.9519 MB / 472.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003526/0.1403, allocations: 227.6 kB / 473.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1403, allocations: 0 / 473.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.1404, allocations: 93.02 kB / 473.1 MB, free: 7.105 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000455/0.1409, allocations: 51.2 kB / 473.2 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002961/0.1438, allocations: 2.674 MB / 475.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.1442, allocations: 0.7593 MB / 476.6 MB, free: 3.367 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001651/0.1444, allocations: 65.42 kB / 476.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.1445, allocations: 63.41 kB / 476.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1445, allocations: 4 kB / 476.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.1651, allocations: 4.031 MB / 480.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.571/7.736, allocations: 8.016 kB / 480.8 MB, free: 15.27 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_Generic_Test_FixedCurrentTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.FixedCurrentTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches