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.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.001335/0.001335, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.002183/0.002183, allocations: 204.3 kB / 20.74 MB, free: 2.316 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.549/1.549, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1893/0.1893, allocations: 38.51 MB / 348.7 MB, free: 2.691 MB / 270.1 MB " [Timeout remaining time 180] 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.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: "" <> 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"}) [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.001902/0.001902, allocations: 67.89 kB / 487.1 MB, free: 22.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1124, allocations: 62.42 MB / 0.5367 GB, free: 7.617 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.FixedCurrentTest): time 0.005185/0.1176, allocations: 3.516 MB / 0.5401 GB, free: 4.086 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.1199, allocations: 1.543 MB / 0.5416 GB, free: 2.535 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.12, allocations: 11.88 kB / 0.5416 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008186/0.1208, allocations: 266.9 kB / 0.5419 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005847/0.1214, allocations: 271 kB / 0.5421 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002986/0.1217, allocations: 131.6 kB / 0.5423 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004147/0.1221, allocations: 343 kB / 0.5426 GB, free: 1.531 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002601/0.1224, allocations: 117.7 kB / 0.5427 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.1227, allocations: 171.3 kB / 0.5429 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002607/0.1229, allocations: 163.4 kB / 0.543 GB, free: 1.09 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.123, allocations: 16 kB / 0.543 GB, free: 1.074 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000491/0.1235, allocations: 339.2 kB / 0.5434 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.1236, allocations: 95.7 kB / 0.5434 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000122/0.1237, allocations: 119.4 kB / 0.5436 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004864/0.1242, allocations: 358.8 kB / 0.5439 GB, free: 184 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1242, allocations: 0 / 0.5439 GB, free: 184 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1242, allocations: 0 / 0.5439 GB, free: 184 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1242, allocations: 0 / 0.5439 GB, free: 184 kB / 398.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.0007396/0.1249, allocations: 0.5217 MB / 0.5444 GB, free: 15.61 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.125, allocations: 12.03 kB / 0.5444 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.425e-05/0.125, allocations: 54.73 kB / 0.5445 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009518/0.126, allocations: 92.69 kB / 0.5446 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003549/0.1263, allocations: 275.8 kB / 0.5448 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.081e-05/0.1264, allocations: 16.38 kB / 0.5448 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.1264, allocations: 12.38 kB / 0.5449 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.127, allocations: 325.7 kB / 0.5452 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.601e-05/0.127, allocations: 4 kB / 0.5452 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.422e-05/0.127, allocations: 4 kB / 0.5452 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.905e-05/0.1271, allocations: 23.98 kB / 0.5452 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004639/0.1275, allocations: 299.6 kB / 0.5455 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001833/0.1294, allocations: 1.264 MB / 0.5467 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004635/0.1298, allocations: 217.1 kB / 0.5469 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.13, allocations: 97.66 kB / 0.547 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.182e-05/0.13, allocations: 8 kB / 0.547 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.13, allocations: 34.56 kB / 0.5471 GB, free: 12.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.13, allocations: 3.938 kB / 0.5471 GB, free: 12.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008612/0.1309, allocations: 444.9 kB / 0.5475 GB, free: 12.26 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.131, allocations: 77.11 kB / 0.5476 GB, free: 12.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.1312, allocations: 198.7 kB / 0.5477 GB, free: 11.96 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.1312, allocations: 29.83 kB / 0.5478 GB, free: 11.93 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.1313, allocations: 172.1 kB / 0.5479 GB, free: 11.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.591e-05/0.1314, allocations: 59.48 kB / 0.548 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.064e-05/0.1314, allocations: 45.7 kB / 0.548 GB, free: 11.64 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1316, allocations: 330.8 kB / 0.5484 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.1318, allocations: 91.88 kB / 0.5484 GB, free: 11.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.132, allocations: 156.5 kB / 0.5486 GB, free: 11.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003604/0.1323, allocations: 260.4 kB / 0.5488 GB, free: 10.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1323, allocations: 0 / 0.5488 GB, free: 10.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0004486/0.1328, allocations: 299.7 kB / 0.5491 GB, free: 10.46 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.1328, allocations: 8 kB / 0.5491 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.1328, allocations: 7.875 kB / 0.5491 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.1328, allocations: 8 kB / 0.5492 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.1331, allocations: 47.97 kB / 0.5492 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.1331, allocations: 11.92 kB / 0.5492 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.1332, allocations: 15.98 kB / 0.5492 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.1332, allocations: 8 kB / 0.5492 GB, free: 10.36 MB / 414.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.0001571/0.1334, allocations: 157.8 kB / 0.5494 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.74e-05/0.1334, allocations: 23.89 kB / 0.5494 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004122/0.1339, allocations: 227.3 kB / 0.5496 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1339, allocations: 4 kB / 0.5496 GB, free: 9.93 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1339, allocations: 0 / 0.5496 GB, free: 9.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1339, allocations: 0 / 0.5496 GB, free: 9.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.1353, allocations: 0.9557 MB / 0.5506 GB, free: 8.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.1353, allocations: 7.938 kB / 0.5506 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001438/0.1354, allocations: 35.91 kB / 0.5506 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.394e-05/0.1354, allocations: 8 kB / 0.5506 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.1355, allocations: 7.938 kB / 0.5506 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.1355, allocations: 7.938 kB / 0.5506 GB, free: 8.805 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.1355, allocations: 4 kB / 0.5506 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004837/0.136, allocations: 428 kB / 0.551 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.342e-05/0.136, allocations: 97.02 kB / 0.5511 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.842e-05/0.1361, allocations: 19.92 kB / 0.5511 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.1362, allocations: 8 kB / 0.5512 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.1363, allocations: 23.86 kB / 0.5512 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.1363, allocations: 8 kB / 0.5512 GB, free: 8.148 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001508/0.1364, allocations: 154.7 kB / 0.5513 GB, free: 7.996 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1364, allocations: 3.938 kB / 0.5513 GB, free: 7.992 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003863/0.1368, allocations: 60 kB / 0.5514 GB, free: 7.934 MB / 414.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.0008268/0.1377, allocations: 0.9405 MB / 0.5523 GB, free: 6.918 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003919/0.138, allocations: 211.5 kB / 0.5525 GB, free: 6.711 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1381, allocations: 0.5625 kB / 0.5525 GB, free: 6.711 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.1382, allocations: 103.8 kB / 0.5526 GB, free: 6.609 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004554/0.1387, allocations: 46.44 kB / 0.5527 GB, free: 6.566 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003416/0.1421, allocations: 2.691 MB / 0.5553 GB, free: 3.641 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.1426, allocations: 0.7671 MB / 0.556 GB, free: 2.848 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001416/0.1427, allocations: 49.5 kB / 0.5561 GB, free: 2.801 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001483/0.1429, allocations: 71.34 kB / 0.5561 GB, free: 2.73 MB / 414.1 MB Notification: Performance of SimCode: time 4.7e-07/0.1429, allocations: 4 kB / 0.5562 GB, free: 2.727 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.1681, allocations: 4.176 MB / 0.5602 GB, free: 14.65 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.318/8.486, allocations: 2.531 kB / 0.5602 GB, free: 14.65 MB / 430.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.i[1] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.i[1] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.i[2] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.i[2] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.p[2] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.p[2] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.v[1] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.v[1] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! Error: Could not read variable line.v[2] in file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv. Warning: Get data of variable line.v[2] from file PowerSystems_latest_PowerSystems.Examples.Generic.Test.FixedCurrentTest_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.546097156126052]