Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",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.001249/0.00125, allocations: 186.5 kB / 8.136 MB, free: 2.176 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.554/1.554, 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.0009277/0.0009278, allocations: 96.91 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.1728/0.1728, allocations: 37.97 MB / 347.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2447/0.4175, allocations: 62.43 MB / 410.1 MB, free: 46.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.5515, allocations: 56.33 MB / 466.4 MB, free: 6.367 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4194/0.971, allocations: 101.2 MB / 0.5543 GB, free: 9.273 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/0.9714, allocations: 83.95 kB / 0.5544 GB, free: 9.191 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.05746/1.029, allocations: 19.74 MB / 0.5737 GB, free: 5.242 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/1.029, allocations: 8 kB / 0.5737 GB, free: 5.234 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001275/1.03, allocations: 166.9 kB / 0.5738 GB, free: 5.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/1.032, allocations: 0.5054 MB / 0.5743 GB, free: 4.523 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/1.032, allocations: 23.89 kB / 0.5744 GB, free: 4.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000154/1.032, allocations: 28 kB / 0.5744 GB, free: 4.473 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001035/1.033, allocations: 418.2 kB / 0.5748 GB, free: 4.062 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/1.034, allocations: 0.5518 MB / 0.5753 GB, free: 3.473 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.45e-05/1.034, allocations: 4 kB / 0.5753 GB, free: 3.469 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.594e-05/1.034, allocations: 7.922 kB / 0.5753 GB, free: 3.461 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.577e-05/1.034, allocations: 28.91 kB / 0.5754 GB, free: 3.434 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005231/1.039, allocations: 2.687 MB / 0.578 GB, free: 0.6133 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/1.041, allocations: 0.5245 MB / 0.5785 GB, free: 56 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003442/1.041, allocations: 166.4 kB / 0.5787 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.449e-05/1.041, allocations: 4.328 kB / 0.5787 GB, free: 15.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005068/1.042, allocations: 242.8 kB / 0.5789 GB, free: 15.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=42): time 4.609e-06/1.042, allocations: 0 / 0.5789 GB, free: 15.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009974/1.043, allocations: 375.8 kB / 0.5792 GB, free: 15.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/1.043, allocations: 144.3 kB / 0.5794 GB, free: 15.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005949/1.043, allocations: 345.3 kB / 0.5797 GB, free: 14.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.88e-05/1.043, allocations: 25.7 kB / 0.5797 GB, free: 14.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/1.044, allocations: 244.4 kB / 0.58 GB, free: 14.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/1.044, allocations: 137.9 kB / 0.5801 GB, free: 14.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.35e-05/1.044, allocations: 0 / 0.5801 GB, free: 14.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002287/1.044, allocations: 370.8 kB / 0.5805 GB, free: 13.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003329/1.044, allocations: 137 kB / 0.5806 GB, free: 13.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/1.045, allocations: 249.7 kB / 0.5808 GB, free: 13.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/1.045, allocations: 173.1 kB / 0.581 GB, free: 13.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/1.045, allocations: 4 kB / 0.581 GB, free: 13.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001319/1.047, allocations: 0.5854 MB / 0.5816 GB, free: 12.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007165/1.047, allocations: 1.308 MB / 0.5828 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.007e-05/1.047, allocations: 4 kB / 0.5828 GB, free: 11.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000612/1.048, allocations: 128.8 kB / 0.583 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004421/1.048, allocations: 100.3 kB / 0.5831 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009284/1.049, allocations: 0.7874 MB / 0.5838 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005992/1.05, allocations: 75.64 kB / 0.5839 GB, free: 10.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.311e-05/1.05, allocations: 20 kB / 0.5839 GB, free: 10.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/1.05, allocations: 4 kB / 0.5839 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009781/1.051, allocations: 463.9 kB / 0.5844 GB, free: 9.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/1.051, allocations: 4 kB / 0.5844 GB, free: 9.746 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004241/1.051, allocations: 121.5 kB / 0.5845 GB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004309/1.052, allocations: 100 kB / 0.5846 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003002/1.055, allocations: 2.137 MB / 0.5867 GB, free: 7.273 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005536/1.056, allocations: 63.62 kB / 0.5867 GB, free: 7.211 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-05/1.056, allocations: 20 kB / 0.5868 GB, free: 7.191 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hydroPlant.primaryControl.addFF.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002422/1.056, allocations: 124.8 kB / 0.5869 GB, free: 7.062 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/1.056, allocations: 59.27 kB / 0.5869 GB, free: 7.004 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008483/1.057, allocations: 394.7 kB / 0.5873 GB, free: 6.605 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.578e-06/1.057, allocations: 7.984 kB / 0.5873 GB, free: 6.598 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/1.057, allocations: 4 kB / 0.5873 GB, free: 6.594 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/1.057, allocations: 3.906 kB / 0.5873 GB, free: 6.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/1.059, allocations: 0.9829 MB / 0.5883 GB, free: 5.559 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/1.059, allocations: 0 / 0.5883 GB, free: 5.559 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000517/1.059, allocations: 99.88 kB / 0.5884 GB, free: 5.461 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001105/1.059, allocations: 28.84 kB / 0.5884 GB, free: 5.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.94e-05/1.059, allocations: 7.906 kB / 0.5884 GB, free: 5.422 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/1.06, allocations: 1.296 MB / 0.5897 GB, free: 4.016 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/1.06, allocations: 0 / 0.5897 GB, free: 4.016 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001092/1.062, allocations: 0.7107 MB / 0.5904 GB, free: 3.27 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001488/1.063, allocations: 1.3 MB / 0.5916 GB, free: 1.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000312/1.063, allocations: 168.3 kB / 0.5918 GB, free: 1.746 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/1.063, allocations: 0 / 0.5918 GB, free: 1.746 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004703/1.064, allocations: 47.95 kB / 0.5918 GB, free: 1.699 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/1.064, allocations: 31.95 kB / 0.5919 GB, free: 1.668 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/1.064, allocations: 11.98 kB / 0.5919 GB, free: 1.656 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.00037/1.064, allocations: 267.2 kB / 0.5921 GB, free: 1.398 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002355/1.067, allocations: 243.3 kB / 0.5924 GB, free: 1.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000242/1.067, allocations: 115.2 kB / 0.5925 GB, free: 1.035 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001758/1.069, allocations: 0.7916 MB / 0.5933 GB, free: 228 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.069, allocations: 0 / 0.5933 GB, free: 228 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005113/1.069, allocations: 286.1 kB / 0.5935 GB, free: 15.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006436/1.07, allocations: 96.22 kB / 0.5936 GB, free: 15.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/1.072, allocations: 0.918 MB / 0.5945 GB, free: 14.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007244/1.073, allocations: 0.953 MB / 0.5954 GB, free: 13.91 MB / 442.7 MB Notification: Performance of SimCode: time 4.01e-07/1.073, allocations: 0 / 0.5954 GB, free: 13.91 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat does not exist to compare? outputFormat=mat