Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.001967/0.001967, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.002566/0.002566, allocations: 211.6 kB / 24.51 MB, free: 3.914 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.608/1.608, allocations: 230.6 MB / 258.3 MB, free: 7.734 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.2113/0.2113, allocations: 38.55 MB / 353.2 MB, free: 12.3 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.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.ReferenceInertial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial",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.002712/0.002712, allocations: 70.41 kB / 493.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3774, allocations: 62.46 MB / 0.5427 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceInertial): time 0.00676/0.3842, allocations: 4.336 MB / 0.5469 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002886/0.387, allocations: 1.373 MB / 0.5483 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002472/0.3873, allocations: 20.78 kB / 0.5483 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.3885, allocations: 371.3 kB / 0.5486 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006241/0.3891, allocations: 224.6 kB / 0.5488 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008397/0.39, allocations: 254.5 kB / 0.5491 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008497/0.3908, allocations: 0.5268 MB / 0.5496 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004814/0.3913, allocations: 226.2 kB / 0.5498 GB, free: 10.76 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005021/0.3918, allocations: 266.6 kB / 0.5501 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005221/0.3923, allocations: 311.7 kB / 0.5504 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.708e-05/0.3924, allocations: 31.84 kB / 0.5504 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003159/0.3927, allocations: 156.2 kB / 0.5506 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002527/0.393, allocations: 228.6 kB / 0.5508 GB, free: 10.22 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003469/0.3933, allocations: 192.1 kB / 0.551 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007374/0.394, allocations: 0.5809 MB / 0.5515 GB, free: 9.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.394, allocations: 0 / 0.5515 GB, free: 9.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.394, allocations: 4 kB / 0.5515 GB, free: 9.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.3941, allocations: 5.156 kB / 0.5515 GB, free: 9.727 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001345/0.3954, allocations: 0.669 MB / 0.5522 GB, free: 9.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.3954, allocations: 13.45 kB / 0.5522 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.512e-05/0.3955, allocations: 11.66 kB / 0.5522 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.886e-05/0.3956, allocations: 83.31 kB / 0.5523 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006845/0.3963, allocations: 127 kB / 0.5524 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006831/0.3969, allocations: 341.6 kB / 0.5527 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.23e-05/0.397, allocations: 37.42 kB / 0.5528 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.3971, allocations: 49.64 kB / 0.5528 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.3982, allocations: 0.6161 MB / 0.5534 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.442e-05/0.3982, allocations: 5.969 kB / 0.5534 GB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.066e-05/0.3982, allocations: 16.59 kB / 0.5534 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/0.3984, allocations: 33.23 kB / 0.5535 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008585/0.3992, allocations: 480.5 kB / 0.5539 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003694/0.4029, allocations: 2.738 MB / 0.5566 GB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004049/0.4033, allocations: 220 kB / 0.5568 GB, free: 5.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.4035, allocations: 133.7 kB / 0.5569 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.4036, allocations: 4 kB / 0.5569 GB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.453e-05/0.4036, allocations: 38.55 kB / 0.557 GB, free: 5.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=27): time 2.565e-06/0.4036, allocations: 4 kB / 0.557 GB, free: 5.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=28): time 0.001747/0.4054, allocations: 0.8994 MB / 0.5579 GB, free: 4.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.086e-05/0.4054, allocations: 92.98 kB / 0.558 GB, free: 4.254 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004629/0.4059, allocations: 328.4 kB / 0.5583 GB, free: 3.926 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/0.4059, allocations: 29.7 kB / 0.5583 GB, free: 3.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.4062, allocations: 284 kB / 0.5586 GB, free: 3.609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001277/0.4064, allocations: 107.1 kB / 0.5587 GB, free: 3.504 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/0.4065, allocations: 94.14 kB / 0.5588 GB, free: 3.406 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002695/0.4068, allocations: 346.7 kB / 0.5591 GB, free: 3.059 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002765/0.4071, allocations: 145 kB / 0.5592 GB, free: 2.914 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005027/0.4076, allocations: 350.6 kB / 0.5596 GB, free: 2.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008291/0.4084, allocations: 0.509 MB / 0.5601 GB, free: 1.883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.727e-06/0.4084, allocations: 4 kB / 0.5601 GB, free: 1.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001039/0.4095, allocations: 0.5329 MB / 0.5606 GB, free: 1.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.466e-05/0.4095, allocations: 10.81 kB / 0.5606 GB, free: 1.332 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.4095, allocations: 12.06 kB / 0.5606 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.851e-05/0.4096, allocations: 8 kB / 0.5606 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005673/0.4101, allocations: 115.8 kB / 0.5607 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.701e-05/0.4102, allocations: 15.92 kB / 0.5607 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003213/0.4105, allocations: 23.98 kB / 0.5608 GB, free: 1.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.686e-05/0.4105, allocations: 24 kB / 0.5608 GB, free: 1.137 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (58): * Single equations (assignments): 58 * 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.0003712/0.4109, allocations: 217.8 kB / 0.561 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.836e-05/0.411, allocations: 35.77 kB / 0.561 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000787/0.4118, allocations: 366.2 kB / 0.5614 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.4118, allocations: 4 kB / 0.5614 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/0.4118, allocations: 4 kB / 0.5614 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.4118, allocations: 4 kB / 0.5614 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.4134, allocations: 0.8281 MB / 0.5622 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.82e-06/0.4134, allocations: 4 kB / 0.5622 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.4138, allocations: 67.84 kB / 0.5623 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-06/0.4138, allocations: 4 kB / 0.5623 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.4138, allocations: 15.92 kB / 0.5623 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.4138, allocations: 8.031 kB / 0.5623 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4138, allocations: 4 kB / 0.5623 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000914/0.4147, allocations: 0.5781 MB / 0.5629 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.206e-05/0.4148, allocations: 27.81 kB / 0.5629 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.51e-05/0.4149, allocations: 11.94 kB / 0.5629 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.415, allocations: 15.98 kB / 0.5629 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.652e-05/0.4151, allocations: 19.91 kB / 0.5629 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.4151, allocations: 8 kB / 0.5629 GB, free: 14.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.4154, allocations: 223 kB / 0.5631 GB, free: 14.6 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4154, allocations: 0 / 0.5631 GB, free: 14.6 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005287/0.4159, allocations: 96 kB / 0.5632 GB, free: 14.51 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (31): * Single equations (assignments): 30 * 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.001229/0.4172, allocations: 1.142 MB / 0.5644 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006451/0.4178, allocations: 349.2 kB / 0.5647 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4178, allocations: 4.125 kB / 0.5647 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.418, allocations: 132.7 kB / 0.5648 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005541/0.4186, allocations: 67 kB / 0.5649 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005521/0.4241, allocations: 4.001 MB / 0.5688 GB, free: 8.508 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.4244, allocations: 261.6 kB / 0.569 GB, free: 8.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003768/0.4248, allocations: 131.1 kB / 0.5692 GB, free: 8.102 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002185/0.425, allocations: 143.4 kB / 0.5693 GB, free: 7.965 MB / 414.1 MB Notification: Performance of SimCode: time 9.12e-07/0.425, allocations: 0 / 0.5693 GB, free: 7.965 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03215/0.4572, allocations: 7.621 MB / 0.5767 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.25, allocations: 4 kB / 0.5767 GB, free: 0.5312 MB / 414.1 MB " [Timeout remaining time 648] (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial_fmu --startTime=0 --stopTime=0.1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_ReferenceInertial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.ReferenceInertial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.ReferenceInertial.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.413438892923295]