Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.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.0009006/0.0009006, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001246/0.001246, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9185/0.9185, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.2154/0.2154, allocations: 29.4 MB / 290.1 MB, free: 2.441 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 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.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.375e-06/2.375e-06, allocations: 0 / 430.2 MB, free: 13.63 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.903e-05/2.14e-05, allocations: 3.828 kB / 430.2 MB, free: 13.62 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.004403/0.004424, allocations: 5.188 MB / 435.4 MB, free: 8.406 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.005681, allocations: 1.083 MB / 436.5 MB, free: 7.32 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.005863, allocations: 27.75 kB / 436.5 MB, free: 7.293 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002087/0.006072, allocations: 87.2 kB / 436.6 MB, free: 7.207 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007899/0.006862, allocations: 310 kB / 436.9 MB, free: 6.902 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002082/0.00707, allocations: 143.7 kB / 437 MB, free: 6.762 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004694/0.00754, allocations: 0.7237 MB / 437.7 MB, free: 6.035 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001939/0.007733, allocations: 117.2 kB / 437.9 MB, free: 5.91 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004773/0.008211, allocations: 434.5 kB / 438.3 MB, free: 5.484 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003592/0.00857, allocations: 295.2 kB / 438.6 MB, free: 5.195 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.365e-05/0.008614, allocations: 32 kB / 438.6 MB, free: 5.164 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.643e-05/0.00866, allocations: 32 kB / 438.6 MB, free: 5.133 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.008781, allocations: 175.4 kB / 438.8 MB, free: 4.961 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.008908, allocations: 163.6 kB / 439 MB, free: 4.801 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003942/0.009303, allocations: 486.3 kB / 439.4 MB, free: 4.324 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.009307, allocations: 0 / 439.4 MB, free: 4.324 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.009308, allocations: 3.938 kB / 439.4 MB, free: 4.32 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.009316, allocations: 0 / 439.4 MB, free: 4.32 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0008992/0.01021, allocations: 0.725 MB / 440.2 MB, free: 3.562 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.01025, allocations: 8.031 kB / 440.2 MB, free: 3.555 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.085e-05/0.01031, allocations: 78.72 kB / 440.2 MB, free: 3.469 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.135e-05/0.01038, allocations: 56.56 kB / 440.3 MB, free: 3.414 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004518/0.01083, allocations: 392.8 kB / 440.7 MB, free: 3.008 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.01085, allocations: 25.38 kB / 440.7 MB, free: 2.984 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.276e-05/0.01089, allocations: 43.92 kB / 440.8 MB, free: 2.941 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004115/0.0113, allocations: 455.6 kB / 441.2 MB, free: 2.457 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.01131, allocations: 0 / 441.2 MB, free: 2.457 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.01134, allocations: 16 kB / 441.2 MB, free: 2.441 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.01135, allocations: 8 kB / 441.2 MB, free: 2.434 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003086/0.01165, allocations: 316.5 kB / 441.5 MB, free: 2.125 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00119/0.01284, allocations: 1.651 MB / 443.2 MB, free: 376 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.01302, allocations: 139.7 kB / 443.3 MB, free: 208 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.021e-05/0.01308, allocations: 54.67 kB / 443.4 MB, free: 144 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.0131, allocations: 4 kB / 443.4 MB, free: 140 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.01312, allocations: 50.42 kB / 443.4 MB, free: 80 kB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.01312, allocations: 0 / 443.4 MB, free: 80 kB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.1638/0.177, allocations: 0.5379 MB / 444 MB, free: 54.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.177, allocations: 106.8 kB / 444.1 MB, free: 54.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002547/0.1773, allocations: 381.8 kB / 444.4 MB, free: 54.34 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.678e-06/0.1773, allocations: 28.58 kB / 444.5 MB, free: 54.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.095e-05/0.1774, allocations: 284.8 kB / 444.7 MB, free: 54.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.425e-05/0.1774, allocations: 56.7 kB / 444.8 MB, free: 54.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.558e-05/0.1774, allocations: 64.95 kB / 444.9 MB, free: 54.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.388e-05/0.1775, allocations: 346.1 kB / 445.2 MB, free: 53.78 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.913e-05/0.1775, allocations: 47.91 kB / 445.3 MB, free: 53.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.92e-05/0.1776, allocations: 194.8 kB / 445.4 MB, free: 53.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.1778, allocations: 267.5 kB / 445.7 MB, free: 53.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.1778, allocations: 6.844 kB / 445.7 MB, free: 53.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002545/0.1781, allocations: 286.1 kB / 446 MB, free: 53.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1781, allocations: 8.906 kB / 446 MB, free: 53.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.1781, allocations: 6.094 kB / 446 MB, free: 53.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1781, allocations: 6.281 kB / 446 MB, free: 53.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.1783, allocations: 75.19 kB / 446.1 MB, free: 53.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.1783, allocations: 6.688 kB / 446.1 MB, free: 53.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.1784, allocations: 14.55 kB / 446.1 MB, free: 53.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.1784, allocations: 17.22 kB / 446.1 MB, free: 53.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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.0001295/0.1786, allocations: 183 kB / 446.3 MB, free: 53.11 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.1786, allocations: 40.59 kB / 446.3 MB, free: 53.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001905/0.1788, allocations: 171.3 kB / 446.5 MB, free: 53.01 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1788, allocations: 3.156 kB / 446.5 MB, free: 53.01 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1788, allocations: 0 / 446.5 MB, free: 53.01 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.1788, allocations: 3.156 kB / 446.5 MB, free: 53.01 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004075/0.1792, allocations: 490.7 kB / 447 MB, free: 52.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1792, allocations: 5.719 kB / 447 MB, free: 52.65 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000119/0.1793, allocations: 35.33 kB / 447 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.1793, allocations: 0 / 447 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.1793, allocations: 10.47 kB / 447 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1793, allocations: 5.688 kB / 447 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1793, allocations: 0 / 447 MB, free: 52.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002347/0.1796, allocations: 395.5 kB / 447.4 MB, free: 52.35 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.266e-05/0.1796, allocations: 41.08 kB / 447.5 MB, free: 52.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.1796, allocations: 10.38 kB / 447.5 MB, free: 52.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.222e-05/0.1797, allocations: 0 / 447.5 MB, free: 52.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.204e-05/0.1797, allocations: 25.11 kB / 447.5 MB, free: 52.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.283e-06/0.1798, allocations: 3.344 kB / 447.5 MB, free: 52.31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001391/0.1799, allocations: 250.8 kB / 447.8 MB, free: 52.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1799, allocations: 0 / 447.8 MB, free: 52.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002808/0.1802, allocations: 73.88 kB / 447.8 MB, free: 52.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.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 (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.0004036/0.1806, allocations: 0.9277 MB / 448.8 MB, free: 51.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002398/0.1808, allocations: 165.8 kB / 448.9 MB, free: 51.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1808, allocations: 0 / 448.9 MB, free: 51.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.172e-05/0.1809, allocations: 56.05 kB / 449 MB, free: 51.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006311/0.1815, allocations: 93.08 kB / 449.1 MB, free: 51.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00277/0.1843, allocations: 3.316 MB / 452.4 MB, free: 48.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.1845, allocations: 240.5 kB / 452.6 MB, free: 48.86 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001498/0.1846, allocations: 55.56 kB / 452.7 MB, free: 48.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.1848, allocations: 148 kB / 452.8 MB, free: 48.74 MB / 410.7 MB Notification: Performance of SimCode: time 7.21e-07/0.1848, allocations: 0 / 452.8 MB, free: 48.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02316/0.2079, allocations: 8.042 MB / 460.9 MB, free: 47.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.127/7.335, allocations: 9.766 kB / 460.9 MB, free: 47.3 MB / 410.7 MB " [Timeout remaining time 653] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv. Warning: Get data of variable Time from file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv failed! Error: Could not read variable meter1.i in file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv. Warning: Get data of variable meter1.i from file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv failed! Error: Could not read variable meter1.p in file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv. Warning: Get data of variable meter1.p from file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv failed! Error: Could not read variable meter1.v in file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv. Warning: Get data of variable meter1.v from file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv failed! Error: Could not read variable meter2.i in file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv. Warning: Get data of variable meter2.i from file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv failed! Error: Could not read variable meter2.p in file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv. Warning: Get data of variable meter2.p from file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv failed! Error: Could not read variable meter2.v in file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv. Warning: Get data of variable meter2.v from file PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.332619868218899]