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.001679/0.001679, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002285/0.002285, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.505/1.505, allocations: 230.6 MB / 258.3 MB, free: 7.805 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.2347/0.2347, allocations: 38.55 MB / 353.2 MB, free: 12.34 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.002063/0.002063, allocations: 63.89 kB / 493.2 MB, free: 4.742 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.346, allocations: 62.47 MB / 0.5427 GB, free: 280 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007185/0.3532, allocations: 5.206 MB / 0.5478 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002178/0.3553, allocations: 1.08 MB / 0.5488 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002327/0.3556, allocations: 27.31 kB / 0.5489 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.3558, allocations: 74.25 kB / 0.5489 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007613/0.3566, allocations: 309.2 kB / 0.5492 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003181/0.3569, allocations: 148.5 kB / 0.5494 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008388/0.3577, allocations: 0.6975 MB / 0.55 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002623/0.358, allocations: 126 kB / 0.5502 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005492/0.3585, allocations: 320.1 kB / 0.5505 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005426/0.3591, allocations: 347.2 kB / 0.5508 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.581e-05/0.3592, allocations: 37 kB / 0.5508 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.938e-05/0.3592, allocations: 33.5 kB / 0.5509 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001976/0.3594, allocations: 159 kB / 0.551 GB, free: 10 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002449/0.3597, allocations: 200.5 kB / 0.5512 GB, free: 9.891 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006011/0.3603, allocations: 0.493 MB / 0.5517 GB, free: 9.559 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3603, allocations: 3.938 kB / 0.5517 GB, free: 9.555 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3603, allocations: 0 / 0.5517 GB, free: 9.555 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.3603, allocations: 1.125 kB / 0.5517 GB, free: 9.555 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.001447/0.3618, allocations: 0.7353 MB / 0.5524 GB, free: 8.973 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.3618, allocations: 9.719 kB / 0.5524 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.346e-05/0.3618, allocations: 10.12 kB / 0.5524 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000144/0.362, allocations: 76.16 kB / 0.5525 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.691e-05/0.3621, allocations: 58.27 kB / 0.5526 GB, free: 8.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007596/0.3628, allocations: 393.2 kB / 0.5529 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.3629, allocations: 28.53 kB / 0.553 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.838e-05/0.3629, allocations: 39.42 kB / 0.553 GB, free: 8.527 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000722/0.3637, allocations: 462.4 kB / 0.5534 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.3637, allocations: 1 kB / 0.5534 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.3637, allocations: 16.44 kB / 0.5535 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.3637, allocations: 9.656 kB / 0.5535 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005165/0.3642, allocations: 308.7 kB / 0.5538 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.3666, allocations: 1.644 MB / 0.5554 GB, free: 6.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002604/0.3668, allocations: 137.2 kB / 0.5555 GB, free: 6.461 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.3669, allocations: 60.34 kB / 0.5556 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.3669, allocations: 2.188 kB / 0.5556 GB, free: 6.414 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.367, allocations: 32.66 kB / 0.5556 GB, free: 6.375 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.367, allocations: 1.062 kB / 0.5556 GB, free: 6.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.001048/0.368, allocations: 0.5507 MB / 0.5561 GB, free: 5.941 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.375e-05/0.3681, allocations: 109.3 kB / 0.5562 GB, free: 5.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004244/0.3685, allocations: 369.6 kB / 0.5566 GB, free: 5.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.3686, allocations: 34.92 kB / 0.5566 GB, free: 5.543 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000222/0.3688, allocations: 288.4 kB / 0.5569 GB, free: 5.285 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.439e-05/0.3688, allocations: 55.09 kB / 0.5569 GB, free: 5.238 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.3689, allocations: 63.23 kB / 0.557 GB, free: 5.191 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.3691, allocations: 351.7 kB / 0.5573 GB, free: 4.848 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.829e-05/0.3692, allocations: 47.23 kB / 0.5574 GB, free: 4.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.3695, allocations: 190.3 kB / 0.5576 GB, free: 4.617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.3698, allocations: 269.7 kB / 0.5578 GB, free: 4.301 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3698, allocations: 4 kB / 0.5578 GB, free: 4.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004568/0.3703, allocations: 293.2 kB / 0.5581 GB, free: 4.004 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.3703, allocations: 15.88 kB / 0.5581 GB, free: 3.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.3703, allocations: 4 kB / 0.5581 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.3703, allocations: 8 kB / 0.5581 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.3706, allocations: 63.91 kB / 0.5582 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.3706, allocations: 11.94 kB / 0.5582 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.3707, allocations: 11.95 kB / 0.5582 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.3708, allocations: 23.94 kB / 0.5582 GB, free: 3.867 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.0001941/0.371, allocations: 185.9 kB / 0.5584 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.774e-05/0.371, allocations: 35.77 kB / 0.5585 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002947/0.3713, allocations: 168.7 kB / 0.5586 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3713, allocations: 4 kB / 0.5586 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.3713, allocations: 0 / 0.5586 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3714, allocations: 7.984 kB / 0.5586 GB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006827/0.372, allocations: 494.5 kB / 0.5591 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.372, allocations: 0 / 0.5591 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/0.3722, allocations: 35.92 kB / 0.5591 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3722, allocations: 3.984 kB / 0.5591 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.936e-05/0.3723, allocations: 16.02 kB / 0.5592 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.3723, allocations: 3.938 kB / 0.5592 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3723, allocations: 4.078 kB / 0.5592 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004569/0.3727, allocations: 400.1 kB / 0.5595 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.805e-05/0.3728, allocations: 39.75 kB / 0.5596 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.3728, allocations: 7.938 kB / 0.5596 GB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.373, allocations: 4.438 kB / 0.5596 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.845e-05/0.373, allocations: 15.97 kB / 0.5596 GB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.3731, allocations: 4 kB / 0.5596 GB, free: 2.379 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000286/0.3733, allocations: 251.2 kB / 0.5598 GB, free: 2.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3733, allocations: 4 kB / 0.5599 GB, free: 2.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004185/0.3738, allocations: 76 kB / 0.5599 GB, free: 2.059 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.000765/0.3745, allocations: 0.9279 MB / 0.5608 GB, free: 1.094 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002951/0.3748, allocations: 148.6 kB / 0.561 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3748, allocations: 320 / 0.561 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.611e-05/0.3749, allocations: 56.02 kB / 0.561 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007209/0.3756, allocations: 94.75 kB / 0.5611 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004791/0.3804, allocations: 3.416 MB / 0.5645 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.3807, allocations: 235.8 kB / 0.5647 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.3809, allocations: 55.17 kB / 0.5647 GB, free: 12.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002378/0.3811, allocations: 151.4 kB / 0.5649 GB, free: 12.71 MB / 414.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3811, allocations: 0 / 0.5649 GB, free: 12.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.4146, allocations: 7.626 MB / 0.5723 GB, free: 5.309 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/12.41, allocations: 1.5 kB / 0.5723 GB, free: 5.309 MB / 414.1 MB " [Timeout remaining time 647] (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.483333715936169]