Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.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.001575/0.001575, allocations: 124.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.00174/0.00174, allocations: 203.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.503/1.503, 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.1854/0.1854, allocations: 38.51 MB / 348.7 MB, free: 2.668 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.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Source,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source",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.001947/0.001947, allocations: 68.12 kB / 487.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1108, allocations: 62.41 MB / 0.5367 GB, free: 7.574 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Source): time 0.005883/0.1167, allocations: 3.973 MB / 0.5406 GB, free: 3.582 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.1182, allocations: 0.9154 MB / 0.5415 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.1183, allocations: 15.88 kB / 0.5415 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.1185, allocations: 47.56 kB / 0.5415 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004967/0.119, allocations: 171.1 kB / 0.5417 GB, free: 2.434 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.1192, allocations: 75.84 kB / 0.5417 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004422/0.1196, allocations: 378.7 kB / 0.5421 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.1198, allocations: 72.53 kB / 0.5422 GB, free: 1.918 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.1201, allocations: 179.3 kB / 0.5423 GB, free: 1.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002807/0.1204, allocations: 171.3 kB / 0.5425 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.1204, allocations: 16 kB / 0.5425 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.021e-05/0.1205, allocations: 20 kB / 0.5425 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001016/0.1206, allocations: 79.72 kB / 0.5426 GB, free: 1.461 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.1207, allocations: 131.3 kB / 0.5427 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003298/0.121, allocations: 254.8 kB / 0.543 GB, free: 1.082 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.121, allocations: 4 kB / 0.543 GB, free: 1.078 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.121, allocations: 0 / 0.543 GB, free: 1.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.121, allocations: 0 / 0.543 GB, free: 1.078 MB / 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.0009449/0.122, allocations: 0.5619 MB / 0.5435 GB, free: 480 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.122, allocations: 8.031 kB / 0.5436 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.497e-05/0.1221, allocations: 58.73 kB / 0.5436 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.838e-05/0.1222, allocations: 28.75 kB / 0.5436 GB, free: 376 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005315/0.1227, allocations: 335.9 kB / 0.544 GB, free: 16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.249e-05/0.1227, allocations: 20.38 kB / 0.544 GB, free: 15.97 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.78e-05/0.1228, allocations: 16 kB / 0.544 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004263/0.1232, allocations: 270 kB / 0.5442 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.1232, allocations: 3.938 kB / 0.5442 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.1232, allocations: 11.94 kB / 0.5443 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1232, allocations: 4 kB / 0.5443 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002832/0.1235, allocations: 171.8 kB / 0.5444 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.1249, allocations: 1.171 MB / 0.5456 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.1251, allocations: 77.11 kB / 0.5456 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.427e-05/0.1251, allocations: 29.81 kB / 0.5457 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.1251, allocations: 4 kB / 0.5457 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.1252, allocations: 34.5 kB / 0.5457 GB, free: 14.04 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.1252, allocations: 4 kB / 0.5457 GB, free: 14.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007868/0.126, allocations: 421.4 kB / 0.5461 GB, free: 13.57 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/0.126, allocations: 77.11 kB / 0.5462 GB, free: 13.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002643/0.1263, allocations: 242.6 kB / 0.5464 GB, free: 13.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.1263, allocations: 25.7 kB / 0.5464 GB, free: 13.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.1265, allocations: 196 kB / 0.5466 GB, free: 13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.955e-05/0.1265, allocations: 35.86 kB / 0.5467 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.709e-05/0.1266, allocations: 49.64 kB / 0.5467 GB, free: 12.91 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1267, allocations: 330.8 kB / 0.547 GB, free: 12.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.533e-05/0.1268, allocations: 24 kB / 0.5471 GB, free: 12.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.1269, allocations: 123.6 kB / 0.5472 GB, free: 12.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.1271, allocations: 168.7 kB / 0.5473 GB, free: 12.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.1271, allocations: 0 / 0.5473 GB, free: 12.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002779/0.1274, allocations: 177.2 kB / 0.5475 GB, free: 12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.1274, allocations: 8.438 kB / 0.5475 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.1275, allocations: 11.94 kB / 0.5475 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.1275, allocations: 4 kB / 0.5475 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000157/0.1276, allocations: 43.92 kB / 0.5476 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.1276, allocations: 4 kB / 0.5476 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.673e-05/0.1277, allocations: 4 kB / 0.5476 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.1277, allocations: 15.98 kB / 0.5476 GB, free: 11.91 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (22): * Single equations (assignments): 22 * 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.0001476/0.1279, allocations: 153.6 kB / 0.5477 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.356e-05/0.1279, allocations: 23.86 kB / 0.5478 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001764/0.1281, allocations: 103.2 kB / 0.5479 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.1281, allocations: 4 kB / 0.5479 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1281, allocations: 0 / 0.5479 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.1281, allocations: 0 / 0.5479 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004927/0.1286, allocations: 431.1 kB / 0.5483 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1286, allocations: 4 kB / 0.5483 GB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.096e-05/0.1287, allocations: 12 kB / 0.5483 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1287, allocations: 0 / 0.5483 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.1287, allocations: 4 kB / 0.5483 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1287, allocations: 8.016 kB / 0.5483 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1287, allocations: 0 / 0.5483 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003155/0.129, allocations: 233.1 kB / 0.5485 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.55e-05/0.1291, allocations: 93 kB / 0.5486 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.1291, allocations: 4 kB / 0.5486 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.747e-05/0.1292, allocations: 4.5 kB / 0.5486 GB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.526e-05/0.1293, allocations: 15.92 kB / 0.5486 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.824e-06/0.1293, allocations: 4 kB / 0.5486 GB, free: 10.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001714/0.1294, allocations: 166 kB / 0.5488 GB, free: 10.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1294, allocations: 4 kB / 0.5488 GB, free: 10.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000312/0.1297, allocations: 36 kB / 0.5488 GB, free: 10.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (9): * Single equations (assignments): 8 * 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.000632/0.1304, allocations: 0.7689 MB / 0.5496 GB, free: 9.719 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002052/0.1306, allocations: 83.78 kB / 0.5497 GB, free: 9.637 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1306, allocations: 0.9375 kB / 0.5497 GB, free: 9.637 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.697e-05/0.1306, allocations: 31.98 kB / 0.5497 GB, free: 9.605 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.1311, allocations: 62.72 kB / 0.5498 GB, free: 9.551 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.1339, allocations: 2.298 MB / 0.552 GB, free: 7.074 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004268/0.1343, allocations: 0.7558 MB / 0.5527 GB, free: 6.293 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.782e-05/0.1344, allocations: 30.38 kB / 0.5528 GB, free: 6.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.1345, allocations: 79.34 kB / 0.5528 GB, free: 6.184 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1345, allocations: 0 / 0.5528 GB, free: 6.184 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.1632, allocations: 4.179 MB / 0.5569 GB, free: 2.121 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.468/8.631, allocations: 10.91 kB / 0.5569 GB, free: 2.113 MB / 414.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00027027 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Source.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Source.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv failed! Error: Could not read variable meter.i in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv. Warning: Get data of variable meter.i from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv failed! Error: Could not read variable meter.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv. Warning: Get data of variable meter.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv failed! Error: Could not read variable meter.v in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv. Warning: Get data of variable meter.v from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Source_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.604921543039382]