Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.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.001911/0.001911, 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.002567/0.002567, 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.596/1.596, 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.197/0.197, allocations: 38.51 MB / 348.7 MB, free: 2.652 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.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3",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.002074/0.002074, allocations: 71.89 kB / 487.2 MB, free: 22.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1461, allocations: 62.42 MB / 0.5367 GB, free: 7.672 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3): time 0.004223/0.1503, allocations: 2.071 MB / 0.5387 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.1514, allocations: 0.5572 MB / 0.5393 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.446e-05/0.1514, allocations: 7.938 kB / 0.5393 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.1516, allocations: 7.922 kB / 0.5393 GB, free: 5.012 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.1517, allocations: 27.91 kB / 0.5393 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000493/0.1522, allocations: 67.78 kB / 0.5394 GB, free: 4.918 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001845/0.1524, allocations: 55.77 kB / 0.5394 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.491e-05/0.1525, allocations: 4 kB / 0.5394 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001897/0.1526, allocations: 39.83 kB / 0.5395 GB, free: 4.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.682e-05/0.1527, allocations: 27.84 kB / 0.5395 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.384e-05/0.1527, allocations: 4 kB / 0.5395 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002291/0.153, allocations: 87.84 kB / 0.5396 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1531, allocations: 47.84 kB / 0.5396 GB, free: 4.656 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.145e-05/0.1531, allocations: 43.56 kB / 0.5397 GB, free: 4.613 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003108/0.1534, allocations: 155.5 kB / 0.5398 GB, free: 4.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1534, allocations: 3.938 kB / 0.5398 GB, free: 4.457 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.1535, allocations: 0 / 0.5398 GB, free: 4.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.1535, allocations: 0 / 0.5398 GB, free: 4.457 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.0007174/0.1542, allocations: 484.2 kB / 0.5403 GB, free: 3.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.22e-05/0.1543, allocations: 12.03 kB / 0.5403 GB, free: 3.918 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.284e-05/0.1543, allocations: 50.73 kB / 0.5403 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.188e-05/0.1544, allocations: 20.8 kB / 0.5404 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.1547, allocations: 199.8 kB / 0.5405 GB, free: 3.609 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.1547, allocations: 0 / 0.5405 GB, free: 3.609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.1547, allocations: 4 kB / 0.5405 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002419/0.1549, allocations: 130.6 kB / 0.5407 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.155, allocations: 0 / 0.5407 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.155, allocations: 0 / 0.5407 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.155, allocations: 7.922 kB / 0.5407 GB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001213/0.1551, allocations: 92.3 kB / 0.5408 GB, free: 3.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002689/0.1554, allocations: 210 kB / 0.541 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.1555, allocations: 106.9 kB / 0.5411 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.1557, allocations: 97.19 kB / 0.5412 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.1557, allocations: 0 / 0.5412 GB, free: 2.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.869e-05/0.1557, allocations: 30.56 kB / 0.5412 GB, free: 2.871 MB / 398.1 MB Notification: Performance of pre-optimization done (n=40): time 1.303e-06/0.1557, allocations: 4 kB / 0.5412 GB, free: 2.867 MB / 398.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007289/0.1564, allocations: 484 kB / 0.5417 GB, free: 2.383 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.836e-05/0.1565, allocations: 105.1 kB / 0.5418 GB, free: 2.262 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.1567, allocations: 146.4 kB / 0.5419 GB, free: 2.102 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.1567, allocations: 25.7 kB / 0.5419 GB, free: 2.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.733e-05/0.1568, allocations: 96.8 kB / 0.542 GB, free: 1.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.1569, allocations: 138.7 kB / 0.5421 GB, free: 1.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.037e-05/0.157, allocations: 33.7 kB / 0.5422 GB, free: 1.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.1571, allocations: 338.8 kB / 0.5425 GB, free: 1.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.1572, allocations: 92 kB / 0.5426 GB, free: 1.367 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.953e-05/0.1573, allocations: 100.9 kB / 0.5427 GB, free: 1.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.1577, allocations: 364.3 kB / 0.543 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1577, allocations: 4 kB / 0.543 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003983/0.1581, allocations: 319.1 kB / 0.5433 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.1582, allocations: 89.62 kB / 0.5434 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1582, allocations: 0 / 0.5434 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.1582, allocations: 0 / 0.5434 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.646e-06/0.1583, allocations: 4 kB / 0.5434 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.1583, allocations: 0 / 0.5434 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.962e-05/0.1583, allocations: 23.91 kB / 0.5435 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.1583, allocations: 8 kB / 0.5435 GB, free: 452 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0002395/0.1586, allocations: 231.4 kB / 0.5437 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.704e-05/0.1586, allocations: 31.8 kB / 0.5437 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.1587, allocations: 9.953 kB / 0.5437 GB, free: 156 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.1587, allocations: 4 kB / 0.5437 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1587, allocations: 0 / 0.5437 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1587, allocations: 0 / 0.5437 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.1589, allocations: 229.3 kB / 0.5439 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1589, allocations: 4 kB / 0.5439 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.1589, allocations: 0 / 0.5439 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1589, allocations: 0 / 0.5439 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.1589, allocations: 8 kB / 0.544 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1589, allocations: 3.938 kB / 0.544 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1589, allocations: 0 / 0.544 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.16, allocations: 0.9043 MB / 0.5448 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.363e-05/0.1601, allocations: 100.9 kB / 0.5449 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.118e-05/0.1601, allocations: 8.031 kB / 0.5449 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.75e-05/0.1601, allocations: 8 kB / 0.545 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.142e-05/0.1602, allocations: 4 kB / 0.545 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.855e-05/0.1602, allocations: 8 kB / 0.545 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001009/0.1603, allocations: 122 kB / 0.5451 GB, free: 14.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1603, allocations: 0 / 0.5451 GB, free: 14.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002982/0.1606, allocations: 63.94 kB / 0.5451 GB, free: 14.61 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 Backend phase and start with SimCode phase: time 0.001536/0.1621, allocations: 1.461 MB / 0.5466 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.1631, allocations: 0.8193 MB / 0.5474 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1631, allocations: 3.938 kB / 0.5474 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006116/0.1638, allocations: 0.5928 MB / 0.548 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.1641, allocations: 35.78 kB / 0.548 GB, free: 11.63 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004086/0.1681, allocations: 3.465 MB / 0.5514 GB, free: 8.078 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004121/0.1686, allocations: 0.7478 MB / 0.5521 GB, free: 7.301 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.275e-05/0.1686, allocations: 0 / 0.5521 GB, free: 7.301 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.736e-05/0.1686, allocations: 43.42 kB / 0.5521 GB, free: 7.258 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.1686, allocations: 0 / 0.5521 GB, free: 7.258 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03056/0.1992, allocations: 4.881 MB / 0.5569 GB, free: 2.504 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.292/8.491, allocations: 13.92 kB / 0.5569 GB, free: 2.496 MB / 414.1 MB " [Timeout remaining time 651] (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 PowerSystems_latest_PowerSystems_Examples_AC3ph_Precalculation_Z_matrixEqCirc3.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv failed! Error: Could not read variable zr_q[2] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv. Warning: Get data of variable zr_q[2] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv failed! Error: Could not read variable zr_q[3] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv. Warning: Get data of variable zr_q[3] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv failed! Error: Could not read variable zr_q[4] in file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv. Warning: Get data of variable zr_q[4] from file PowerSystems_latest_PowerSystems.Examples.AC3ph.Precalculation.Z_matrixEqCirc3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.585366738028824]