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.001278/0.001278, allocations: 119.6 kB / 20.44 MB, free: 1.297 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.001465/0.001465, allocations: 214.5 kB / 23.74 MB, free: 4.527 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.523/1.523, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] 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.1851/0.1851, allocations: 38.52 MB / 352.5 MB, free: 12.57 MB / 286.1 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: 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.002821/0.002821, allocations: 71.89 kB / 492.5 MB, free: 4.922 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3775/0.3803, allocations: 62.47 MB / 0.542 GB, free: 452 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007978/0.3883, allocations: 5.602 MB / 0.5475 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002739/0.391, allocations: 1.149 MB / 0.5486 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000307/0.3913, allocations: 26.66 kB / 0.5486 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003157/0.3916, allocations: 82.52 kB / 0.5487 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008379/0.3925, allocations: 305.5 kB / 0.549 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004611/0.3929, allocations: 143.5 kB / 0.5491 GB, free: 10.65 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009023/0.3938, allocations: 0.6983 MB / 0.5498 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002834/0.3941, allocations: 130.5 kB / 0.5499 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005894/0.3947, allocations: 315.9 kB / 0.5502 GB, free: 9.992 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006/0.3953, allocations: 338.6 kB / 0.5505 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.026e-05/0.3954, allocations: 33.31 kB / 0.5506 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.044e-05/0.3954, allocations: 37.41 kB / 0.5506 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.3956, allocations: 171.3 kB / 0.5508 GB, free: 9.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002694/0.3959, allocations: 235.3 kB / 0.551 GB, free: 9.531 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007317/0.3966, allocations: 499.5 kB / 0.5515 GB, free: 9.199 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3966, allocations: 1.469 kB / 0.5515 GB, free: 9.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3966, allocations: 0 / 0.5515 GB, free: 9.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.177e-06/0.3966, allocations: 0 / 0.5515 GB, free: 9.199 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001707/0.3984, allocations: 0.746 MB / 0.5522 GB, free: 8.605 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.3984, allocations: 9.844 kB / 0.5522 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.3985, allocations: 70.69 kB / 0.5523 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.3986, allocations: 54.27 kB / 0.5523 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007861/0.3994, allocations: 390.9 kB / 0.5527 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.571e-05/0.3994, allocations: 27.81 kB / 0.5527 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.3995, allocations: 35.62 kB / 0.5528 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007517/0.4002, allocations: 466.8 kB / 0.5532 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.4003, allocations: 2.094 kB / 0.5532 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.887e-05/0.4003, allocations: 11.56 kB / 0.5532 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.4003, allocations: 13.17 kB / 0.5532 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00053/0.4009, allocations: 309.4 kB / 0.5535 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.4033, allocations: 1.714 MB / 0.5552 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.4036, allocations: 144.6 kB / 0.5553 GB, free: 6.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.4037, allocations: 60.05 kB / 0.5554 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.4038, allocations: 9.672 kB / 0.5554 GB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.021e-05/0.4038, allocations: 31.62 kB / 0.5554 GB, free: 5.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.973e-06/0.4038, allocations: 1.094 kB / 0.5554 GB, free: 5.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001173/0.405, allocations: 0.5467 MB / 0.556 GB, free: 5.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.957e-05/0.4051, allocations: 109 kB / 0.5561 GB, free: 5.379 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004915/0.4056, allocations: 373 kB / 0.5564 GB, free: 5.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.4056, allocations: 26.8 kB / 0.5565 GB, free: 5.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.4058, allocations: 280.1 kB / 0.5567 GB, free: 4.859 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.481e-05/0.4059, allocations: 63.7 kB / 0.5568 GB, free: 4.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.235e-05/0.406, allocations: 62.58 kB / 0.5568 GB, free: 4.758 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002643/0.4062, allocations: 347.9 kB / 0.5572 GB, free: 4.418 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.4064, allocations: 47.11 kB / 0.5572 GB, free: 4.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002444/0.4066, allocations: 197.9 kB / 0.5574 GB, free: 4.176 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.407, allocations: 269.9 kB / 0.5577 GB, free: 3.914 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.407, allocations: 1.031 kB / 0.5577 GB, free: 3.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00047/0.4075, allocations: 297.1 kB / 0.558 GB, free: 3.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.4075, allocations: 4 kB / 0.558 GB, free: 3.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.4075, allocations: 8 kB / 0.558 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.4075, allocations: 7.984 kB / 0.558 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002613/0.4078, allocations: 75.8 kB / 0.558 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.4078, allocations: 12.53 kB / 0.5581 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.408, allocations: 15.95 kB / 0.5581 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.408, allocations: 12.31 kB / 0.5581 GB, free: 3.535 MB / 398.1 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.0002348/0.4082, allocations: 193.6 kB / 0.5583 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.802e-05/0.4083, allocations: 35.77 kB / 0.5583 GB, free: 3.301 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003469/0.4087, allocations: 172.7 kB / 0.5585 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.4087, allocations: 4 kB / 0.5585 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.4087, allocations: 0 / 0.5585 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.4087, allocations: 3.984 kB / 0.5585 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009764/0.4097, allocations: 0.5021 MB / 0.559 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4097, allocations: 0 / 0.559 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001888/0.4098, allocations: 35.97 kB / 0.559 GB, free: 2.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.4099, allocations: 7.938 kB / 0.559 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.4099, allocations: 4 kB / 0.559 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.4099, allocations: 4 kB / 0.559 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4099, allocations: 3.938 kB / 0.559 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000625/0.4105, allocations: 399.2 kB / 0.5594 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7e-05/0.4106, allocations: 35.72 kB / 0.5594 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.519e-05/0.4106, allocations: 4 kB / 0.5594 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001724/0.4108, allocations: 7.938 kB / 0.5594 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.034e-05/0.4108, allocations: 19.91 kB / 0.5595 GB, free: 2.031 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.4108, allocations: 4 kB / 0.5595 GB, free: 2.027 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002872/0.4111, allocations: 255.2 kB / 0.5597 GB, free: 1.785 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4111, allocations: 4 kB / 0.5597 GB, free: 1.781 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004671/0.4116, allocations: 72 kB / 0.5598 GB, free: 1.711 MB / 398.1 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.0008243/0.4124, allocations: 0.928 MB / 0.5607 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003078/0.4127, allocations: 143.7 kB / 0.5608 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4127, allocations: 0 / 0.5608 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.4128, allocations: 65.12 kB / 0.5609 GB, free: 0.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007187/0.4135, allocations: 93.66 kB / 0.561 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00494/0.4185, allocations: 3.409 MB / 0.5643 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.4196, allocations: 0.8464 MB / 0.5651 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000205/0.4198, allocations: 51.25 kB / 0.5652 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.4201, allocations: 151.4 kB / 0.5653 GB, free: 11.74 MB / 414.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4201, allocations: 0 / 0.5653 GB, free: 11.74 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04239/0.4624, allocations: 7.383 MB / 0.5725 GB, free: 4.523 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.94, allocations: 4.062 kB / 0.5725 GB, free: 4.52 MB / 414.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Frequency.mat","/var/lib/jenkins1/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: 15.007147910997446]