Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 183.2 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 225.7 MB / 243.2 MB, free: 8.449 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008757/0.0008759, allocations: 99.62 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.3067/0.3067, allocations: 38.11 MB / 383.6 MB, free: 40.4 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003867/0.0003871, allocations: 8 kB / 453.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2967, allocations: 59.14 MB / 0.5006 GB, free: 39.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005501/0.3022, allocations: 5.603 MB / 0.5061 GB, free: 37.89 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004059/0.3063, allocations: 4.502 MB / 0.5105 GB, free: 33.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005622/0.3069, allocations: 38.47 kB / 0.5105 GB, free: 33.75 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000403/0.3073, allocations: 101.5 kB / 0.5106 GB, free: 33.69 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009816/0.3083, allocations: 429.3 kB / 0.511 GB, free: 33.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009051/0.3092, allocations: 406.6 kB / 0.5114 GB, free: 33.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.3105, allocations: 1.267 MB / 0.5126 GB, free: 32.73 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001005/0.3115, allocations: 0.9586 MB / 0.5136 GB, free: 32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003966/0.3119, allocations: 325.8 kB / 0.5139 GB, free: 31.86 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004093/0.3123, allocations: 365.6 kB / 0.5142 GB, free: 31.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.145e-05/0.3124, allocations: 32.03 kB / 0.5143 GB, free: 31.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007805/0.3132, allocations: 0.5433 MB / 0.5148 GB, free: 31.51 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.3133, allocations: 171.5 kB / 0.515 GB, free: 31.45 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002247/0.3136, allocations: 346.3 kB / 0.5153 GB, free: 31.21 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007987/0.3144, allocations: 1.034 MB / 0.5163 GB, free: 30.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3144, allocations: 4.188 kB / 0.5163 GB, free: 30.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3144, allocations: 0 / 0.5163 GB, free: 30.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.3144, allocations: 0 / 0.5163 GB, free: 30.89 MB / 378.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.001547/0.316, allocations: 0.9864 MB / 0.5173 GB, free: 30.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.316, allocations: 10.84 kB / 0.5173 GB, free: 30.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001031/0.3171, allocations: 185.2 kB / 0.5175 GB, free: 30.15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006765/0.3178, allocations: 0.5382 MB / 0.518 GB, free: 29.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.928e-05/0.3178, allocations: 41.19 kB / 0.518 GB, free: 29.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.3179, allocations: 57.53 kB / 0.5181 GB, free: 29.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.3192, allocations: 0.7978 MB / 0.5188 GB, free: 29.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.3193, allocations: 7.531 kB / 0.5189 GB, free: 29.37 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.318e-05/0.3193, allocations: 22.75 kB / 0.5189 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.904e-05/0.3194, allocations: 32.03 kB / 0.5189 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001369/0.3207, allocations: 0.762 MB / 0.5197 GB, free: 29.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003327/0.3241, allocations: 2.936 MB / 0.5225 GB, free: 27.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/0.3253, allocations: 0.6173 MB / 0.5231 GB, free: 26.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006328/0.326, allocations: 373 kB / 0.5235 GB, free: 26.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.326, allocations: 6.25 kB / 0.5235 GB, free: 26.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006566/0.3267, allocations: 440 kB / 0.5239 GB, free: 26.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 2.074e-06/0.3267, allocations: 0 / 0.5239 GB, free: 26.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.003612/0.3303, allocations: 2.199 MB / 0.5261 GB, free: 25.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/0.3304, allocations: 109.2 kB / 0.5262 GB, free: 25.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005333/0.3309, allocations: 478.1 kB / 0.5266 GB, free: 25.19 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.331, allocations: 37.02 kB / 0.5266 GB, free: 25.15 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.3311, allocations: 319.6 kB / 0.527 GB, free: 24.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.3312, allocations: 200.1 kB / 0.5271 GB, free: 24.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.089e-05/0.3313, allocations: 11.38 kB / 0.5272 GB, free: 24.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.34e-05/0.3314, allocations: 368.3 kB / 0.5275 GB, free: 24.39 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005247/0.3319, allocations: 297 kB / 0.5278 GB, free: 24.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005475/0.3324, allocations: 420.5 kB / 0.5282 GB, free: 24.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.3335, allocations: 0.7517 MB / 0.5289 GB, free: 23.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3335, allocations: 3.938 kB / 0.5289 GB, free: 23.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001874/0.3354, allocations: 1.059 MB / 0.53 GB, free: 23.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.86e-05/0.3355, allocations: 209.1 kB / 0.5302 GB, free: 23.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.3355, allocations: 3.281 kB / 0.5302 GB, free: 23.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000564/0.3361, allocations: 199.6 kB / 0.5304 GB, free: 22.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004521/0.3366, allocations: 123.8 kB / 0.5305 GB, free: 22.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003398/0.34, allocations: 3.836 MB / 0.5342 GB, free: 19.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005775/0.3406, allocations: 66.25 kB / 0.5343 GB, free: 19.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.106e-05/0.3406, allocations: 29.34 kB / 0.5343 GB, free: 19.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.233e-06/0.3406, allocations: 2.969 kB / 0.5343 GB, free: 19.71 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001551/0.3422, allocations: 0.8856 MB / 0.5352 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3422, allocations: 3.281 kB / 0.5352 GB, free: 19.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004483/0.3427, allocations: 175.6 kB / 0.5353 GB, free: 19.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004365/0.3431, allocations: 123.1 kB / 0.5355 GB, free: 19.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002451/0.3456, allocations: 3.619 MB / 0.539 GB, free: 16.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004954/0.3461, allocations: 67.56 kB / 0.5391 GB, free: 16.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.3461, allocations: 27.38 kB / 0.5391 GB, free: 16.08 MB / 378.7 MB 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003585/0.3465, allocations: 297.2 kB / 0.5394 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.847e-05/0.3466, allocations: 64.62 kB / 0.5394 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.3481, allocations: 0.8405 MB / 0.5403 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3481, allocations: 10.31 kB / 0.5403 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3481, allocations: 3.344 kB / 0.5403 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.3481, allocations: 3.281 kB / 0.5403 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002282/0.3504, allocations: 1.708 MB / 0.5419 GB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.3504, allocations: 0 / 0.5419 GB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006075/0.351, allocations: 137.1 kB / 0.5421 GB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002101/0.3513, allocations: 70 kB / 0.5421 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/0.3513, allocations: 17.03 kB / 0.5422 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001308/0.3526, allocations: 2.693 MB / 0.5448 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.3526, allocations: 3.938 kB / 0.5448 GB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/0.3546, allocations: 1.341 MB / 0.5461 GB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.3548, allocations: 188 kB / 0.5463 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.566e-05/0.3549, allocations: 14.56 kB / 0.5463 GB, free: 11.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004441/0.3554, allocations: 65.2 kB / 0.5464 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3555, allocations: 59.17 kB / 0.5464 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.014e-05/0.3556, allocations: 20.34 kB / 0.5464 GB, free: 11.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000427/0.356, allocations: 343.6 kB / 0.5468 GB, free: 10.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.356, allocations: 0 / 0.5468 GB, free: 10.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009074/0.3569, allocations: 256.4 kB / 0.547 GB, free: 10.83 MB / 378.7 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000133/0.3571, allocations: 120.8 kB / 0.5471 GB, free: 10.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002463/0.3595, allocations: 1.782 MB / 0.5489 GB, free: 9.715 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3595, allocations: 0 / 0.5489 GB, free: 9.715 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000804/0.3604, allocations: 0.6336 MB / 0.5495 GB, free: 9.344 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007697/0.3611, allocations: 122.8 kB / 0.5496 GB, free: 9.301 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002361/0.3635, allocations: 1.871 MB / 0.5514 GB, free: 8.148 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004422/0.364, allocations: 0.9465 MB / 0.5523 GB, free: 7.422 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004742/0.3644, allocations: 157.9 kB / 0.5525 GB, free: 7.402 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.3646, allocations: 47.05 kB / 0.5525 GB, free: 7.395 MB / 378.7 MB Notification: Performance of SimCode: time 7.02e-07/0.3646, allocations: 1.094 kB / 0.5525 GB, free: 7.395 MB / 378.7 MB Notification: Performance of Templates: time 0.01814/0.3828, allocations: 9.329 MB / 0.5616 GB, free: 5.16 MB / 378.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)