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.001488/0.001488, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.666/1.666, allocations: 205.3 MB / 214.1 MB, free: 14.08 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009989/0.0009988, allocations: 87.7 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1801/0.1801, allocations: 37.99 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.516e-05/1.519e-05, allocations: 0 / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09267, allocations: 56.32 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3234/0.4161, allocations: 95.66 MB / 0.5494 GB, free: 15.27 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001296/0.4175, allocations: 0.5815 MB / 0.5499 GB, free: 14.69 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04083/0.4583, allocations: 16.67 MB / 0.5662 GB, free: 13.87 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4584, allocations: 0 / 0.5662 GB, free: 13.87 MB / 411.1 MB Notification: Performance of Transformations before backend: time 2.626e-05/0.4584, allocations: 12 kB / 0.5662 GB, free: 13.86 MB / 411.1 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.001063/0.4595, allocations: 0.682 MB / 0.5669 GB, free: 13.12 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.4595, allocations: 8.031 kB / 0.5669 GB, free: 13.12 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008695/0.4604, allocations: 115.4 kB / 0.567 GB, free: 13 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.461, allocations: 394.4 kB / 0.5674 GB, free: 12.58 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.461, allocations: 12 kB / 0.5674 GB, free: 12.57 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.441e-05/0.461, allocations: 15.94 kB / 0.5674 GB, free: 12.55 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006257/0.4617, allocations: 408.7 kB / 0.5678 GB, free: 12.16 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005756/0.4623, allocations: 390 kB / 0.5682 GB, free: 11.74 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.4623, allocations: 0 / 0.5682 GB, free: 11.74 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.4623, allocations: 7.953 kB / 0.5682 GB, free: 11.73 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.549e-05/0.4624, allocations: 16.42 kB / 0.5682 GB, free: 11.72 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002161/0.4645, allocations: 1.674 MB / 0.5698 GB, free: 9.953 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006209/0.4652, allocations: 337.5 kB / 0.5702 GB, free: 9.605 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.4654, allocations: 114.2 kB / 0.5703 GB, free: 9.488 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.4654, allocations: 8.234 kB / 0.5703 GB, free: 9.48 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000374/0.4658, allocations: 263.2 kB / 0.5705 GB, free: 9.184 MB / 411.1 MB Notification: Performance of pre-optimization done (n=31): time 2.154e-06/0.4658, allocations: 0 / 0.5705 GB, free: 9.184 MB / 411.1 MB Notification: Performance of matching and sorting (n=31): time 0.0006234/0.4664, allocations: 349.6 kB / 0.5709 GB, free: 8.836 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/0.4666, allocations: 294.7 kB / 0.5711 GB, free: 8.48 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000323/0.4669, allocations: 305.1 kB / 0.5714 GB, free: 8.176 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.4669, allocations: 33.7 kB / 0.5715 GB, free: 8.137 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.4671, allocations: 192.1 kB / 0.5716 GB, free: 7.945 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.164e-05/0.4672, allocations: 94.91 kB / 0.5717 GB, free: 7.852 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.66e-05/0.4672, allocations: 4 kB / 0.5717 GB, free: 7.848 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.4673, allocations: 350.8 kB / 0.5721 GB, free: 7.496 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.4675, allocations: 112 kB / 0.5722 GB, free: 7.387 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/0.4678, allocations: 245.1 kB / 0.5724 GB, free: 7.086 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.468, allocations: 147.8 kB / 0.5726 GB, free: 6.941 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.468, allocations: 3.953 kB / 0.5726 GB, free: 6.938 MB / 411.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006/0.4686, allocations: 412.8 kB / 0.573 GB, free: 6.527 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.4687, allocations: 37.69 kB / 0.573 GB, free: 6.484 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.4687, allocations: 4.562 kB / 0.573 GB, free: 6.48 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.4687, allocations: 8 kB / 0.573 GB, free: 6.473 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003463/0.4691, allocations: 99.88 kB / 0.5731 GB, free: 6.375 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.4691, allocations: 7.938 kB / 0.5731 GB, free: 6.367 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002797/0.4694, allocations: 47.66 kB / 0.5732 GB, free: 6.32 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.4694, allocations: 20 kB / 0.5732 GB, free: 6.301 MB / 411.1 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.4695, allocations: 130.7 kB / 0.5733 GB, free: 6.168 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.207e-05/0.4696, allocations: 43.47 kB / 0.5733 GB, free: 6.125 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005934/0.4702, allocations: 380.3 kB / 0.5737 GB, free: 5.742 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.4702, allocations: 8 kB / 0.5737 GB, free: 5.734 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4702, allocations: 0 / 0.5737 GB, free: 5.734 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.4703, allocations: 7.938 kB / 0.5737 GB, free: 5.727 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008406/0.4711, allocations: 1.031 MB / 0.5747 GB, free: 4.629 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4711, allocations: 4 kB / 0.5747 GB, free: 4.625 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002969/0.4714, allocations: 84.08 kB / 0.5748 GB, free: 4.543 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.4714, allocations: 4 kB / 0.5748 GB, free: 4.539 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.4715, allocations: 4 kB / 0.5748 GB, free: 4.535 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4715, allocations: 4 kB / 0.5748 GB, free: 4.531 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.4715, allocations: 7.938 kB / 0.5748 GB, free: 4.523 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005903/0.4721, allocations: 0.5287 MB / 0.5753 GB, free: 3.898 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.121e-05/0.4722, allocations: 132.5 kB / 0.5755 GB, free: 3.75 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.4722, allocations: 7.984 kB / 0.5755 GB, free: 3.742 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.4725, allocations: 31.98 kB / 0.5755 GB, free: 3.711 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.754e-05/0.4726, allocations: 47.83 kB / 0.5756 GB, free: 3.664 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.747e-05/0.4726, allocations: 12 kB / 0.5756 GB, free: 3.652 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002169/0.4728, allocations: 244.6 kB / 0.5758 GB, free: 3.414 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4728, allocations: 0 / 0.5758 GB, free: 3.414 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0004111/0.4733, allocations: 99.78 kB / 0.5759 GB, free: 3.316 MB / 411.1 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.disturbance.count,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008101/0.4741, allocations: 401.8 kB / 0.5763 GB, free: 2.941 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0005267/0.4746, allocations: 371.2 kB / 0.5766 GB, free: 2.566 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4746, allocations: 4 kB / 0.5766 GB, free: 2.562 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002868/0.4749, allocations: 191.8 kB / 0.5768 GB, free: 2.375 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003739/0.4753, allocations: 54.8 kB / 0.5769 GB, free: 2.324 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009522/0.4763, allocations: 0.5318 MB / 0.5774 GB, free: 1.746 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000392/0.4767, allocations: 0.824 MB / 0.5782 GB, free: 0.8984 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0002488/0.4769, allocations: 91.19 kB / 0.5783 GB, free: 0.8086 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.4771, allocations: 39.42 kB / 0.5783 GB, free: 0.7695 MB / 411.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4771, allocations: 0 / 0.5783 GB, free: 0.7695 MB / 411.1 MB Notification: Performance of Templates: time 0.007838/0.4849, allocations: 4.309 MB / 0.5825 GB, free: 12.45 MB / 427.1 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