Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") [: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.001118/0.001119, allocations: 182 kB / 8.13 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.447/1.447, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0009533/0.0009532, allocations: 95.14 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1708/0.1708, allocations: 37.98 MB / 347.7 MB, free: 7.445 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.646e-06/8.676e-06, allocations: 0 / 410 MB, free: 46.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1255, allocations: 56.31 MB / 466.3 MB, free: 6.457 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.417/0.5426, allocations: 103.2 MB / 0.5561 GB, free: 7.363 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/0.5429, allocations: 87.94 kB / 0.5562 GB, free: 7.277 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06334/0.6063, allocations: 24.64 MB / 0.5803 GB, free: 14.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.837e-05/0.6064, allocations: 16 kB / 0.5803 GB, free: 14.41 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001803/0.6082, allocations: 0.9325 MB / 0.5812 GB, free: 13.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.6082, allocations: 8.031 kB / 0.5812 GB, free: 13.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/0.6096, allocations: 190.9 kB / 0.5814 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009882/0.6106, allocations: 0.5445 MB / 0.5819 GB, free: 12.64 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.6107, allocations: 16 kB / 0.5819 GB, free: 12.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001431/0.6108, allocations: 36 kB / 0.582 GB, free: 12.59 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009541/0.6118, allocations: 0.5141 MB / 0.5825 GB, free: 12.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.6129, allocations: 0.6552 MB / 0.5831 GB, free: 11.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.768e-05/0.6129, allocations: 7.906 kB / 0.5831 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.335e-05/0.613, allocations: 0 / 0.5831 GB, free: 11.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.381e-05/0.6131, allocations: 41.3 kB / 0.5832 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004275/0.6173, allocations: 2.843 MB / 0.5859 GB, free: 8.387 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007619/0.6181, allocations: 401 kB / 0.5863 GB, free: 7.977 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004828/0.6186, allocations: 303 kB / 0.5866 GB, free: 7.676 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.975e-05/0.6187, allocations: 4.438 kB / 0.5866 GB, free: 7.672 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005265/0.6192, allocations: 356.3 kB / 0.587 GB, free: 7.309 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 2.114e-06/0.6192, allocations: 0 / 0.587 GB, free: 7.309 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.002593/0.6218, allocations: 1.497 MB / 0.5884 GB, free: 5.75 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.374e-05/0.6219, allocations: 115.2 kB / 0.5885 GB, free: 5.613 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004183/0.6223, allocations: 341.2 kB / 0.5889 GB, free: 5.273 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.786e-05/0.6224, allocations: 29.7 kB / 0.5889 GB, free: 5.238 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.6226, allocations: 252.3 kB / 0.5891 GB, free: 4.988 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001583/0.6228, allocations: 193.2 kB / 0.5893 GB, free: 4.797 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/0.6228, allocations: 4 kB / 0.5893 GB, free: 4.793 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.623, allocations: 366.8 kB / 0.5897 GB, free: 4.426 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003696/0.6234, allocations: 229.2 kB / 0.5899 GB, free: 4.203 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004425/0.6239, allocations: 345.7 kB / 0.5902 GB, free: 3.824 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004336/0.6243, allocations: 277.3 kB / 0.5905 GB, free: 3.555 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.6243, allocations: 0 / 0.5905 GB, free: 3.555 MB / 426.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00162/0.6259, allocations: 0.8255 MB / 0.5913 GB, free: 2.719 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000499/0.6264, allocations: 1.136 MB / 0.5924 GB, free: 1.496 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.6265, allocations: 4 kB / 0.5924 GB, free: 1.492 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000642/0.6271, allocations: 187.2 kB / 0.5926 GB, free: 1.305 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005596/0.6277, allocations: 127.8 kB / 0.5927 GB, free: 1.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00242/0.6301, allocations: 2.183 MB / 0.5948 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006308/0.6308, allocations: 56 kB / 0.5949 GB, free: 14.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.674e-05/0.6308, allocations: 24 kB / 0.5949 GB, free: 14.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.6308, allocations: 4 kB / 0.5949 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001378/0.6322, allocations: 0.6956 MB / 0.5956 GB, free: 14.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.6322, allocations: 7.938 kB / 0.5956 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000524/0.6328, allocations: 167.9 kB / 0.5958 GB, free: 13.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000523/0.6333, allocations: 119.8 kB / 0.5959 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003741/0.6371, allocations: 3.477 MB / 0.5993 GB, free: 10.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006269/0.6377, allocations: 48.02 kB / 0.5993 GB, free: 10.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.316e-05/0.6378, allocations: 24 kB / 0.5993 GB, free: 9.996 MB / 442.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 hydroPlant.add.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002683/0.6381, allocations: 124.8 kB / 0.5995 GB, free: 9.867 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.6382, allocations: 63.23 kB / 0.5995 GB, free: 9.805 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.6396, allocations: 0.6871 MB / 0.6002 GB, free: 9.102 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.6397, allocations: 7.984 kB / 0.6002 GB, free: 9.094 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.6397, allocations: 4 kB / 0.6002 GB, free: 9.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.6397, allocations: 7.891 kB / 0.6002 GB, free: 9.082 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002872/0.6426, allocations: 1.911 MB / 0.6021 GB, free: 7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.605e-06/0.6426, allocations: 4 kB / 0.6021 GB, free: 6.996 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000653/0.6432, allocations: 140.3 kB / 0.6022 GB, free: 6.859 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002427/0.6435, allocations: 69.67 kB / 0.6023 GB, free: 6.785 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/0.6435, allocations: 8 kB / 0.6023 GB, free: 6.777 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001943/0.6455, allocations: 2.575 MB / 0.6048 GB, free: 3.969 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/0.6455, allocations: 11.94 kB / 0.6048 GB, free: 3.957 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001844/0.6474, allocations: 1.407 MB / 0.6062 GB, free: 2.367 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002834/0.6477, allocations: 188.3 kB / 0.6064 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.222e-05/0.6478, allocations: 15.92 kB / 0.6064 GB, free: 2.148 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00055/0.6483, allocations: 51.95 kB / 0.6064 GB, free: 2.098 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.6485, allocations: 64.2 kB / 0.6065 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.853e-05/0.6485, allocations: 24 kB / 0.6065 GB, free: 2.012 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0003654/0.6489, allocations: 263.2 kB / 0.6068 GB, free: 1.758 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00117/0.6501, allocations: 232.2 kB / 0.607 GB, free: 1.531 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002473/0.6503, allocations: 127 kB / 0.6071 GB, free: 1.398 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00272/0.653, allocations: 1.44 MB / 0.6085 GB, free: 15.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.6531, allocations: 0 / 0.6085 GB, free: 15.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008639/0.6539, allocations: 0.5532 MB / 0.6091 GB, free: 15.34 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007026/0.6547, allocations: 103 kB / 0.6092 GB, free: 15.24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002787/0.6574, allocations: 1.254 MB / 0.6104 GB, free: 13.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008344/0.6583, allocations: 1.009 MB / 0.6114 GB, free: 12.88 MB / 458.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6583, allocations: 0 / 0.6114 GB, free: 12.88 MB / 458.7 MB Notification: Performance of Templates: time 0.0196/0.6779, allocations: 11.24 MB / 0.6223 GB, free: 1.629 MB / 458.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches