Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.powerAngle|sensor.p.1.|sensor.p.2.|sensor.p.3.|sensor1.p.1.|sensor1.p.2.|sensor1.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001726/0.001726, allocations: 115.7 kB / 17.07 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 192 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1747/0.1747, allocations: 38.03 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 60.09 kB / 458.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4289/0.4301, allocations: 58.06 MB / 0.5041 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.009066/0.4392, allocations: 7.522 MB / 0.5115 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005037/0.4443, allocations: 2.968 MB / 0.5144 GB, free: 412 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007165/0.4451, allocations: 25.41 kB / 0.5144 GB, free: 404 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00198/0.4471, allocations: 0.7379 MB / 0.5151 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002175/0.4492, allocations: 0.7035 MB / 0.5158 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001241/0.4505, allocations: 369.9 kB / 0.5161 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002168/0.4527, allocations: 1.357 MB / 0.5175 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001233/0.4539, allocations: 0.7137 MB / 0.5182 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001388/0.4553, allocations: 0.5742 MB / 0.5187 GB, free: 14.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001277/0.4566, allocations: 0.6234 MB / 0.5193 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001889/0.4568, allocations: 74.88 kB / 0.5194 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001271/0.4581, allocations: 478.5 kB / 0.5199 GB, free: 13.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006319/0.4587, allocations: 451.5 kB / 0.5203 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007216/0.4595, allocations: 0.503 MB / 0.5208 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002434/0.4619, allocations: 1.427 MB / 0.5222 GB, free: 12.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4619, allocations: 4.734 kB / 0.5222 GB, free: 12.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.4619, allocations: 0 / 0.5222 GB, free: 12.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.827e-05/0.462, allocations: 0 / 0.5222 GB, free: 12.91 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002725/0.4647, allocations: 1.274 MB / 0.5234 GB, free: 12.05 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.4648, allocations: 13.19 kB / 0.5234 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/0.4661, allocations: 206.8 kB / 0.5236 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.4677, allocations: 0.7412 MB / 0.5244 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.446e-05/0.4678, allocations: 66.86 kB / 0.5244 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000245/0.468, allocations: 91.72 kB / 0.5245 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.4701, allocations: 1.101 MB / 0.5256 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.541e-05/0.4701, allocations: 11.19 kB / 0.5256 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.52e-05/0.4702, allocations: 31.88 kB / 0.5256 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001914/0.4704, allocations: 71.42 kB / 0.5257 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001631/0.4721, allocations: 0.8687 MB / 0.5265 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006163/0.4782, allocations: 3.972 MB / 0.5304 GB, free: 7.859 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006433/0.4789, allocations: 441.4 kB / 0.5308 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004019/0.4793, allocations: 277.1 kB / 0.5311 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.223e-05/0.4794, allocations: 5.688 kB / 0.5311 GB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.4794, allocations: 36.88 kB / 0.5311 GB, free: 7.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=48): time 2.164e-06/0.4794, allocations: 9.156 kB / 0.5312 GB, free: 7.375 MB / 398.1 MB Notification: Performance of matching and sorting (n=51): time 0.00381/0.4833, allocations: 1.714 MB / 0.5328 GB, free: 6.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.037e-05/0.4834, allocations: 83.73 kB / 0.5329 GB, free: 6.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001183/0.4846, allocations: 0.5937 MB / 0.5335 GB, free: 5.867 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.712e-05/0.4846, allocations: 36.3 kB / 0.5335 GB, free: 5.828 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004718/0.4851, allocations: 468.8 kB / 0.534 GB, free: 5.414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.4853, allocations: 185.7 kB / 0.5342 GB, free: 5.254 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/0.4857, allocations: 137.5 kB / 0.5343 GB, free: 5.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002116/0.4859, allocations: 385.2 kB / 0.5346 GB, free: 4.805 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000566/0.4864, allocations: 247.9 kB / 0.5349 GB, free: 4.688 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007941/0.4873, allocations: 480.5 kB / 0.5353 GB, free: 4.277 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.4888, allocations: 0.7756 MB / 0.5361 GB, free: 3.711 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.4888, allocations: 1.406 kB / 0.5361 GB, free: 3.711 MB / 398.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00307/0.4919, allocations: 1.12 MB / 0.5372 GB, free: 3.055 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/0.4919, allocations: 11.62 kB / 0.5372 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00223/0.4941, allocations: 0.7914 MB / 0.538 GB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/0.4954, allocations: 224.5 kB / 0.5382 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009614/0.4964, allocations: 149.3 kB / 0.5383 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009543/0.5059, allocations: 5.664 MB / 0.5439 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.5073, allocations: 38.12 kB / 0.5439 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/0.5075, allocations: 32.73 kB / 0.5439 GB, free: 13.28 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0009903/0.5085, allocations: 305.3 kB / 0.5442 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003427/0.5089, allocations: 79.23 kB / 0.5443 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00165/0.5105, allocations: 0.6062 MB / 0.5449 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.5105, allocations: 6.469 kB / 0.5449 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.5106, allocations: 0 / 0.5449 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.5106, allocations: 5.328 kB / 0.5449 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004785/0.5154, allocations: 1.49 MB / 0.5464 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.5154, allocations: 5.375 kB / 0.5464 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009177/0.5163, allocations: 125.7 kB / 0.5465 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.627e-05/0.5164, allocations: 4.594 kB / 0.5465 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.933e-05/0.5165, allocations: 18.14 kB / 0.5465 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-05/0.5165, allocations: 3.5 kB / 0.5465 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.5165, allocations: 1.031 kB / 0.5465 GB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.5184, allocations: 0.9337 MB / 0.5474 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005221/0.5189, allocations: 184.2 kB / 0.5476 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002475/0.5192, allocations: 15.98 kB / 0.5476 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006793/0.5199, allocations: 15.98 kB / 0.5476 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.52, allocations: 40.33 kB / 0.5477 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-05/0.5201, allocations: 16 kB / 0.5477 GB, free: 10.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001001/0.5211, allocations: 419 kB / 0.5481 GB, free: 10.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5211, allocations: 0 / 0.5481 GB, free: 10.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001481/0.5226, allocations: 236 kB / 0.5483 GB, free: 10.02 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004524/0.5231, allocations: 145.3 kB / 0.5484 GB, free: 9.867 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002817/0.5259, allocations: 1.041 MB / 0.5495 GB, free: 8.789 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.526, allocations: 0 / 0.5495 GB, free: 8.789 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003902/0.5264, allocations: 259.8 kB / 0.5497 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001477/0.5278, allocations: 170.3 kB / 0.5499 GB, free: 8.379 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005188/0.533, allocations: 2.038 MB / 0.5519 GB, free: 6.297 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001265/0.5343, allocations: 1.086 MB / 0.5529 GB, free: 5.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008022/0.5351, allocations: 189.9 kB / 0.5531 GB, free: 4.992 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003119/0.5355, allocations: 63.42 kB / 0.5532 GB, free: 4.93 MB / 414.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5355, allocations: 0 / 0.5532 GB, free: 4.93 MB / 414.1 MB Notification: Performance of Templates: time 0.02762/0.5631, allocations: 9.411 MB / 0.5624 GB, free: 11.58 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches