Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|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.TurbineGeneratorLine") translateModel(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|busbar.alpha_v|busbar1.alpha_v|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.TurbineGeneratorLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 107.3 kB / 17.06 MB, free: 5.824 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.001513/0.001513, allocations: 195.9 kB / 18 MB, free: 4.965 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.397/1.397, 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.1826/0.1826, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 67.89 kB / 458.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3849/0.3864, allocations: 58.05 MB / 0.5041 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01149/0.3979, allocations: 9.554 MB / 0.5134 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007735/0.4057, allocations: 3.561 MB / 0.5169 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.4072, allocations: 34.38 kB / 0.517 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003613/0.411, allocations: 1.107 MB / 0.518 GB, free: 13.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003678/0.4147, allocations: 0.899 MB / 0.5189 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001775/0.4165, allocations: 484.8 kB / 0.5194 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003848/0.4204, allocations: 1.806 MB / 0.5211 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00176/0.4221, allocations: 0.9738 MB / 0.5221 GB, free: 11.99 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001957/0.4241, allocations: 0.7791 MB / 0.5228 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002019/0.4261, allocations: 0.8921 MB / 0.5237 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004947/0.4267, allocations: 104.5 kB / 0.5238 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001614/0.4283, allocations: 0.5352 MB / 0.5243 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008348/0.4291, allocations: 0.642 MB / 0.525 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009109/0.43, allocations: 0.6993 MB / 0.5257 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002707/0.4328, allocations: 1.905 MB / 0.5275 GB, free: 9.855 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.4328, allocations: 0 / 0.5275 GB, free: 9.855 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4328, allocations: 3.938 kB / 0.5275 GB, free: 9.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.424e-05/0.4328, allocations: 1.219 kB / 0.5275 GB, free: 9.852 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: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.003263/0.4361, allocations: 1.622 MB / 0.5291 GB, free: 8.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.4361, allocations: 13.73 kB / 0.5291 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00166/0.4378, allocations: 280.7 kB / 0.5294 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001974/0.4398, allocations: 0.9399 MB / 0.5303 GB, free: 8.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.38e-05/0.4399, allocations: 80.59 kB / 0.5304 GB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003551/0.4402, allocations: 144.4 kB / 0.5305 GB, free: 7.938 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002355/0.4426, allocations: 1.488 MB / 0.532 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.156e-05/0.4427, allocations: 6.562 kB / 0.532 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.4428, allocations: 45.75 kB / 0.532 GB, free: 6.984 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003079/0.4431, allocations: 99.19 kB / 0.5321 GB, free: 6.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002084/0.4452, allocations: 1.255 MB / 0.5333 GB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007788/0.453, allocations: 5.629 MB / 0.5388 GB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009431/0.454, allocations: 0.5977 MB / 0.5394 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005739/0.4545, allocations: 400 kB / 0.5398 GB, free: 1.281 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.906e-05/0.4546, allocations: 12.16 kB / 0.5398 GB, free: 1.277 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.029e-05/0.4547, allocations: 42.36 kB / 0.5399 GB, free: 1.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 3.236e-06/0.4547, allocations: 4 kB / 0.5399 GB, free: 1.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.008013/0.4627, allocations: 3.627 MB / 0.5434 GB, free: 14.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.517e-05/0.4628, allocations: 92.89 kB / 0.5435 GB, free: 14.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/0.464, allocations: 0.7317 MB / 0.5442 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.52e-05/0.4641, allocations: 45.39 kB / 0.5442 GB, free: 14.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004569/0.4645, allocations: 0.5895 MB / 0.5448 GB, free: 13.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003247/0.4649, allocations: 265.8 kB / 0.5451 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003599/0.4652, allocations: 187.3 kB / 0.5453 GB, free: 13.46 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002416/0.4655, allocations: 402.5 kB / 0.5456 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007182/0.4662, allocations: 390.6 kB / 0.546 GB, free: 12.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008358/0.4671, allocations: 0.6652 MB / 0.5467 GB, free: 12.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001547/0.4686, allocations: 1.136 MB / 0.5478 GB, free: 10.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-05/0.4686, allocations: 4 kB / 0.5478 GB, free: 10.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00346/0.4721, allocations: 1.713 MB / 0.5494 GB, free: 9.117 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/0.4721, allocations: 8 kB / 0.5495 GB, free: 9.109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002557/0.4747, allocations: 1.31 MB / 0.5507 GB, free: 7.789 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002013/0.4767, allocations: 0.5872 MB / 0.5513 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006121/0.4774, allocations: 171.7 kB / 0.5515 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01222/0.4896, allocations: 10.35 MB / 0.5616 GB, free: 12.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.4908, allocations: 47.97 kB / 0.5616 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.4909, allocations: 44 kB / 0.5617 GB, free: 12 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (93): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.001312/0.4922, allocations: 381.4 kB / 0.562 GB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004593/0.4927, allocations: 86.88 kB / 0.5621 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003331/0.4961, allocations: 1.248 MB / 0.5633 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.4961, allocations: 8 kB / 0.5633 GB, free: 10.25 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.916e-05/0.4961, allocations: 12.05 kB / 0.5633 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.4961, allocations: 0 / 0.5633 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005532/0.5017, allocations: 2.401 MB / 0.5657 GB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.5017, allocations: 0 / 0.5657 GB, free: 7.734 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004942/0.5022, allocations: 108.1 kB / 0.5658 GB, free: 7.629 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001083/0.5033, allocations: 383.9 kB / 0.5662 GB, free: 7.238 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.275e-05/0.5034, allocations: 27.92 kB / 0.5662 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009082/0.5125, allocations: 9.287 MB / 0.5753 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.5125, allocations: 4 kB / 0.5753 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002991/0.5155, allocations: 1.674 MB / 0.5769 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005774/0.5161, allocations: 231.8 kB / 0.5771 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002338/0.5163, allocations: 27.92 kB / 0.5771 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005699/0.5169, allocations: 23.98 kB / 0.5772 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.5171, allocations: 68.41 kB / 0.5772 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.319e-05/0.5171, allocations: 23.98 kB / 0.5773 GB, free: 11.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008592/0.518, allocations: 0.5068 MB / 0.5777 GB, free: 10.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.518, allocations: 0 / 0.5777 GB, free: 10.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001772/0.5198, allocations: 364 kB / 0.5781 GB, free: 10.25 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003931/0.5202, allocations: 154.8 kB / 0.5782 GB, free: 10.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002768/0.523, allocations: 1.586 MB / 0.5798 GB, free: 8.449 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.523, allocations: 0 / 0.5798 GB, free: 8.449 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001693/0.5247, allocations: 1.095 MB / 0.5809 GB, free: 7.293 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.5259, allocations: 210 kB / 0.5811 GB, free: 7.094 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004831/0.5308, allocations: 2.705 MB / 0.5837 GB, free: 4.336 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/0.5318, allocations: 1.251 MB / 0.5849 GB, free: 3.055 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006069/0.5325, allocations: 223.6 kB / 0.5851 GB, free: 2.832 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.5327, allocations: 67.42 kB / 0.5852 GB, free: 2.766 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5328, allocations: 0 / 0.5852 GB, free: 2.766 MB / 446.1 MB Notification: Performance of Templates: time 0.02876/0.5615, allocations: 15.58 MB / 0.6004 GB, free: 3.27 MB / 462.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches