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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001569/0.001569, allocations: 182.5 kB / 8.132 MB, free: 2.215 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.489/1.489, allocations: 205.2 MB / 213.7 MB, free: 13.84 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.0009126/0.0009124, allocations: 91.95 kB / 261.7 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1636/0.1636, allocations: 37.97 MB / 347.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.666e-06/8.687e-06, allocations: 0 / 410 MB, free: 46.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1259, allocations: 56.32 MB / 466.3 MB, free: 6.453 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3453/0.4712, allocations: 95.64 MB / 0.5488 GB, free: 14.91 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006109/0.4774, allocations: 2.201 MB / 0.5509 GB, free: 12.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0415/0.5189, allocations: 16.35 MB / 0.5669 GB, free: 12.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.133e-05/0.519, allocations: 8 kB / 0.5669 GB, free: 12.2 MB / 410.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.001365/0.5204, allocations: 0.7208 MB / 0.5676 GB, free: 11.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.5204, allocations: 8.031 kB / 0.5676 GB, free: 11.42 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009627/0.5214, allocations: 115.4 kB / 0.5677 GB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006686/0.5221, allocations: 395.2 kB / 0.5681 GB, free: 10.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.5221, allocations: 11.94 kB / 0.5681 GB, free: 10.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.044e-05/0.5222, allocations: 16 kB / 0.5681 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006583/0.5228, allocations: 408.5 kB / 0.5685 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006257/0.5235, allocations: 393.6 kB / 0.5689 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.5235, allocations: 7.938 kB / 0.5689 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.5235, allocations: 0 / 0.5689 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.8e-05/0.5236, allocations: 20.42 kB / 0.5689 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.526, allocations: 1.686 MB / 0.5706 GB, free: 8.238 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.5265, allocations: 285.7 kB / 0.5709 GB, free: 7.941 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.5268, allocations: 122.2 kB / 0.571 GB, free: 7.816 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.5268, allocations: 240 / 0.571 GB, free: 7.816 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003302/0.5271, allocations: 251.2 kB / 0.5712 GB, free: 7.531 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.623e-06/0.5271, allocations: 4 kB / 0.5712 GB, free: 7.527 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006043/0.5278, allocations: 323.4 kB / 0.5715 GB, free: 7.207 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001984/0.528, allocations: 290.7 kB / 0.5718 GB, free: 6.855 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003886/0.5284, allocations: 315.7 kB / 0.5721 GB, free: 6.535 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.5284, allocations: 33.7 kB / 0.5721 GB, free: 6.496 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.5285, allocations: 160.1 kB / 0.5723 GB, free: 6.332 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.902e-05/0.5286, allocations: 98.64 kB / 0.5724 GB, free: 6.234 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.663e-05/0.5287, allocations: 0 / 0.5724 GB, free: 6.234 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.5288, allocations: 346.8 kB / 0.5727 GB, free: 5.887 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.529, allocations: 116 kB / 0.5728 GB, free: 5.773 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002992/0.5294, allocations: 253 kB / 0.5731 GB, free: 5.465 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002388/0.5296, allocations: 152.3 kB / 0.5732 GB, free: 5.316 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.5296, allocations: 4 kB / 0.5732 GB, free: 5.312 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006231/0.5302, allocations: 405.3 kB / 0.5736 GB, free: 4.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.5303, allocations: 15.98 kB / 0.5736 GB, free: 4.895 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-06/0.5303, allocations: 4 kB / 0.5736 GB, free: 4.891 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.5303, allocations: 8 kB / 0.5736 GB, free: 4.883 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003752/0.5307, allocations: 95.83 kB / 0.5737 GB, free: 4.789 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.5307, allocations: 11.98 kB / 0.5737 GB, free: 4.777 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.531, allocations: 51.59 kB / 0.5738 GB, free: 4.727 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.511e-05/0.5311, allocations: 27.91 kB / 0.5738 GB, free: 4.699 MB / 410.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 () * 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.000137/0.5312, allocations: 124.8 kB / 0.5739 GB, free: 4.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.886e-05/0.5313, allocations: 31.62 kB / 0.574 GB, free: 4.539 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006783/0.532, allocations: 372.4 kB / 0.5743 GB, free: 4.168 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.532, allocations: 4 kB / 0.5743 GB, free: 4.164 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.532, allocations: 4 kB / 0.5743 GB, free: 4.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.532, allocations: 7.984 kB / 0.5743 GB, free: 4.152 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001033/0.5331, allocations: 1.035 MB / 0.5753 GB, free: 3.051 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.5331, allocations: 4 kB / 0.5753 GB, free: 3.047 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/0.5334, allocations: 84.08 kB / 0.5754 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.5334, allocations: 4 kB / 0.5754 GB, free: 2.961 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.004e-05/0.5335, allocations: 7.984 kB / 0.5754 GB, free: 2.953 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.5335, allocations: 4 kB / 0.5754 GB, free: 2.949 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.5335, allocations: 8 kB / 0.5754 GB, free: 2.941 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006703/0.5342, allocations: 0.5206 MB / 0.576 GB, free: 2.324 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.5343, allocations: 132.6 kB / 0.5761 GB, free: 2.176 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.585e-05/0.5344, allocations: 15.98 kB / 0.5761 GB, free: 2.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.5346, allocations: 31.97 kB / 0.5761 GB, free: 2.129 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.5347, allocations: 35.94 kB / 0.5762 GB, free: 2.094 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.045e-05/0.5348, allocations: 19.98 kB / 0.5762 GB, free: 2.074 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002618/0.535, allocations: 235.1 kB / 0.5764 GB, free: 1.848 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004691/0.5355, allocations: 95.84 kB / 0.5765 GB, free: 1.754 MB / 410.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.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.0008521/0.5364, allocations: 366.5 kB / 0.5768 GB, free: 1.414 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005404/0.5369, allocations: 329.5 kB / 0.5772 GB, free: 1.086 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5369, allocations: 5.125 kB / 0.5772 GB, free: 1.082 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.5373, allocations: 196.2 kB / 0.5773 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003679/0.5376, allocations: 57.11 kB / 0.5774 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001117/0.5388, allocations: 0.5465 MB / 0.5779 GB, free: 240 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000607/0.5394, allocations: 0.8742 MB / 0.5788 GB, free: 15.33 MB / 426.7 MB Notification: Performance of SimCode: time 3.61e-07/0.5394, allocations: 0 / 0.5788 GB, free: 15.33 MB / 426.7 MB Notification: Performance of Templates: time 0.009141/0.5485, allocations: 4.647 MB / 0.5833 GB, free: 10.69 MB / 426.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