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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest",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.001117/0.001117, allocations: 181 kB / 8.132 MB, free: 2.133 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.547/1.547, allocations: 205.2 MB / 213.7 MB, free: 13.91 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.001257/0.001257, allocations: 95.39 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1841/0.1841, allocations: 37.96 MB / 347.7 MB, free: 7.473 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2328/0.4169, allocations: 62.44 MB / 410.1 MB, free: 46.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.5399, allocations: 56.32 MB / 466.4 MB, free: 6.363 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3962/0.9361, allocations: 95.64 MB / 0.5489 GB, free: 14.83 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.007316/0.9435, allocations: 2.202 MB / 0.551 GB, free: 12.65 MB / 394.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.04603/0.9896, allocations: 17.08 MB / 0.5677 GB, free: 11.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.9897, allocations: 12 kB / 0.5677 GB, free: 11.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001114/0.9908, allocations: 115.4 kB / 0.5678 GB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00085/0.9917, allocations: 387.2 kB / 0.5682 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.9917, allocations: 12 kB / 0.5682 GB, free: 10.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.511e-05/0.9918, allocations: 12 kB / 0.5682 GB, free: 10.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007756/0.9926, allocations: 412.5 kB / 0.5686 GB, free: 10.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000733/0.9933, allocations: 397.5 kB / 0.569 GB, free: 9.977 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/0.9933, allocations: 0 / 0.569 GB, free: 9.977 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.17e-05/0.9934, allocations: 4 kB / 0.569 GB, free: 9.973 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.152e-05/0.9935, allocations: 20.42 kB / 0.569 GB, free: 9.953 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003003/0.9965, allocations: 1.69 MB / 0.5707 GB, free: 8.168 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005668/0.9971, allocations: 281.7 kB / 0.5709 GB, free: 7.875 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.9973, allocations: 118.2 kB / 0.5711 GB, free: 7.754 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.078e-05/0.9973, allocations: 8.219 kB / 0.5711 GB, free: 7.746 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003856/0.9977, allocations: 251.2 kB / 0.5713 GB, free: 7.461 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 5.08e-06/0.9978, allocations: 4 kB / 0.5713 GB, free: 7.457 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007272/0.9985, allocations: 327.4 kB / 0.5716 GB, free: 7.133 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001815/0.9987, allocations: 294.7 kB / 0.5719 GB, free: 6.777 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003852/0.9991, allocations: 307.5 kB / 0.5722 GB, free: 6.465 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.852e-05/0.9991, allocations: 29.95 kB / 0.5722 GB, free: 6.43 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.9993, allocations: 164.1 kB / 0.5724 GB, free: 6.262 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.364e-05/0.9994, allocations: 102.6 kB / 0.5725 GB, free: 6.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.697e-05/0.9994, allocations: 0 / 0.5725 GB, free: 6.16 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.9995, allocations: 338.8 kB / 0.5728 GB, free: 5.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.9997, allocations: 116 kB / 0.5729 GB, free: 5.707 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/1, allocations: 256.8 kB / 0.5732 GB, free: 5.395 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002482/1, allocations: 156.3 kB / 0.5733 GB, free: 5.242 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/1, allocations: 4 kB / 0.5733 GB, free: 5.238 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0007258/1.001, allocations: 401.3 kB / 0.5737 GB, free: 4.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/1.001, allocations: 8 kB / 0.5737 GB, free: 4.832 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/1.001, allocations: 12.02 kB / 0.5737 GB, free: 4.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/1.001, allocations: 4 kB / 0.5737 GB, free: 4.816 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/1.002, allocations: 91.89 kB / 0.5738 GB, free: 4.727 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.59e-05/1.002, allocations: 15.92 kB / 0.5738 GB, free: 4.711 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/1.002, allocations: 47.67 kB / 0.5739 GB, free: 4.664 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/1.002, allocations: 35.81 kB / 0.5739 GB, free: 4.629 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.0001545/1.002, allocations: 124.9 kB / 0.574 GB, free: 4.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.012e-05/1.002, allocations: 31.62 kB / 0.574 GB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006831/1.003, allocations: 372.3 kB / 0.5744 GB, free: 4.098 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/1.003, allocations: 4 kB / 0.5744 GB, free: 4.094 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/1.003, allocations: 4 kB / 0.5744 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/1.003, allocations: 7.969 kB / 0.5744 GB, free: 4.082 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/1.004, allocations: 1.035 MB / 0.5754 GB, free: 2.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/1.004, allocations: 0 / 0.5754 GB, free: 2.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003338/1.004, allocations: 88.08 kB / 0.5755 GB, free: 2.895 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/1.004, allocations: 4 kB / 0.5755 GB, free: 2.891 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/1.004, allocations: 7.984 kB / 0.5755 GB, free: 2.883 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.691e-05/1.004, allocations: 7.938 kB / 0.5755 GB, free: 2.875 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/1.004, allocations: 4 kB / 0.5755 GB, free: 2.871 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006918/1.005, allocations: 0.5245 MB / 0.576 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008846/1.006, allocations: 0.8964 MB / 0.5769 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/1.006, allocations: 132.6 kB / 0.5771 GB, free: 1.109 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.375e-05/1.006, allocations: 8 kB / 0.5771 GB, free: 1.102 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/1.007, allocations: 31.97 kB / 0.5771 GB, free: 1.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/1.007, allocations: 51.78 kB / 0.5771 GB, free: 1.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/1.007, allocations: 8 kB / 0.5771 GB, free: 1.012 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002653/1.007, allocations: 239.1 kB / 0.5774 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001129/1.008, allocations: 107.8 kB / 0.5775 GB, free: 0.6758 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.001008/1.009, allocations: 375.5 kB / 0.5778 GB, free: 336 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006859/1.01, allocations: 337.4 kB / 0.5782 GB, free: 15.99 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/1.01, allocations: 1.125 kB / 0.5782 GB, free: 15.99 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003713/1.01, allocations: 192.5 kB / 0.5783 GB, free: 15.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005084/1.011, allocations: 57.11 kB / 0.5784 GB, free: 15.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/1.012, allocations: 0.5427 MB / 0.5789 GB, free: 15.15 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006141/1.013, allocations: 0.8703 MB / 0.5798 GB, free: 14.25 MB / 426.7 MB Notification: Performance of SimCode: time 3.1e-07/1.013, allocations: 4 kB / 0.5798 GB, free: 14.25 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_WindFarmGridTest.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.WindFarmGridTest_res.mat does not exist to compare? outputFormat=mat