Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.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.PowerWorld,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="city.MW2W.u|dispatcher.hydroBase.y|dispatcher.hydroDaily.y|dispatcher.loadForcast|dispatcher.secondaryControl.y|dispatcher.windForcast|frequency.y|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y|powerPlant.P_control|powerPlant.P_generator|powerPlant.hotwellLevel.y|powerPlant.pressureLoss.y|powerPlant.primaryControl.y|powerPlant.throttleReserve.y|time|windFarm.MW2W.u",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld") translateModel(PowerSystems.Examples.PowerWorld.PowerWorld,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="city.MW2W.u|dispatcher.hydroBase.y|dispatcher.hydroDaily.y|dispatcher.loadForcast|dispatcher.secondaryControl.y|dispatcher.windForcast|frequency.y|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y|powerPlant.P_control|powerPlant.P_generator|powerPlant.hotwellLevel.y|powerPlant.pressureLoss.y|powerPlant.primaryControl.y|powerPlant.throttleReserve.y|time|windFarm.MW2W.u",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld") [: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.001614/0.001614, allocations: 182.6 kB / 8.138 MB, free: 2.191 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.377/1.377, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008913/0.0008913, allocations: 94.33 kB / 261.8 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.1695/0.1695, allocations: 37.97 MB / 347.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.102e-06/6.142e-06, allocations: 0 / 410 MB, free: 46.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 56.33 MB / 466.3 MB, free: 6.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.383/0.4927, allocations: 119.4 MB / 0.572 GB, free: 7.074 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.006861/0.4996, allocations: 2.19 MB / 0.5742 GB, free: 4.902 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:465:11-465:52:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Generic.mo:468:7-475:13:writable] Warning: Returning false from overconstrained operator applied to array components having size zero: Connections.isRoot({}). Notification: Performance of FrontEnd: time 0.4965/0.9961, allocations: 101.7 MB / 0.6735 GB, free: 111.3 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001909/0.9964, allocations: 57.22 kB / 0.6735 GB, free: 111.3 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.006749/1.003, allocations: 2.662 MB / 0.6761 GB, free: 110 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/1.003, allocations: 9.844 kB / 0.6761 GB, free: 110 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005876/1.009, allocations: 0.6645 MB / 0.6768 GB, free: 109.8 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004315/1.013, allocations: 1.589 MB / 0.6783 GB, free: 109.4 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/1.014, allocations: 63.25 kB / 0.6784 GB, free: 109.4 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00059/1.014, allocations: 131 kB / 0.6785 GB, free: 109.4 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004419/1.019, allocations: 2.326 MB / 0.6808 GB, free: 109.4 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003839/1.022, allocations: 2.378 MB / 0.6831 GB, free: 109 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.067e-05/1.023, allocations: 15.08 kB / 0.6831 GB, free: 109 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001982/1.023, allocations: 2.219 kB / 0.6831 GB, free: 109 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002443/1.023, allocations: 138.2 kB / 0.6832 GB, free: 109 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01473/1.038, allocations: 9.277 MB / 0.6923 GB, free: 104.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00247/1.04, allocations: 1.538 MB / 0.6938 GB, free: 104.3 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/1.042, allocations: 1.059 MB / 0.6948 GB, free: 103.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001308/1.042, allocations: 45.77 kB / 0.6949 GB, free: 103.9 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001884/1.044, allocations: 1.235 MB / 0.6961 GB, free: 103.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=220): time 5.921e-06/1.044, allocations: 0 / 0.6961 GB, free: 103.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=231): time 0.01559/1.059, allocations: 6.964 MB / 0.7029 GB, free: 100.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/1.06, allocations: 265.7 kB / 0.7031 GB, free: 99.96 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/1.062, allocations: 1.247 MB / 0.7044 GB, free: 99.44 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000429/1.063, allocations: 41.52 kB / 0.7044 GB, free: 99.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006898/1.063, allocations: 0.6449 MB / 0.705 GB, free: 98.95 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009405/1.064, allocations: 0.742 MB / 0.7058 GB, free: 98.37 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/1.064, allocations: 1.094 kB / 0.7058 GB, free: 98.37 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/1.065, allocations: 398 kB / 0.7061 GB, free: 98.03 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/1.066, allocations: 0.9013 MB / 0.707 GB, free: 97.66 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/1.068, allocations: 1.248 MB / 0.7082 GB, free: 96.91 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00229/1.071, allocations: 1.066 MB / 0.7093 GB, free: 96.48 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.09e-05/1.071, allocations: 2.656 kB / 0.7093 GB, free: 96.48 MB / 474.7 MB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006621/1.077, allocations: 2.917 MB / 0.7121 GB, free: 95.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000625/1.078, allocations: 2.994 MB / 0.715 GB, free: 92.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.512e-05/1.078, allocations: 6.5 kB / 0.7151 GB, free: 92.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001802/1.08, allocations: 0.5043 MB / 0.7155 GB, free: 92.06 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002346/1.082, allocations: 493.7 kB / 0.716 GB, free: 92.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006704/1.089, allocations: 5.203 MB / 0.7211 GB, free: 88.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002541/1.091, allocations: 148.6 kB / 0.7212 GB, free: 88.33 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006084/1.092, allocations: 80.97 kB / 0.7213 GB, free: 88.31 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/1.092, allocations: 4.547 kB / 0.7213 GB, free: 88.31 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00661/1.099, allocations: 2.652 MB / 0.7239 GB, free: 86.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.763e-05/1.099, allocations: 4 kB / 0.7239 GB, free: 86.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001502/1.1, allocations: 0.5029 MB / 0.7244 GB, free: 86.55 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/1.102, allocations: 469 kB / 0.7249 GB, free: 86.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005919/1.108, allocations: 5.209 MB / 0.7299 GB, free: 81.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/1.111, allocations: 120.4 kB / 0.7301 GB, free: 81.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004565/1.111, allocations: 93.36 kB / 0.7301 GB, free: 80.96 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 31 ($whenCondition5,$PRE.windFarm.wind.nextTimeEvent,$whenCondition3,$PRE.city.data.nextTimeEvent,$whenCondition2,$PRE.dispatcher.data.nextTimeEvent,system.initime,$whenCondition6,$whenCondition4,$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,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,$PRE.dispatcher.data.nextTimeEventScaled,dispatcher.data.nextTimeEventScaled,$PRE.dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.T_start,$PRE.dispatcher.hydroDaily.count,dispatcher.hydroDaily.count,hydroPlant.reservoirLevel.local_reset,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset,dispatcher.secondaryControl.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 2 * 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: 0 * Non-linear torn systems: 2 {5 33,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.001028/1.112, allocations: 159.2 kB / 0.7303 GB, free: 80.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/1.113, allocations: 218.1 kB / 0.7305 GB, free: 80.58 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007245/1.121, allocations: 3.023 MB / 0.7335 GB, free: 77.96 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/1.121, allocations: 28 kB / 0.7335 GB, free: 77.93 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/1.121, allocations: 4 kB / 0.7335 GB, free: 77.93 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.083e-05/1.121, allocations: 13.5 kB / 0.7335 GB, free: 77.93 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01348/1.134, allocations: 5.723 MB / 0.7391 GB, free: 73.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.389e-05/1.134, allocations: 4 kB / 0.7391 GB, free: 73.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002135/1.136, allocations: 446.2 kB / 0.7395 GB, free: 72.82 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001465/1.138, allocations: 461.1 kB / 0.74 GB, free: 72.45 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003283/1.138, allocations: 32.2 kB / 0.74 GB, free: 72.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007357/1.146, allocations: 5.644 MB / 0.7455 GB, free: 67.01 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.117e-06/1.146, allocations: 12.42 kB / 0.7455 GB, free: 67 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009059/1.155, allocations: 4.556 MB / 0.75 GB, free: 62.41 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/1.156, allocations: 0.5411 MB / 0.7505 GB, free: 61.84 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009122/1.157, allocations: 31.78 kB / 0.7505 GB, free: 61.82 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002067/1.159, allocations: 135.9 kB / 0.7507 GB, free: 61.68 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004735/1.16, allocations: 181.7 kB / 0.7508 GB, free: 61.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002489/1.16, allocations: 83.05 kB / 0.7509 GB, free: 61.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.00179/1.162, allocations: 0.9364 MB / 0.7518 GB, free: 60.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004669/1.167, allocations: 0.8515 MB / 0.7527 GB, free: 59.64 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 13 (dispatcher.secondaryControl.I.y,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y,hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1],system.theta) * Number of discrete variables: 17 (system.initime,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count,city.data.nextTimeEvent,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,dispatcher.data.nextTimeEventScaled,dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.count) * Number of discrete states: 8 (windFarm.wind.nextTimeEvent,windFarm.disturbance.count,city.data.nextTimeEvent,dispatcher.data.nextTimeEvent,dispatcher.hydroDaily.count,dispatcher.data.nextTimeEventScaled,city.data.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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: 0 * Non-linear torn systems: 2 {6 30,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001095/1.168, allocations: 420.5 kB / 0.7531 GB, free: 59.27 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007729/1.176, allocations: 4.483 MB / 0.7574 GB, free: 54.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/1.176, allocations: 0.8125 kB / 0.7574 GB, free: 54.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003057/1.179, allocations: 1.724 MB / 0.7591 GB, free: 52.96 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00248/1.181, allocations: 330.5 kB / 0.7594 GB, free: 52.65 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01247/1.194, allocations: 4.265 MB / 0.7636 GB, free: 48.33 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00321/1.197, allocations: 1.969 MB / 0.7655 GB, free: 46.33 MB / 474.7 MB Notification: Performance of SimCode: time 1.062e-06/1.197, allocations: 4 kB / 0.7655 GB, free: 46.32 MB / 474.7 MB Notification: Performance of Templates: time 0.07416/1.271, allocations: 45.74 MB / 0.8102 GB, free: 0.7422 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.PowerWorld.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.PowerWorld.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches