Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") translateModel(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|windFarm.p.1.|windFarm.p.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008805/0.0008806, allocations: 185.5 kB / 16.71 MB, free: 4.941 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.235/1.235, allocations: 225.7 MB / 243.2 MB, free: 8.465 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007413/0.0007414, allocations: 92.23 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2701/0.2701, allocations: 38.18 MB / 383.7 MB, free: 40.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003069/0.000307, allocations: 8 kB / 453.6 MB, free: 8.762 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3011, allocations: 59.14 MB / 0.5007 GB, free: 38.94 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004083/0.3052, allocations: 3.697 MB / 0.5043 GB, free: 38.65 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003205/0.3085, allocations: 3.429 MB / 0.5076 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002767/0.3088, allocations: 17.62 kB / 0.5077 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004387/0.3092, allocations: 55.66 kB / 0.5077 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008517/0.3101, allocations: 263.5 kB / 0.508 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009329/0.311, allocations: 259.4 kB / 0.5082 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007377/0.3118, allocations: 0.6224 MB / 0.5088 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006693/0.3124, allocations: 0.5182 MB / 0.5093 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004021/0.3129, allocations: 186.2 kB / 0.5095 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.3131, allocations: 200.1 kB / 0.5097 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.428e-05/0.3132, allocations: 14.84 kB / 0.5097 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007211/0.3139, allocations: 429.8 kB / 0.5101 GB, free: 34.8 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.314, allocations: 97.91 kB / 0.5102 GB, free: 34.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.3142, allocations: 187.8 kB / 0.5104 GB, free: 34.63 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007772/0.315, allocations: 0.6329 MB / 0.511 GB, free: 34.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.315, allocations: 0 / 0.511 GB, free: 34.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.315, allocations: 0 / 0.511 GB, free: 34.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.315, allocations: 0 / 0.511 GB, free: 34.43 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0009682/0.316, allocations: 0.6753 MB / 0.5117 GB, free: 33.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.316, allocations: 9.969 kB / 0.5117 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000774/0.3168, allocations: 115.7 kB / 0.5118 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004608/0.3173, allocations: 406.8 kB / 0.5122 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.3173, allocations: 18.69 kB / 0.5122 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.3174, allocations: 26.44 kB / 0.5122 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007335/0.3181, allocations: 457.5 kB / 0.5127 GB, free: 33.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3182, allocations: 0 / 0.5127 GB, free: 33.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.546e-05/0.3182, allocations: 13.83 kB / 0.5127 GB, free: 33.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.988e-05/0.3182, allocations: 13.81 kB / 0.5127 GB, free: 33.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008644/0.3191, allocations: 0.5257 MB / 0.5132 GB, free: 33.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.3207, allocations: 1.691 MB / 0.5148 GB, free: 31.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008258/0.3215, allocations: 389.7 kB / 0.5152 GB, free: 31.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003163/0.3218, allocations: 152.2 kB / 0.5154 GB, free: 31.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.685e-05/0.3219, allocations: 7.422 kB / 0.5154 GB, free: 31.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004589/0.3224, allocations: 300.5 kB / 0.5157 GB, free: 31.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.743e-06/0.3224, allocations: 4 kB / 0.5157 GB, free: 31.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001138/0.3235, allocations: 0.5581 MB / 0.5162 GB, free: 31.37 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.3236, allocations: 298 kB / 0.5165 GB, free: 31.02 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.3239, allocations: 318.3 kB / 0.5168 GB, free: 30.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.3239, allocations: 39.64 kB / 0.5168 GB, free: 30.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.851e-05/0.324, allocations: 191.1 kB / 0.517 GB, free: 30.65 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.91e-05/0.3241, allocations: 110.3 kB / 0.5171 GB, free: 30.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.609e-05/0.3241, allocations: 4 kB / 0.5171 GB, free: 30.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.816e-05/0.3242, allocations: 356.8 kB / 0.5175 GB, free: 30.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003441/0.3245, allocations: 148.3 kB / 0.5176 GB, free: 30.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.3249, allocations: 286.1 kB / 0.5179 GB, free: 29.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007212/0.3257, allocations: 480.1 kB / 0.5183 GB, free: 29.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3257, allocations: 1.188 kB / 0.5183 GB, free: 29.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009479/0.3266, allocations: 0.541 MB / 0.5189 GB, free: 29.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.706e-05/0.3267, allocations: 33.33 kB / 0.5189 GB, free: 29.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3267, allocations: 5.141 kB / 0.5189 GB, free: 29.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.3267, allocations: 11.03 kB / 0.5189 GB, free: 29.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003355/0.3271, allocations: 91.69 kB / 0.519 GB, free: 29.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.3271, allocations: 15.08 kB / 0.519 GB, free: 29.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.3274, allocations: 53.2 kB / 0.5191 GB, free: 29.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-05/0.3274, allocations: 23.47 kB / 0.5191 GB, free: 29.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$PRE.windFarm.wind.nextTimeEvent,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0001895/0.3276, allocations: 201 kB / 0.5193 GB, free: 29.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.714e-05/0.3277, allocations: 42.67 kB / 0.5193 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.125e-05/0.3278, allocations: 52.66 kB / 0.5194 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3278, allocations: 7.344 kB / 0.5194 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.3278, allocations: 0 / 0.5194 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3278, allocations: 4.812 kB / 0.5194 GB, free: 29.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006212/0.3284, allocations: 1.035 MB / 0.5204 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3284, allocations: 3 kB / 0.5204 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.3287, allocations: 70.44 kB / 0.5205 GB, free: 28.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.3287, allocations: 2.75 kB / 0.5205 GB, free: 28.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.226e-05/0.3287, allocations: 12.91 kB / 0.5205 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3287, allocations: 5.344 kB / 0.5205 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3287, allocations: 2.594 kB / 0.5205 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007428/0.3295, allocations: 487 kB / 0.5209 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.52e-05/0.3296, allocations: 116.2 kB / 0.5211 GB, free: 27.87 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.705e-05/0.3296, allocations: 11.33 kB / 0.5211 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.3298, allocations: 36.41 kB / 0.5211 GB, free: 27.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.858e-05/0.3299, allocations: 40.58 kB / 0.5211 GB, free: 27.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.33, allocations: 13.06 kB / 0.5212 GB, free: 27.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001998/0.3302, allocations: 235.7 kB / 0.5214 GB, free: 27.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3302, allocations: 0 / 0.5214 GB, free: 27.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003716/0.3305, allocations: 95.06 kB / 0.5215 GB, free: 27.69 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count) * Number of discrete states: 3 (windFarm.wind.nextTimeEventScaled,windFarm.disturbance.count,windFarm.wind.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0009685/0.3315, allocations: 0.5325 MB / 0.522 GB, free: 27.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007557/0.3323, allocations: 434.9 kB / 0.5224 GB, free: 27.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3323, allocations: 3.031 kB / 0.5224 GB, free: 27.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003829/0.3327, allocations: 209.6 kB / 0.5226 GB, free: 27.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004787/0.3332, allocations: 70.2 kB / 0.5227 GB, free: 27.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009659/0.3342, allocations: 0.8387 MB / 0.5235 GB, free: 26.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.3344, allocations: 0.8033 MB / 0.5243 GB, free: 25.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.3346, allocations: 89.59 kB / 0.5244 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.228e-05/0.3347, allocations: 42.41 kB / 0.5244 GB, free: 25.83 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3347, allocations: 0 / 0.5244 GB, free: 25.83 MB / 378.7 MB Notification: Performance of Templates: time 0.006903/0.3416, allocations: 4.299 MB / 0.5286 GB, free: 25.45 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches