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.001642/0.001642, allocations: 112.2 kB / 21.22 MB, free: 0.7422 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.002168/0.002168, allocations: 209.2 kB / 24.53 MB, free: 4.133 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.526/1.526, allocations: 230.6 MB / 258.3 MB, free: 8 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.1956/0.1956, allocations: 38.52 MB / 353.2 MB, free: 12.64 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="cs",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.002093/0.002093, allocations: 63.91 kB / 493.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3795, allocations: 62.47 MB / 0.5428 GB, free: 460 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007201/0.3867, allocations: 5.618 MB / 0.5482 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.3888, allocations: 1.137 MB / 0.5493 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000348/0.3891, allocations: 27.66 kB / 0.5494 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003406/0.3895, allocations: 81.98 kB / 0.5495 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008674/0.3903, allocations: 313.2 kB / 0.5498 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000383/0.3907, allocations: 135.5 kB / 0.5499 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008934/0.3916, allocations: 0.7035 MB / 0.5506 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.3919, allocations: 124 kB / 0.5507 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000554/0.3924, allocations: 325.1 kB / 0.551 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005483/0.393, allocations: 337.9 kB / 0.5513 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.22e-05/0.393, allocations: 33.75 kB / 0.5514 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.024e-05/0.3931, allocations: 33.94 kB / 0.5514 GB, free: 9.797 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.3933, allocations: 158.5 kB / 0.5515 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002674/0.3936, allocations: 252 kB / 0.5518 GB, free: 9.527 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000599/0.3942, allocations: 491.2 kB / 0.5522 GB, free: 9.203 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3942, allocations: 4.812 kB / 0.5522 GB, free: 9.199 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3942, allocations: 4 kB / 0.5523 GB, free: 9.195 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.3942, allocations: 1 kB / 0.5523 GB, free: 9.195 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.001405/0.3956, allocations: 0.7315 MB / 0.553 GB, free: 8.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.3956, allocations: 13.5 kB / 0.553 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.082e-05/0.3957, allocations: 10.09 kB / 0.553 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.568e-05/0.3957, allocations: 71.53 kB / 0.5531 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.3958, allocations: 53.89 kB / 0.5531 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007334/0.3966, allocations: 394.2 kB / 0.5535 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.668e-05/0.3966, allocations: 32.31 kB / 0.5535 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.826e-05/0.3967, allocations: 40.2 kB / 0.5536 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007243/0.3974, allocations: 458.5 kB / 0.554 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.3974, allocations: 5.125 kB / 0.554 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.922e-05/0.3975, allocations: 19.5 kB / 0.554 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.3975, allocations: 9.844 kB / 0.554 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005059/0.398, allocations: 304.7 kB / 0.5543 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002183/0.4002, allocations: 1.719 MB / 0.556 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.4004, allocations: 131.9 kB / 0.5561 GB, free: 6.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.068e-05/0.4005, allocations: 55.23 kB / 0.5562 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.4005, allocations: 2.219 kB / 0.5562 GB, free: 5.988 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/0.4005, allocations: 44.92 kB / 0.5562 GB, free: 5.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.4005, allocations: 0 / 0.5562 GB, free: 5.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001095/0.4016, allocations: 0.543 MB / 0.5567 GB, free: 5.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.4017, allocations: 108.8 kB / 0.5569 GB, free: 5.383 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004333/0.4021, allocations: 377.2 kB / 0.5572 GB, free: 5.145 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.4022, allocations: 27.02 kB / 0.5572 GB, free: 5.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.4024, allocations: 288.5 kB / 0.5575 GB, free: 4.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.34e-05/0.4024, allocations: 54.84 kB / 0.5576 GB, free: 4.809 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.4025, allocations: 66.91 kB / 0.5576 GB, free: 4.758 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.4027, allocations: 352.2 kB / 0.558 GB, free: 4.414 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.543e-05/0.4028, allocations: 46.91 kB / 0.558 GB, free: 4.395 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.403, allocations: 197.4 kB / 0.5582 GB, free: 4.172 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003454/0.4034, allocations: 274.3 kB / 0.5585 GB, free: 3.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4034, allocations: 2.344 kB / 0.5585 GB, free: 3.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004826/0.4039, allocations: 296 kB / 0.5587 GB, free: 3.648 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.4039, allocations: 4 kB / 0.5587 GB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.4039, allocations: 8 kB / 0.5588 GB, free: 3.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.4039, allocations: 4 kB / 0.5588 GB, free: 3.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.4042, allocations: 71.91 kB / 0.5588 GB, free: 3.562 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.937e-05/0.4042, allocations: 11.94 kB / 0.5588 GB, free: 3.551 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.4044, allocations: 11.95 kB / 0.5588 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.4044, allocations: 15.98 kB / 0.5589 GB, free: 3.523 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.0002333/0.4047, allocations: 189.8 kB / 0.559 GB, free: 3.328 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.034e-05/0.4047, allocations: 35.77 kB / 0.5591 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004302/0.4052, allocations: 168.7 kB / 0.5592 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.4052, allocations: 4 kB / 0.5592 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.4052, allocations: 0 / 0.5592 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.4052, allocations: 3.984 kB / 0.5592 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008023/0.406, allocations: 0.5059 MB / 0.5597 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.406, allocations: 0 / 0.5597 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.4062, allocations: 40.02 kB / 0.5598 GB, free: 2.516 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.4062, allocations: 4 kB / 0.5598 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.4062, allocations: 0 / 0.5598 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.366e-06/0.4062, allocations: 7.938 kB / 0.5598 GB, free: 2.504 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.4062, allocations: 3.984 kB / 0.5598 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004667/0.4067, allocations: 399.2 kB / 0.5602 GB, free: 2.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.046e-05/0.4068, allocations: 39.75 kB / 0.5602 GB, free: 2.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.706e-05/0.4068, allocations: 8.375 kB / 0.5602 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.407, allocations: 8 kB / 0.5602 GB, free: 2.035 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.006e-05/0.407, allocations: 7.984 kB / 0.5602 GB, free: 2.027 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.407, allocations: 8 kB / 0.5602 GB, free: 2.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002753/0.4073, allocations: 255.2 kB / 0.5605 GB, free: 1.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4073, allocations: 0 / 0.5605 GB, free: 1.773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004688/0.4078, allocations: 72 kB / 0.5606 GB, free: 1.703 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.0007795/0.4086, allocations: 0.9396 MB / 0.5615 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003378/0.4089, allocations: 147.7 kB / 0.5616 GB, free: 0.582 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.4089, allocations: 0 / 0.5616 GB, free: 0.582 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.409, allocations: 51.86 kB / 0.5617 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007311/0.4097, allocations: 95.67 kB / 0.5618 GB, free: 452 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004623/0.4144, allocations: 3.42 MB / 0.5651 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005653/0.4149, allocations: 0.8387 MB / 0.5659 GB, free: 11.93 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002363/0.4152, allocations: 51.25 kB / 0.566 GB, free: 11.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/0.4154, allocations: 147.4 kB / 0.5661 GB, free: 11.73 MB / 414.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4154, allocations: 0 / 0.5661 GB, free: 11.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03311/0.4485, allocations: 7.416 MB / 0.5733 GB, free: 4.488 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.17, allocations: 10.81 kB / 0.5734 GB, free: 4.48 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.237210452032741]