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.002171/0.002171, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002042/0.002042, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.457/1.457, allocations: 230.6 MB / 257.5 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.1789/0.1789, allocations: 38.52 MB / 352.5 MB, free: 12.55 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.00204/0.00204, allocations: 67.89 kB / 492.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3563, allocations: 62.48 MB / 0.542 GB, free: 436 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007477/0.3638, allocations: 5.606 MB / 0.5475 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00241/0.3662, allocations: 1.142 MB / 0.5486 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003783/0.3666, allocations: 26.56 kB / 0.5486 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003206/0.3669, allocations: 87.77 kB / 0.5487 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001008/0.3679, allocations: 296.3 kB / 0.549 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004487/0.3683, allocations: 147.1 kB / 0.5491 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00112/0.3695, allocations: 0.6983 MB / 0.5498 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002961/0.3697, allocations: 126.3 kB / 0.5499 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006308/0.3704, allocations: 320.7 kB / 0.5502 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006434/0.371, allocations: 346.2 kB / 0.5506 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.393e-05/0.3711, allocations: 33.84 kB / 0.5506 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.193e-05/0.3712, allocations: 33.47 kB / 0.5506 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002/0.3714, allocations: 162.2 kB / 0.5508 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003276/0.3717, allocations: 239.5 kB / 0.551 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007088/0.3724, allocations: 496.2 kB / 0.5515 GB, free: 9.191 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3724, allocations: 1.219 kB / 0.5515 GB, free: 9.191 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3724, allocations: 0 / 0.5515 GB, free: 9.191 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.3724, allocations: 0 / 0.5515 GB, free: 9.191 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.001569/0.374, allocations: 0.7428 MB / 0.5522 GB, free: 8.602 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3741, allocations: 8.656 kB / 0.5522 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.192e-05/0.3742, allocations: 76.12 kB / 0.5523 GB, free: 8.531 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.3743, allocations: 53.55 kB / 0.5523 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007936/0.3751, allocations: 390.5 kB / 0.5527 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.846e-05/0.3751, allocations: 27.75 kB / 0.5527 GB, free: 8.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.941e-05/0.3752, allocations: 35.59 kB / 0.5528 GB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007372/0.3759, allocations: 467.6 kB / 0.5532 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.3759, allocations: 1.156 kB / 0.5532 GB, free: 7.84 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.376, allocations: 15.41 kB / 0.5532 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.376, allocations: 9.906 kB / 0.5532 GB, free: 7.828 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005064/0.3765, allocations: 307.8 kB / 0.5535 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.3788, allocations: 1.719 MB / 0.5552 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002668/0.3791, allocations: 144.4 kB / 0.5553 GB, free: 6.02 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.512e-05/0.3792, allocations: 58.97 kB / 0.5554 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.3792, allocations: 2.5 kB / 0.5554 GB, free: 5.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.3792, allocations: 36 kB / 0.5554 GB, free: 5.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.3792, allocations: 0 / 0.5554 GB, free: 5.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001105/0.3803, allocations: 0.5428 MB / 0.556 GB, free: 5.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.002e-05/0.3804, allocations: 113.2 kB / 0.5561 GB, free: 5.371 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004056/0.3808, allocations: 373.7 kB / 0.5564 GB, free: 5.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.3808, allocations: 30.98 kB / 0.5565 GB, free: 5.102 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002383/0.3811, allocations: 280.2 kB / 0.5567 GB, free: 4.848 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.218e-05/0.3811, allocations: 62.12 kB / 0.5568 GB, free: 4.793 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.839e-05/0.3812, allocations: 63.89 kB / 0.5569 GB, free: 4.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002483/0.3815, allocations: 348.1 kB / 0.5572 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.37e-05/0.3816, allocations: 46.55 kB / 0.5572 GB, free: 4.387 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/0.3818, allocations: 197.7 kB / 0.5574 GB, free: 4.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003446/0.3822, allocations: 274.4 kB / 0.5577 GB, free: 3.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3822, allocations: 2.344 kB / 0.5577 GB, free: 3.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000466/0.3826, allocations: 295 kB / 0.558 GB, free: 3.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.246e-05/0.3827, allocations: 11.98 kB / 0.558 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3827, allocations: 4 kB / 0.558 GB, free: 3.609 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.3827, allocations: 8.625 kB / 0.558 GB, free: 3.602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.383, allocations: 68.28 kB / 0.5581 GB, free: 3.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.383, allocations: 12 kB / 0.5581 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.3831, allocations: 11.95 kB / 0.5581 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.3832, allocations: 24 kB / 0.5581 GB, free: 3.488 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.0002457/0.3834, allocations: 185.6 kB / 0.5583 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.613e-05/0.3835, allocations: 35.77 kB / 0.5583 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003048/0.3838, allocations: 164.8 kB / 0.5585 GB, free: 3.094 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3838, allocations: 4 kB / 0.5585 GB, free: 3.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3838, allocations: 4 kB / 0.5585 GB, free: 3.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3838, allocations: 3.984 kB / 0.5585 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007504/0.3846, allocations: 0.5059 MB / 0.559 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3846, allocations: 0 / 0.559 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.3848, allocations: 35.92 kB / 0.559 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.674e-06/0.3848, allocations: 4 kB / 0.559 GB, free: 2.484 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.3848, allocations: 4 kB / 0.559 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.3848, allocations: 4 kB / 0.559 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3848, allocations: 3.969 kB / 0.559 GB, free: 2.473 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004528/0.3852, allocations: 395.1 kB / 0.5594 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.891e-05/0.3853, allocations: 43.66 kB / 0.5594 GB, free: 2.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.692e-05/0.3854, allocations: 4.094 kB / 0.5594 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.3855, allocations: 11.88 kB / 0.5595 GB, free: 2.008 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.066e-05/0.3856, allocations: 20.02 kB / 0.5595 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.3856, allocations: 4 kB / 0.5595 GB, free: 1.984 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002636/0.3858, allocations: 251.2 kB / 0.5597 GB, free: 1.746 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3858, allocations: 0 / 0.5597 GB, free: 1.746 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004538/0.3863, allocations: 76 kB / 0.5598 GB, free: 1.672 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.0007738/0.3871, allocations: 0.9306 MB / 0.5607 GB, free: 0.707 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003374/0.3874, allocations: 141.4 kB / 0.5608 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.3874, allocations: 4.062 kB / 0.5608 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.3876, allocations: 59.84 kB / 0.5609 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007199/0.3883, allocations: 93.83 kB / 0.561 GB, free: 424 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004717/0.393, allocations: 3.416 MB / 0.5643 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005314/0.3936, allocations: 0.8426 MB / 0.5651 GB, free: 11.9 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001961/0.3938, allocations: 47.25 kB / 0.5652 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.394, allocations: 147.4 kB / 0.5653 GB, free: 11.71 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.394, allocations: 7.938 kB / 0.5653 GB, free: 11.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03917/0.4331, allocations: 7.383 MB / 0.5725 GB, free: 4.484 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.74, allocations: 7.922 kB / 0.5726 GB, free: 4.477 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: 14.585534921847284]