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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009726/0.0009726, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.72/1.72, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007988/0.0007988, allocations: 88.19 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1634/0.1634, allocations: 37.98 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.567e-05/1.57e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0895/0.08953, allocations: 56.33 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.34/0.4296, allocations: 103.2 MB / 0.5567 GB, free: 7.727 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.4298, allocations: 87.94 kB / 0.5568 GB, free: 7.641 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06379/0.4936, allocations: 24.93 MB / 0.5812 GB, free: 14.5 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4937, allocations: 0 / 0.5812 GB, free: 14.5 MB / 427.1 MB Notification: Performance of Transformations before backend: time 7.392e-05/0.4938, allocations: 24 kB / 0.5812 GB, free: 14.47 MB / 427.1 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.001954/0.4957, allocations: 0.9247 MB / 0.5821 GB, free: 13.5 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.4958, allocations: 8.031 kB / 0.5821 GB, free: 13.49 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.4972, allocations: 190.9 kB / 0.5823 GB, free: 13.3 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000901/0.4981, allocations: 0.5311 MB / 0.5828 GB, free: 12.73 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.4981, allocations: 20 kB / 0.5828 GB, free: 12.71 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.4982, allocations: 39.94 kB / 0.5829 GB, free: 12.67 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008905/0.4991, allocations: 0.5024 MB / 0.5833 GB, free: 12.17 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.5002, allocations: 0.6512 MB / 0.584 GB, free: 11.48 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.5002, allocations: 3.906 kB / 0.584 GB, free: 11.47 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.411e-05/0.5003, allocations: 4 kB / 0.584 GB, free: 11.47 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.892e-05/0.5004, allocations: 41.28 kB / 0.584 GB, free: 11.43 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003948/0.5043, allocations: 2.824 MB / 0.5868 GB, free: 8.5 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008371/0.5052, allocations: 494.1 kB / 0.5873 GB, free: 7.996 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004136/0.5056, allocations: 295 kB / 0.5875 GB, free: 7.703 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.5057, allocations: 8.438 kB / 0.5875 GB, free: 7.695 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005469/0.5062, allocations: 361.2 kB / 0.5879 GB, free: 7.324 MB / 427.1 MB Notification: Performance of pre-optimization done (n=56): time 3.337e-06/0.5062, allocations: 0 / 0.5879 GB, free: 7.324 MB / 427.1 MB Notification: Performance of matching and sorting (n=58): time 0.002616/0.5089, allocations: 1.479 MB / 0.5893 GB, free: 5.785 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.5089, allocations: 111.4 kB / 0.5894 GB, free: 5.652 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004269/0.5094, allocations: 349.2 kB / 0.5898 GB, free: 5.305 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 4.688e-05/0.5094, allocations: 25.7 kB / 0.5898 GB, free: 5.273 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002606/0.5097, allocations: 324.3 kB / 0.5901 GB, free: 4.953 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/0.5099, allocations: 185.2 kB / 0.5903 GB, free: 4.77 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.5099, allocations: 0 / 0.5903 GB, free: 4.77 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.5101, allocations: 370.7 kB / 0.5906 GB, free: 4.398 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003565/0.5105, allocations: 225.5 kB / 0.5908 GB, free: 4.18 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004004/0.5109, allocations: 334.8 kB / 0.5912 GB, free: 3.809 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004064/0.5113, allocations: 270 kB / 0.5914 GB, free: 3.543 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.5113, allocations: 4 kB / 0.5914 GB, free: 3.539 MB / 427.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001487/0.5128, allocations: 0.8199 MB / 0.5922 GB, free: 2.707 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004427/0.5132, allocations: 1.161 MB / 0.5934 GB, free: 1.449 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.5133, allocations: 4 kB / 0.5934 GB, free: 1.445 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005706/0.5138, allocations: 193.6 kB / 0.5936 GB, free: 1.25 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004984/0.5144, allocations: 123.8 kB / 0.5937 GB, free: 1.129 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/0.5163, allocations: 2.156 MB / 0.5958 GB, free: 14.83 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005388/0.5169, allocations: 55.92 kB / 0.5958 GB, free: 14.78 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.837e-05/0.517, allocations: 27.98 kB / 0.5959 GB, free: 14.75 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.517, allocations: 7.938 kB / 0.5959 GB, free: 14.74 MB / 443.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001182/0.5182, allocations: 0.6977 MB / 0.5965 GB, free: 14.04 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.5182, allocations: 4.344 kB / 0.5965 GB, free: 14.04 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004501/0.5186, allocations: 169.6 kB / 0.5967 GB, free: 13.86 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004653/0.5191, allocations: 115.9 kB / 0.5968 GB, free: 13.75 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003297/0.5224, allocations: 3.524 MB / 0.6003 GB, free: 10 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005389/0.523, allocations: 47.94 kB / 0.6003 GB, free: 9.953 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.678e-05/0.523, allocations: 31.88 kB / 0.6003 GB, free: 9.922 MB / 443.1 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.0002318/0.5233, allocations: 126.7 kB / 0.6005 GB, free: 9.793 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.81e-05/0.5234, allocations: 55.34 kB / 0.6005 GB, free: 9.738 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.5246, allocations: 0.6745 MB / 0.6012 GB, free: 9.047 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.5246, allocations: 7.984 kB / 0.6012 GB, free: 9.039 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.5246, allocations: 8 kB / 0.6012 GB, free: 9.031 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.5246, allocations: 0 / 0.6012 GB, free: 9.031 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00208/0.5267, allocations: 1.457 MB / 0.6026 GB, free: 7.508 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.5268, allocations: 0 / 0.6026 GB, free: 7.508 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006042/0.5274, allocations: 139.8 kB / 0.6027 GB, free: 7.371 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002088/0.5276, allocations: 69.8 kB / 0.6028 GB, free: 7.297 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.663e-05/0.5276, allocations: 4 kB / 0.6028 GB, free: 7.293 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001761/0.5294, allocations: 2.583 MB / 0.6053 GB, free: 4.477 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/0.5294, allocations: 7.984 kB / 0.6053 GB, free: 4.469 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.5309, allocations: 1.193 MB / 0.6065 GB, free: 3.184 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002417/0.5312, allocations: 188.3 kB / 0.6067 GB, free: 2.98 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.083e-05/0.5313, allocations: 4 kB / 0.6067 GB, free: 2.977 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004692/0.5317, allocations: 55.92 kB / 0.6067 GB, free: 2.922 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.5319, allocations: 56.42 kB / 0.6068 GB, free: 2.867 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-05/0.5319, allocations: 23.95 kB / 0.6068 GB, free: 2.844 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0002874/0.5322, allocations: 271 kB / 0.6071 GB, free: 2.582 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5322, allocations: 0 / 0.6071 GB, free: 2.582 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.0009281/0.5332, allocations: 236.1 kB / 0.6073 GB, free: 2.352 MB / 443.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.0001828/0.5333, allocations: 125.3 kB / 0.6074 GB, free: 2.223 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.002381/0.5357, allocations: 1.51 MB / 0.6089 GB, free: 0.6602 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.5357, allocations: 0 / 0.6089 GB, free: 0.6602 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006649/0.5364, allocations: 0.534 MB / 0.6094 GB, free: 112 kB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005722/0.537, allocations: 103.4 kB / 0.6095 GB, free: 8 kB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001895/0.5389, allocations: 1.131 MB / 0.6106 GB, free: 14.83 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005424/0.5395, allocations: 0.9592 MB / 0.6116 GB, free: 13.84 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0005579/0.54, allocations: 172.4 kB / 0.6117 GB, free: 13.68 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.5402, allocations: 51.36 kB / 0.6118 GB, free: 13.62 MB / 459.1 MB Notification: Performance of SimCode: time 2.5e-07/0.5402, allocations: 4 kB / 0.6118 GB, free: 13.62 MB / 459.1 MB Notification: Performance of Templates: time 0.01461/0.5548, allocations: 8.818 MB / 0.6204 GB, free: 4.797 MB / 459.1 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