Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.001349/0.001349, 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.002047/0.002047, 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.527/1.527, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2359/0.2359, allocations: 38.5 MB / 348.7 MB, free: 2.66 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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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.002103/0.002103, allocations: 59.91 kB / 487.1 MB, free: 22.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1146, allocations: 62.42 MB / 0.5367 GB, free: 7.578 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006709/0.1213, allocations: 4.104 MB / 0.5407 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.1231, allocations: 0.9466 MB / 0.5416 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.1233, allocations: 19.81 kB / 0.5416 GB, free: 2.484 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001935/0.1235, allocations: 43.56 kB / 0.5417 GB, free: 2.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005308/0.1241, allocations: 190.9 kB / 0.5419 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002172/0.1243, allocations: 87.88 kB / 0.5419 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005176/0.1248, allocations: 406.5 kB / 0.5423 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002548/0.125, allocations: 98.19 kB / 0.5424 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000351/0.1254, allocations: 179.3 kB / 0.5426 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003486/0.1257, allocations: 203.2 kB / 0.5428 GB, free: 1.301 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.842e-05/0.1258, allocations: 20 kB / 0.5428 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.858e-05/0.1258, allocations: 20 kB / 0.5428 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002093/0.126, allocations: 91.72 kB / 0.5429 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.1262, allocations: 143.3 kB / 0.5431 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.1267, allocations: 290.7 kB / 0.5433 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.1267, allocations: 0 / 0.5433 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1267, allocations: 3.938 kB / 0.5433 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.402e-05/0.1267, allocations: 0 / 0.5433 GB, free: 0.7422 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001102/0.1278, allocations: 0.5968 MB / 0.5439 GB, free: 96 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.1279, allocations: 16.03 kB / 0.5439 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.58e-05/0.1279, allocations: 54.73 kB / 0.544 GB, free: 16 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.373e-05/0.128, allocations: 34.11 kB / 0.544 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005398/0.1286, allocations: 345.7 kB / 0.5443 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.1286, allocations: 16.44 kB / 0.5444 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.983e-05/0.1286, allocations: 24 kB / 0.5444 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005658/0.1292, allocations: 290.8 kB / 0.5447 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1292, allocations: 0 / 0.5447 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.1292, allocations: 19.98 kB / 0.5447 GB, free: 15.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.1293, allocations: 8 kB / 0.5447 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003142/0.1296, allocations: 176.9 kB / 0.5449 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.1313, allocations: 1.224 MB / 0.5461 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003282/0.1316, allocations: 101.2 kB / 0.5462 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.268e-05/0.1317, allocations: 41.77 kB / 0.5462 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.214e-05/0.1317, allocations: 7.938 kB / 0.5462 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.1317, allocations: 34.56 kB / 0.5462 GB, free: 13.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.1317, allocations: 0 / 0.5462 GB, free: 13.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009698/0.1327, allocations: 0.4893 MB / 0.5467 GB, free: 12.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/0.1328, allocations: 81.11 kB / 0.5468 GB, free: 12.88 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002655/0.133, allocations: 246.7 kB / 0.547 GB, free: 12.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.133, allocations: 29.7 kB / 0.547 GB, free: 12.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.1332, allocations: 208 kB / 0.5472 GB, free: 12.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.1333, allocations: 39.69 kB / 0.5473 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.344e-05/0.1334, allocations: 45.66 kB / 0.5473 GB, free: 12.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1335, allocations: 334.8 kB / 0.5476 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.239e-05/0.1336, allocations: 31.98 kB / 0.5477 GB, free: 11.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.1338, allocations: 132.9 kB / 0.5478 GB, free: 11.76 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.1341, allocations: 193.4 kB / 0.548 GB, free: 11.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1341, allocations: 4 kB / 0.548 GB, free: 11.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003589/0.1345, allocations: 213.4 kB / 0.5482 GB, free: 11.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.1345, allocations: 7.938 kB / 0.5482 GB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1345, allocations: 4 kB / 0.5482 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.1345, allocations: 8 kB / 0.5482 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001764/0.1347, allocations: 39.92 kB / 0.5483 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.1347, allocations: 11.92 kB / 0.5483 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.1348, allocations: 8 kB / 0.5483 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.1348, allocations: 16 kB / 0.5483 GB, free: 11.21 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 (24): * Single equations (assignments): 24 * 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.0001725/0.135, allocations: 153.6 kB / 0.5484 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.348e-05/0.1351, allocations: 31.86 kB / 0.5485 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002628/0.1353, allocations: 123.4 kB / 0.5486 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.1353, allocations: 4 kB / 0.5486 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1353, allocations: 0 / 0.5486 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1353, allocations: 0 / 0.5486 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006288/0.136, allocations: 491.2 kB / 0.5491 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.136, allocations: 0 / 0.5491 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00014/0.1361, allocations: 27.92 kB / 0.5491 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.658e-06/0.1361, allocations: 8.016 kB / 0.5491 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.1361, allocations: 8 kB / 0.5491 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1361, allocations: 0 / 0.5491 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1361, allocations: 0 / 0.5491 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003788/0.1365, allocations: 281 kB / 0.5494 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.293e-05/0.1366, allocations: 97 kB / 0.5495 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.243e-05/0.1366, allocations: 8.062 kB / 0.5495 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.1367, allocations: 8 kB / 0.5495 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.739e-05/0.1368, allocations: 15.92 kB / 0.5495 GB, free: 9.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-06/0.1368, allocations: 4 kB / 0.5495 GB, free: 9.855 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001666/0.1369, allocations: 170 kB / 0.5497 GB, free: 9.691 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1369, allocations: 0 / 0.5497 GB, free: 9.691 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003283/0.1373, allocations: 47.94 kB / 0.5497 GB, free: 9.645 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 (13): * Single equations (assignments): 12 * 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.0006692/0.1379, allocations: 0.8077 MB / 0.5505 GB, free: 8.805 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002533/0.1382, allocations: 108.5 kB / 0.5506 GB, free: 8.699 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1382, allocations: 4.312 kB / 0.5506 GB, free: 8.695 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.628e-05/0.1383, allocations: 43.92 kB / 0.5506 GB, free: 8.652 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004921/0.1388, allocations: 62.52 kB / 0.5507 GB, free: 8.594 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002929/0.1417, allocations: 2.448 MB / 0.5531 GB, free: 5.973 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004528/0.1421, allocations: 0.7753 MB / 0.5538 GB, free: 5.172 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.1423, allocations: 30.28 kB / 0.5539 GB, free: 5.141 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.1424, allocations: 79.41 kB / 0.554 GB, free: 5.062 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1424, allocations: 0 / 0.554 GB, free: 5.062 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0302/0.1726, allocations: 4.638 MB / 0.5585 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.389/8.562, allocations: 13.38 kB / 0.5585 GB, free: 0.5469 MB / 414.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_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_ImpedanceOneTerm.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! Error: Could not read variable meter.i in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable meter.i from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! Error: Could not read variable meter.p in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable meter.p from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! Error: Could not read variable meter.v in file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv. Warning: Get data of variable meter.v from file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.640913177281618]