Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest",fmuType="me",version="2.0",platforms={"static"}) [: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.001158/0.001164, allocations: 186.2 kB / 8.138 MB, free: 2.18 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.631/1.631, 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.0009346/0.0009343, allocations: 95.47 kB / 261.8 MB, free: 13.46 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1844/0.1844, allocations: 37.96 MB / 347.7 MB, free: 7.387 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2464/0.4308, allocations: 62.43 MB / 410.1 MB, free: 46.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.5658, allocations: 56.32 MB / 466.4 MB, free: 6.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3844/0.9502, allocations: 99 MB / 0.5522 GB, free: 11.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006504/0.9568, allocations: 2.204 MB / 0.5543 GB, free: 9.047 MB / 394.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:465:11-465:52:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:468:7-475:13:writable] Warning: Returning false from overconstrained operator applied to array components having size zero: Connections.isRoot({}). Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.05575/1.013, allocations: 21.12 MB / 0.5749 GB, free: 3.645 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/1.013, allocations: 12 kB / 0.575 GB, free: 3.633 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/1.014, allocations: 115.4 kB / 0.5751 GB, free: 3.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007886/1.015, allocations: 395.1 kB / 0.5754 GB, free: 3.09 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/1.015, allocations: 8 kB / 0.5755 GB, free: 3.082 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/1.015, allocations: 20 kB / 0.5755 GB, free: 3.062 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000654/1.015, allocations: 388.7 kB / 0.5758 GB, free: 2.684 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006462/1.016, allocations: 395.5 kB / 0.5762 GB, free: 2.266 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/1.016, allocations: 3.938 kB / 0.5762 GB, free: 2.262 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.701e-05/1.016, allocations: 8 kB / 0.5762 GB, free: 2.254 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.555e-05/1.016, allocations: 24.42 kB / 0.5763 GB, free: 2.23 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/1.019, allocations: 1.841 MB / 0.5781 GB, free: 292 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004941/1.019, allocations: 281.9 kB / 0.5783 GB, free: 15.99 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/1.019, allocations: 122.1 kB / 0.5784 GB, free: 15.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/1.019, allocations: 4.297 kB / 0.5784 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003308/1.02, allocations: 245.4 kB / 0.5787 GB, free: 15.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 3.407e-06/1.02, allocations: 0 / 0.5787 GB, free: 15.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007125/1.02, allocations: 317 kB / 0.579 GB, free: 15.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/1.02, allocations: 239.3 kB / 0.5792 GB, free: 14.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003834/1.021, allocations: 315.5 kB / 0.5795 GB, free: 14.67 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.617e-05/1.021, allocations: 33.88 kB / 0.5795 GB, free: 14.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/1.021, allocations: 171.9 kB / 0.5797 GB, free: 14.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/1.021, allocations: 102.6 kB / 0.5798 GB, free: 14.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.766e-05/1.021, allocations: 0 / 0.5798 GB, free: 14.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000158/1.021, allocations: 342.8 kB / 0.5801 GB, free: 14.01 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/1.022, allocations: 116.7 kB / 0.5802 GB, free: 13.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002755/1.022, allocations: 258.3 kB / 0.5805 GB, free: 13.58 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/1.022, allocations: 158.2 kB / 0.5806 GB, free: 13.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/1.022, allocations: 0 / 0.5806 GB, free: 13.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007027/1.023, allocations: 415.1 kB / 0.581 GB, free: 13.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/1.023, allocations: 8.062 kB / 0.581 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/1.023, allocations: 4 kB / 0.581 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.514e-05/1.023, allocations: 11.94 kB / 0.5811 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004487/1.023, allocations: 99.88 kB / 0.5812 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.167e-05/1.023, allocations: 19.92 kB / 0.5812 GB, free: 12.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003571/1.024, allocations: 51.58 kB / 0.5812 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.523e-05/1.024, allocations: 23.98 kB / 0.5812 GB, free: 12.8 MB / 426.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 (45): * Single equations (assignments): 44 * 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.0001708/1.024, allocations: 120.9 kB / 0.5814 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/1.024, allocations: 39.53 kB / 0.5814 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000764/1.025, allocations: 380.5 kB / 0.5818 GB, free: 12.26 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/1.025, allocations: 11.98 kB / 0.5818 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/1.025, allocations: 0 / 0.5818 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/1.025, allocations: 11.89 kB / 0.5818 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/1.026, allocations: 0.8513 MB / 0.5826 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/1.026, allocations: 0 / 0.5826 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003481/1.026, allocations: 87.95 kB / 0.5827 GB, free: 11.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/1.026, allocations: 4 kB / 0.5827 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.123e-05/1.026, allocations: 11.98 kB / 0.5827 GB, free: 11.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/1.026, allocations: 4 kB / 0.5827 GB, free: 11.22 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.237e-06/1.027, allocations: 7.906 kB / 0.5827 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000692/1.027, allocations: 499.4 kB / 0.5832 GB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001008/1.028, allocations: 0.856 MB / 0.584 GB, free: 9.715 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/1.028, allocations: 124.6 kB / 0.5842 GB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.962e-05/1.028, allocations: 12 kB / 0.5842 GB, free: 9.562 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000263/1.029, allocations: 27.97 kB / 0.5842 GB, free: 9.535 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/1.029, allocations: 47.78 kB / 0.5842 GB, free: 9.488 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/1.029, allocations: 16 kB / 0.5843 GB, free: 9.473 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003224/1.029, allocations: 247.1 kB / 0.5845 GB, free: 9.234 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001178/1.03, allocations: 103.8 kB / 0.5846 GB, free: 9.133 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.0008624/1.031, allocations: 369.1 kB / 0.5849 GB, free: 8.785 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005678/1.032, allocations: 341.8 kB / 0.5853 GB, free: 8.445 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.032, allocations: 0 / 0.5853 GB, free: 8.445 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003141/1.032, allocations: 192.8 kB / 0.5854 GB, free: 8.258 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004283/1.033, allocations: 61.92 kB / 0.5855 GB, free: 8.199 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/1.034, allocations: 0.5251 MB / 0.586 GB, free: 7.633 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000543/1.034, allocations: 0.8796 MB / 0.5869 GB, free: 6.727 MB / 426.7 MB Notification: Performance of SimCode: time 1.693e-06/1.034, allocations: 0 / 0.5869 GB, free: 6.727 MB / 426.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmHVDCTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmHVDCTest_res.mat does not exist to compare? outputFormat=mat