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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") [: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.001022/0.001022, allocations: 190.7 kB / 8.138 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.434/1.434, 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.0008984/0.0008985, allocations: 96.75 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.1696/0.1696, allocations: 37.97 MB / 347.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.653e-06/6.683e-06, allocations: 0 / 410 MB, free: 46.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1129, allocations: 56.31 MB / 466.3 MB, free: 6.457 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3678/0.4808, allocations: 101.2 MB / 0.5542 GB, free: 9.359 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002914/0.4812, allocations: 83.95 kB / 0.5543 GB, free: 9.277 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.05059/0.5318, allocations: 18.86 MB / 0.5727 GB, free: 6.262 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.303e-05/0.5319, allocations: 19.94 kB / 0.5727 GB, free: 6.242 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001636/0.5335, allocations: 0.8654 MB / 0.5736 GB, free: 5.324 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.5336, allocations: 8.031 kB / 0.5736 GB, free: 5.316 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.5346, allocations: 166.9 kB / 0.5737 GB, free: 5.152 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009323/0.5355, allocations: 0.5014 MB / 0.5742 GB, free: 4.605 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.5356, allocations: 19.91 kB / 0.5743 GB, free: 4.586 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.692e-05/0.5357, allocations: 28 kB / 0.5743 GB, free: 4.559 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008316/0.5365, allocations: 422.1 kB / 0.5747 GB, free: 4.145 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009621/0.5375, allocations: 0.5519 MB / 0.5752 GB, free: 3.555 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/0.5375, allocations: 7.984 kB / 0.5752 GB, free: 3.547 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.228e-05/0.5376, allocations: 4 kB / 0.5752 GB, free: 3.543 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.746e-05/0.5376, allocations: 32.89 kB / 0.5753 GB, free: 3.512 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00409/0.5417, allocations: 2.683 MB / 0.5779 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.5428, allocations: 0.5145 MB / 0.5784 GB, free: 148 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.5431, allocations: 162.3 kB / 0.5785 GB, free: 15.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.081e-05/0.5431, allocations: 4.328 kB / 0.5785 GB, free: 15.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003963/0.5435, allocations: 242.8 kB / 0.5788 GB, free: 15.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=42): time 2.956e-06/0.5435, allocations: 4 kB / 0.5788 GB, free: 15.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=42): time 0.0008478/0.5444, allocations: 375.7 kB / 0.5791 GB, free: 15.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.864e-05/0.5445, allocations: 140.4 kB / 0.5793 GB, free: 15.17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004477/0.5449, allocations: 345.3 kB / 0.5796 GB, free: 14.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.545, allocations: 25.7 kB / 0.5796 GB, free: 14.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.5452, allocations: 248.3 kB / 0.5799 GB, free: 14.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.5453, allocations: 134 kB / 0.58 GB, free: 14.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.5453, allocations: 4.062 kB / 0.58 GB, free: 14.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.5455, allocations: 366.7 kB / 0.5803 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/0.5458, allocations: 141 kB / 0.5805 GB, free: 13.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003255/0.5461, allocations: 253.6 kB / 0.5807 GB, free: 13.61 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002959/0.5464, allocations: 173.1 kB / 0.5809 GB, free: 13.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.5465, allocations: 4 kB / 0.5809 GB, free: 13.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001193/0.5476, allocations: 0.5815 MB / 0.5815 GB, free: 12.85 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006289/0.5483, allocations: 1.306 MB / 0.5827 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.5483, allocations: 4 kB / 0.5827 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004875/0.5488, allocations: 132.8 kB / 0.5829 GB, free: 11.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/0.5492, allocations: 99.88 kB / 0.583 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000795/0.55, allocations: 0.7899 MB / 0.5837 GB, free: 10.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.5505, allocations: 67.7 kB / 0.5838 GB, free: 10.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.005e-05/0.5506, allocations: 20 kB / 0.5838 GB, free: 10.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.837e-06/0.5506, allocations: 4 kB / 0.5838 GB, free: 10.3 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009307/0.5516, allocations: 475.8 kB / 0.5843 GB, free: 9.836 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.5516, allocations: 8 kB / 0.5843 GB, free: 9.828 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000356/0.5519, allocations: 122.4 kB / 0.5844 GB, free: 9.707 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003924/0.5524, allocations: 96.14 kB / 0.5845 GB, free: 9.613 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002557/0.5549, allocations: 2.124 MB / 0.5866 GB, free: 7.375 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004768/0.5554, allocations: 71.61 kB / 0.5866 GB, free: 7.305 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-05/0.5555, allocations: 24 kB / 0.5867 GB, free: 7.281 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.0002085/0.5557, allocations: 120.8 kB / 0.5868 GB, free: 7.156 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.387e-05/0.5558, allocations: 51.34 kB / 0.5868 GB, free: 7.105 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008199/0.5566, allocations: 398.6 kB / 0.5872 GB, free: 6.703 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.5566, allocations: 7.938 kB / 0.5872 GB, free: 6.695 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.5566, allocations: 4 kB / 0.5872 GB, free: 6.691 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-06/0.5566, allocations: 7.891 kB / 0.5872 GB, free: 6.684 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.5582, allocations: 0.9756 MB / 0.5882 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.5582, allocations: 0 / 0.5882 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005038/0.5587, allocations: 103.9 kB / 0.5883 GB, free: 5.559 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001012/0.5588, allocations: 20.86 kB / 0.5883 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.5588, allocations: 11.89 kB / 0.5883 GB, free: 5.523 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009982/0.5599, allocations: 1.296 MB / 0.5896 GB, free: 4.117 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.5599, allocations: 0 / 0.5896 GB, free: 4.117 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001042/0.5609, allocations: 0.7141 MB / 0.5903 GB, free: 3.367 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.5611, allocations: 168.3 kB / 0.5904 GB, free: 3.184 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.132e-05/0.5612, allocations: 4 kB / 0.5904 GB, free: 3.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004367/0.5617, allocations: 47.95 kB / 0.5905 GB, free: 3.133 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.5618, allocations: 35.88 kB / 0.5905 GB, free: 3.098 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/0.5618, allocations: 12 kB / 0.5905 GB, free: 3.086 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.000322/0.5621, allocations: 267.2 kB / 0.5908 GB, free: 2.828 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009092/0.5631, allocations: 239.3 kB / 0.591 GB, free: 2.594 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.000199/0.5633, allocations: 119.2 kB / 0.5911 GB, free: 2.465 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001761/0.565, allocations: 0.7947 MB / 0.5919 GB, free: 1.648 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.5651, allocations: 4.125 kB / 0.5919 GB, free: 1.645 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004367/0.5655, allocations: 273.7 kB / 0.5922 GB, free: 1.367 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006164/0.5661, allocations: 96.31 kB / 0.5923 GB, free: 1.277 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.5684, allocations: 0.924 MB / 0.5932 GB, free: 328 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006918/0.5691, allocations: 0.9413 MB / 0.5941 GB, free: 15.35 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5691, allocations: 0 / 0.5941 GB, free: 15.35 MB / 442.7 MB Notification: Performance of Templates: time 0.01699/0.5861, allocations: 8.716 MB / 0.6026 GB, free: 6.629 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches