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.001331/0.001331, allocations: 107.1 kB / 20.44 MB, free: 1.324 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.002097/0.002097, allocations: 198 kB / 23.72 MB, free: 4.492 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.509/1.509, allocations: 230.6 MB / 257.5 MB, free: 7.742 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.1867/0.1867, allocations: 38.57 MB / 352.5 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.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.002114/0.002114, allocations: 68.17 kB / 492.5 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.352, allocations: 62.47 MB / 0.5419 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007638/0.3596, allocations: 5.217 MB / 0.547 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.362, allocations: 1.071 MB / 0.5481 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002503/0.3622, allocations: 26.47 kB / 0.5481 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002936/0.3625, allocations: 82.08 kB / 0.5482 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008736/0.3634, allocations: 313.4 kB / 0.5485 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003266/0.3637, allocations: 140.9 kB / 0.5486 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001044/0.3648, allocations: 0.698 MB / 0.5493 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002823/0.3651, allocations: 120.9 kB / 0.5494 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000592/0.3657, allocations: 324.2 kB / 0.5497 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006289/0.3663, allocations: 323.1 kB / 0.55 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.3664, allocations: 32.94 kB / 0.5501 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.3665, allocations: 34.59 kB / 0.5501 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.3667, allocations: 166.8 kB / 0.5502 GB, free: 10 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002447/0.3669, allocations: 199.8 kB / 0.5504 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006265/0.3676, allocations: 0.4935 MB / 0.5509 GB, free: 9.555 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.3676, allocations: 0 / 0.5509 GB, free: 9.555 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.3676, allocations: 0 / 0.5509 GB, free: 9.555 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.3676, allocations: 0 / 0.5509 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.001493/0.3691, allocations: 0.7399 MB / 0.5516 GB, free: 8.965 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.3691, allocations: 10.16 kB / 0.5516 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.3692, allocations: 79.02 kB / 0.5517 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.3694, allocations: 53.95 kB / 0.5518 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008963/0.3703, allocations: 383.3 kB / 0.5521 GB, free: 8.562 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.261e-05/0.3703, allocations: 31.64 kB / 0.5522 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.232e-05/0.3704, allocations: 43.83 kB / 0.5522 GB, free: 8.523 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008103/0.3712, allocations: 458.1 kB / 0.5526 GB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.3712, allocations: 9.234 kB / 0.5527 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.987e-05/0.3713, allocations: 15.59 kB / 0.5527 GB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.3713, allocations: 13.2 kB / 0.5527 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005226/0.3718, allocations: 303.7 kB / 0.553 GB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.3741, allocations: 1.641 MB / 0.5546 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000284/0.3744, allocations: 144.3 kB / 0.5547 GB, free: 6.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.427e-05/0.3745, allocations: 51.55 kB / 0.5548 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.834e-05/0.3745, allocations: 2.156 kB / 0.5548 GB, free: 6.418 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.3745, allocations: 45.8 kB / 0.5548 GB, free: 6.367 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.954e-06/0.3745, allocations: 4 kB / 0.5548 GB, free: 6.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=15): time 0.00117/0.3757, allocations: 0.5359 MB / 0.5553 GB, free: 5.945 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.909e-05/0.3758, allocations: 109.5 kB / 0.5554 GB, free: 5.816 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004658/0.3762, allocations: 378.2 kB / 0.5558 GB, free: 5.578 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.873e-05/0.3763, allocations: 30.73 kB / 0.5558 GB, free: 5.543 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002689/0.3765, allocations: 288.1 kB / 0.5561 GB, free: 5.281 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.281e-05/0.3766, allocations: 59.98 kB / 0.5562 GB, free: 5.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.3767, allocations: 59.19 kB / 0.5562 GB, free: 5.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002152/0.3769, allocations: 351.3 kB / 0.5566 GB, free: 4.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.377, allocations: 50.84 kB / 0.5566 GB, free: 4.82 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002756/0.3773, allocations: 198.1 kB / 0.5568 GB, free: 4.602 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003947/0.3777, allocations: 274.9 kB / 0.5571 GB, free: 4.266 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3777, allocations: 0 / 0.5571 GB, free: 4.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005075/0.3782, allocations: 285.6 kB / 0.5573 GB, free: 3.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.3782, allocations: 8 kB / 0.5573 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3782, allocations: 8 kB / 0.5573 GB, free: 3.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.3783, allocations: 8 kB / 0.5574 GB, free: 3.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.3785, allocations: 67.91 kB / 0.5574 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.3786, allocations: 15.92 kB / 0.5574 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.3788, allocations: 15.95 kB / 0.5574 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.3788, allocations: 19.94 kB / 0.5575 GB, free: 3.84 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.0002423/0.379, allocations: 177.6 kB / 0.5576 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-05/0.3791, allocations: 43.77 kB / 0.5577 GB, free: 3.613 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003344/0.3795, allocations: 168.7 kB / 0.5578 GB, free: 3.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.3795, allocations: 4 kB / 0.5578 GB, free: 3.438 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.3795, allocations: 4 kB / 0.5578 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3795, allocations: 0 / 0.5578 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007956/0.3803, allocations: 498.2 kB / 0.5583 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.3803, allocations: 0 / 0.5583 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/0.3805, allocations: 31.98 kB / 0.5583 GB, free: 2.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.3805, allocations: 4.438 kB / 0.5584 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.3805, allocations: 3.938 kB / 0.5584 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.813e-06/0.3805, allocations: 7.938 kB / 0.5584 GB, free: 2.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.3805, allocations: 7.938 kB / 0.5584 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004931/0.381, allocations: 402.9 kB / 0.5588 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.937e-05/0.3811, allocations: 39.7 kB / 0.5588 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.464e-05/0.3811, allocations: 7.984 kB / 0.5588 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.3813, allocations: 7.938 kB / 0.5588 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.3813, allocations: 11.92 kB / 0.5588 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.3813, allocations: 12 kB / 0.5588 GB, free: 2.348 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003124/0.3816, allocations: 251.2 kB / 0.5591 GB, free: 2.105 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3816, allocations: 0 / 0.5591 GB, free: 2.105 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004968/0.3821, allocations: 72 kB / 0.5591 GB, free: 2.035 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.0007869/0.3829, allocations: 0.9318 MB / 0.5601 GB, free: 1.066 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000314/0.3832, allocations: 152.2 kB / 0.5602 GB, free: 0.918 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3832, allocations: 0 / 0.5602 GB, free: 0.918 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 9.502e-05/0.3833, allocations: 53.33 kB / 0.5602 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007019/0.384, allocations: 108.9 kB / 0.5604 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004639/0.3887, allocations: 3.407 MB / 0.5637 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.389, allocations: 235.8 kB / 0.5639 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001731/0.3891, allocations: 47.25 kB / 0.5639 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.3893, allocations: 155.4 kB / 0.5641 GB, free: 12.68 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3893, allocations: 0 / 0.5641 GB, free: 12.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04502/0.4344, allocations: 7.917 MB / 0.5718 GB, free: 4.961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.81, allocations: 15.31 kB / 0.5718 GB, free: 4.949 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.69954470731318]