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.001884/0.001884, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001903/0.001903, allocations: 213.2 kB / 23.73 MB, free: 4.387 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.479/1.479, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.1839/0.1839, allocations: 38.56 MB / 352.5 MB, free: 12.27 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.002144/0.002144, allocations: 67.89 kB / 492.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3184, allocations: 62.46 MB / 0.5419 GB, free: 224 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007068/0.3254, allocations: 5.225 MB / 0.547 GB, free: 12.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002037/0.3275, allocations: 1.074 MB / 0.5481 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.3277, allocations: 26.25 kB / 0.5481 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002444/0.3279, allocations: 87.39 kB / 0.5482 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007055/0.3286, allocations: 300.6 kB / 0.5485 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000312/0.3289, allocations: 144.7 kB / 0.5486 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007583/0.3297, allocations: 0.6937 MB / 0.5493 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.33, allocations: 121 kB / 0.5494 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005161/0.3305, allocations: 324.8 kB / 0.5497 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005334/0.331, allocations: 330.5 kB / 0.55 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.3311, allocations: 33.81 kB / 0.5501 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.008e-05/0.3312, allocations: 37.53 kB / 0.5501 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.3313, allocations: 162.4 kB / 0.5503 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.3316, allocations: 197 kB / 0.5504 GB, free: 9.859 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005711/0.3321, allocations: 0.4934 MB / 0.5509 GB, free: 9.527 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3321, allocations: 0 / 0.5509 GB, free: 9.527 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3321, allocations: 0 / 0.5509 GB, free: 9.527 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.341e-05/0.3322, allocations: 0 / 0.5509 GB, free: 9.527 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.001414/0.3336, allocations: 0.7365 MB / 0.5516 GB, free: 8.941 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3336, allocations: 9.875 kB / 0.5516 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.302e-05/0.3337, allocations: 75.75 kB / 0.5517 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.815e-05/0.3338, allocations: 53.8 kB / 0.5518 GB, free: 8.844 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008073/0.3346, allocations: 390 kB / 0.5521 GB, free: 8.535 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.3346, allocations: 27.75 kB / 0.5522 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.554e-05/0.3347, allocations: 40.48 kB / 0.5522 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006945/0.3354, allocations: 465.9 kB / 0.5527 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.3354, allocations: 5.469 kB / 0.5527 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.3355, allocations: 15.09 kB / 0.5527 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3355, allocations: 9.312 kB / 0.5527 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004957/0.336, allocations: 303.2 kB / 0.553 GB, free: 8.027 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002303/0.3383, allocations: 1.646 MB / 0.5546 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.3386, allocations: 140.5 kB / 0.5547 GB, free: 6.438 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.3387, allocations: 56.33 kB / 0.5548 GB, free: 6.395 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.3387, allocations: 1.562 kB / 0.5548 GB, free: 6.395 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.569e-05/0.3387, allocations: 41.53 kB / 0.5548 GB, free: 6.348 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.3387, allocations: 0 / 0.5548 GB, free: 6.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001235/0.34, allocations: 0.5474 MB / 0.5553 GB, free: 5.918 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.686e-05/0.3401, allocations: 106 kB / 0.5554 GB, free: 5.793 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004726/0.3405, allocations: 377.8 kB / 0.5558 GB, free: 5.555 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.987e-05/0.3406, allocations: 30.95 kB / 0.5558 GB, free: 5.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002623/0.3408, allocations: 293.7 kB / 0.5561 GB, free: 5.254 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.7e-05/0.3409, allocations: 62.31 kB / 0.5562 GB, free: 5.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.341, allocations: 59.81 kB / 0.5562 GB, free: 5.156 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002167/0.3412, allocations: 347.5 kB / 0.5566 GB, free: 4.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.3413, allocations: 50.69 kB / 0.5566 GB, free: 4.793 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.3416, allocations: 194.7 kB / 0.5568 GB, free: 4.566 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003734/0.342, allocations: 270.6 kB / 0.5571 GB, free: 4.234 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.342, allocations: 4 kB / 0.5571 GB, free: 4.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005162/0.3425, allocations: 289.8 kB / 0.5573 GB, free: 3.941 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3425, allocations: 4 kB / 0.5573 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.3425, allocations: 8 kB / 0.5573 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.3425, allocations: 4 kB / 0.5573 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.3428, allocations: 75.91 kB / 0.5574 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.3428, allocations: 11.94 kB / 0.5574 GB, free: 3.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001874/0.343, allocations: 15.94 kB / 0.5574 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.343, allocations: 16 kB / 0.5575 GB, free: 3.809 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.0002172/0.3432, allocations: 189.9 kB / 0.5576 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.471e-05/0.3433, allocations: 35.77 kB / 0.5577 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002979/0.3436, allocations: 172.7 kB / 0.5578 GB, free: 3.402 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.3436, allocations: 4 kB / 0.5578 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3436, allocations: 96 / 0.5578 GB, free: 3.398 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3436, allocations: 3.938 kB / 0.5579 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007125/0.3443, allocations: 498.2 kB / 0.5583 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3444, allocations: 4 kB / 0.5583 GB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.3445, allocations: 31.98 kB / 0.5584 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3445, allocations: 0 / 0.5584 GB, free: 2.82 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.3446, allocations: 8.031 kB / 0.5584 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.3446, allocations: 8.266 kB / 0.5584 GB, free: 2.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3446, allocations: 3.938 kB / 0.5584 GB, free: 2.801 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004753/0.345, allocations: 400.3 kB / 0.5588 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.44e-05/0.3451, allocations: 43.66 kB / 0.5588 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.472e-05/0.3452, allocations: 0 / 0.5588 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001773/0.3453, allocations: 11.94 kB / 0.5588 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.674e-05/0.3454, allocations: 15.95 kB / 0.5588 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.27e-05/0.3454, allocations: 8 kB / 0.5588 GB, free: 2.312 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002997/0.3457, allocations: 251.2 kB / 0.5591 GB, free: 2.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3457, allocations: 0 / 0.5591 GB, free: 2.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004917/0.3462, allocations: 76 kB / 0.5591 GB, free: 1.996 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.001027/0.3472, allocations: 0.9278 MB / 0.5601 GB, free: 1.031 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003157/0.3475, allocations: 144.8 kB / 0.5602 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.3475, allocations: 4 kB / 0.5602 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.871e-05/0.3476, allocations: 56.16 kB / 0.5603 GB, free: 0.832 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007026/0.3483, allocations: 104.5 kB / 0.5603 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004572/0.3529, allocations: 3.401 MB / 0.5637 GB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.3532, allocations: 239.8 kB / 0.5639 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.3534, allocations: 55.25 kB / 0.564 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002299/0.3536, allocations: 143.4 kB / 0.5641 GB, free: 12.66 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3536, allocations: 0 / 0.5641 GB, free: 12.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03967/0.3933, allocations: 7.921 MB / 0.5718 GB, free: 4.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.79, allocations: 0 / 0.5718 GB, free: 4.934 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: 14.808853555005044]