Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001153/0.001153, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.489/1.489, allocations: 205.1 MB / 223.1 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009494/0.0009492, allocations: 100.2 kB / 270.5 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1703/0.1703, allocations: 38 MB / 355.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009997/0.0009997, allocations: 51.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2903, allocations: 55.24 MB / 477.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest): time 0.004798/0.2952, allocations: 4.124 MB / 481.2 MB, free: 7 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.2978, allocations: 2.107 MB / 483.3 MB, free: 5.531 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001931/0.298, allocations: 19.28 kB / 483.4 MB, free: 5.523 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007782/0.2988, allocations: 221.6 kB / 483.6 MB, free: 5.395 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005612/0.2993, allocations: 268.5 kB / 483.8 MB, free: 5.242 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005476/0.2999, allocations: 229.2 kB / 484.1 MB, free: 5.121 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006228/0.3005, allocations: 0.6271 MB / 484.7 MB, free: 4.883 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000363/0.3009, allocations: 194.1 kB / 484.9 MB, free: 4.809 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003685/0.3013, allocations: 195 kB / 485.1 MB, free: 4.727 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002542/0.3016, allocations: 203 kB / 485.3 MB, free: 4.648 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/0.3016, allocations: 17.69 kB / 485.3 MB, free: 4.648 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007187/0.3023, allocations: 460.6 kB / 485.7 MB, free: 4.48 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.3025, allocations: 111.6 kB / 485.8 MB, free: 4.434 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000168/0.3027, allocations: 175.6 kB / 486 MB, free: 4.32 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008692/0.3035, allocations: 0.6361 MB / 486.6 MB, free: 4.082 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3036, allocations: 0 / 486.6 MB, free: 4.082 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3036, allocations: 0.75 kB / 486.6 MB, free: 4.082 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.3036, allocations: 1.375 kB / 486.6 MB, free: 4.082 MB / 314.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.00121/0.3048, allocations: 0.7422 MB / 487.4 MB, free: 3.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.3048, allocations: 9.688 kB / 487.4 MB, free: 3.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008483/0.3057, allocations: 112.3 kB / 487.5 MB, free: 3.449 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005332/0.3062, allocations: 407.5 kB / 487.9 MB, free: 3.133 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.3063, allocations: 17.72 kB / 487.9 MB, free: 3.121 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.342e-05/0.3063, allocations: 28.7 kB / 487.9 MB, free: 3.109 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008227/0.3072, allocations: 451.1 kB / 488.4 MB, free: 2.895 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.3072, allocations: 0 / 488.4 MB, free: 2.895 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.529e-05/0.3072, allocations: 7.391 kB / 488.4 MB, free: 2.891 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.83e-05/0.3073, allocations: 21.52 kB / 488.4 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.3083, allocations: 0.4966 MB / 488.9 MB, free: 2.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002025/0.3103, allocations: 1.673 MB / 490.6 MB, free: 1.547 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009626/0.3113, allocations: 362.7 kB / 490.9 MB, free: 1.402 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003716/0.3117, allocations: 142.7 kB / 491.1 MB, free: 1.344 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.979e-05/0.3117, allocations: 15.05 kB / 491.1 MB, free: 1.336 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005599/0.3123, allocations: 291.6 kB / 491.4 MB, free: 1.152 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 2.855e-06/0.3123, allocations: 7.922 kB / 491.4 MB, free: 1.145 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.001347/0.3137, allocations: 0.5214 MB / 491.9 MB, free: 0.957 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.305e-05/0.3138, allocations: 293.9 kB / 492.2 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/0.3142, allocations: 333.5 kB / 492.5 MB, free: 440 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.219e-05/0.3142, allocations: 34.12 kB / 492.6 MB, free: 404 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.3144, allocations: 203.4 kB / 492.8 MB, free: 224 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.008e-05/0.3145, allocations: 96.42 kB / 492.8 MB, free: 152 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3146, allocations: 69.06 kB / 492.9 MB, free: 112 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.3148, allocations: 347.2 kB / 493.3 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004019/0.3152, allocations: 139.1 kB / 493.4 MB, free: 15.74 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004714/0.3157, allocations: 277 kB / 493.7 MB, free: 15.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008802/0.3166, allocations: 460.5 kB / 494.1 MB, free: 15.2 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3166, allocations: 1.25 kB / 494.1 MB, free: 15.2 MB / 330.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001131/0.3177, allocations: 0.5182 MB / 494.6 MB, free: 14.97 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.118e-05/0.3178, allocations: 38.84 kB / 494.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3178, allocations: 4.469 kB / 494.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.3178, allocations: 6.688 kB / 494.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003397/0.3182, allocations: 89.78 kB / 494.8 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.3182, allocations: 8.266 kB / 494.8 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002985/0.3185, allocations: 45.23 kB / 494.8 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.998e-05/0.3186, allocations: 20.69 kB / 494.8 MB, free: 14.9 MB / 330.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 ($PRE.windFarm.wind.nextTimeEvent,$whenCondition2,windFarm.disturbance.count,$PRE.windFarm.disturbance.count,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.T_start,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEvent,$whenCondition1,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.0002279/0.3188, allocations: 195.8 kB / 495 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.549e-05/0.3189, allocations: 39.66 kB / 495.1 MB, free: 14.72 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.319, allocations: 53.03 kB / 495.1 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.319, allocations: 5.031 kB / 495.1 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.319, allocations: 5.812 kB / 495.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.319, allocations: 4.375 kB / 495.1 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001047/0.3201, allocations: 1.036 MB / 496.2 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.3201, allocations: 3.953 kB / 496.2 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.3204, allocations: 58.45 kB / 496.2 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.3204, allocations: 2.469 kB / 496.2 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.3204, allocations: 16.55 kB / 496.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.3204, allocations: 7.344 kB / 496.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.3204, allocations: 3.312 kB / 496.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001664/0.3221, allocations: 1.223 MB / 497.5 MB, free: 12.88 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.173e-05/0.3222, allocations: 116.2 kB / 497.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.124e-05/0.3223, allocations: 16.34 kB / 497.6 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.3225, allocations: 25.28 kB / 497.6 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.3226, allocations: 39.25 kB / 497.7 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.3227, allocations: 11.55 kB / 497.7 MB, free: 12.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002857/0.3229, allocations: 241 kB / 497.9 MB, free: 12.6 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.323, allocations: 0 / 497.9 MB, free: 12.6 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005289/0.3235, allocations: 94.94 kB / 498 MB, free: 12.58 MB / 330.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.0009704/0.3245, allocations: 474 kB / 498.5 MB, free: 12.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009877/0.3255, allocations: 404.7 kB / 498.9 MB, free: 12.08 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3255, allocations: 1.125 kB / 498.9 MB, free: 12.08 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004963/0.326, allocations: 207 kB / 499.1 MB, free: 12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005069/0.3265, allocations: 69.52 kB / 499.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001533/0.3281, allocations: 1.027 MB / 0.4884 GB, free: 11.24 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003998/0.3285, allocations: 0.8102 MB / 0.4892 GB, free: 10.48 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002752/0.3287, allocations: 83.89 kB / 0.4893 GB, free: 10.45 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.3289, allocations: 47.11 kB / 0.4894 GB, free: 10.43 MB / 330.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3289, allocations: 0 / 0.4894 GB, free: 10.43 MB / 330.7 MB Notification: Performance of Templates: time 0.009213/0.3381, allocations: 4.494 MB / 0.4938 GB, free: 8.172 MB / 330.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@2/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