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.001453/0.001453, allocations: 112 kB / 17.06 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.001718/0.001718, 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.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 14.99 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.05 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 59.91 kB / 458.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3802/0.3814, allocations: 58.06 MB / 0.5041 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01183/0.3933, allocations: 9.546 MB / 0.5134 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007164/0.4005, allocations: 3.564 MB / 0.5169 GB, free: 14.86 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/0.4016, allocations: 33.47 kB / 0.5169 GB, free: 14.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00309/0.4047, allocations: 1.106 MB / 0.518 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003271/0.408, allocations: 0.8877 MB / 0.5189 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001748/0.4098, allocations: 479.8 kB / 0.5194 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003639/0.4134, allocations: 1.809 MB / 0.5211 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001963/0.4154, allocations: 0.9705 MB / 0.5221 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.4177, allocations: 0.7788 MB / 0.5228 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002223/0.42, allocations: 0.8951 MB / 0.5237 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005957/0.4206, allocations: 113.2 kB / 0.5238 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002396/0.423, allocations: 0.535 MB / 0.5243 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001351/0.4244, allocations: 0.6357 MB / 0.525 GB, free: 11.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.4255, allocations: 0.6982 MB / 0.5256 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003049/0.4285, allocations: 1.905 MB / 0.5275 GB, free: 10.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.4285, allocations: 3.938 kB / 0.5275 GB, free: 10.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.4286, allocations: 0 / 0.5275 GB, free: 10.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.494e-05/0.4286, allocations: 0 / 0.5275 GB, free: 10.11 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.003434/0.432, allocations: 1.632 MB / 0.5291 GB, free: 9.078 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.4321, allocations: 13.42 kB / 0.5291 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001744/0.4338, allocations: 272.9 kB / 0.5294 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/0.436, allocations: 0.9479 MB / 0.5303 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.116e-05/0.4361, allocations: 76.7 kB / 0.5304 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003477/0.4364, allocations: 139.1 kB / 0.5305 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002467/0.4389, allocations: 1.489 MB / 0.532 GB, free: 7.285 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.304e-05/0.439, allocations: 11.34 kB / 0.532 GB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.4391, allocations: 45.39 kB / 0.532 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003143/0.4394, allocations: 99.16 kB / 0.5321 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002074/0.4415, allocations: 1.255 MB / 0.5333 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007984/0.4495, allocations: 5.629 MB / 0.5388 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009425/0.4505, allocations: 0.593 MB / 0.5394 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000568/0.451, allocations: 401.3 kB / 0.5398 GB, free: 1.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.159e-05/0.4511, allocations: 15.8 kB / 0.5398 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.4511, allocations: 38.03 kB / 0.5398 GB, free: 1.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=67): time 3.527e-06/0.4512, allocations: 0 / 0.5398 GB, free: 1.492 MB / 398.1 MB Notification: Performance of matching and sorting (n=74): time 0.008095/0.4593, allocations: 3.633 MB / 0.5434 GB, free: 15.16 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.4594, allocations: 94.2 kB / 0.5435 GB, free: 15.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.4605, allocations: 0.735 MB / 0.5442 GB, free: 14.63 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.768e-05/0.4605, allocations: 36.52 kB / 0.5442 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004147/0.4609, allocations: 0.589 MB / 0.5448 GB, free: 14.06 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/0.4612, allocations: 271.8 kB / 0.5451 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002842/0.4615, allocations: 185.8 kB / 0.5452 GB, free: 13.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.4617, allocations: 403.3 kB / 0.5456 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006488/0.4623, allocations: 392.4 kB / 0.546 GB, free: 13.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007789/0.4631, allocations: 0.6613 MB / 0.5466 GB, free: 12.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/0.4646, allocations: 1.14 MB / 0.5478 GB, free: 11.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4646, allocations: 4 kB / 0.5478 GB, free: 11.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003329/0.4679, allocations: 1.709 MB / 0.5494 GB, free: 9.316 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.468, allocations: 8.281 kB / 0.5494 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002629/0.4706, allocations: 1.313 MB / 0.5507 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001981/0.4726, allocations: 0.5791 MB / 0.5513 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006471/0.4732, allocations: 175.7 kB / 0.5515 GB, free: 7.223 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01237/0.4856, allocations: 10.36 MB / 0.5616 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.4868, allocations: 39.97 kB / 0.5616 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.487, allocations: 40 kB / 0.5616 GB, free: 12.2 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.0008856/0.4878, allocations: 385.4 kB / 0.562 GB, free: 11.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002729/0.4881, allocations: 102.9 kB / 0.5621 GB, free: 11.71 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002397/0.4905, allocations: 1.244 MB / 0.5633 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.4906, allocations: 8 kB / 0.5633 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/0.4906, allocations: 7.938 kB / 0.5633 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.4906, allocations: 3.984 kB / 0.5633 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004743/0.4953, allocations: 2.397 MB / 0.5657 GB, free: 7.922 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/0.4954, allocations: 4 kB / 0.5657 GB, free: 7.918 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004599/0.4958, allocations: 112 kB / 0.5658 GB, free: 7.809 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.4969, allocations: 371.8 kB / 0.5662 GB, free: 7.43 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.206e-05/0.497, allocations: 31.97 kB / 0.5662 GB, free: 7.398 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008865/0.5059, allocations: 9.279 MB / 0.5752 GB, free: 13.42 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.5059, allocations: 4.062 kB / 0.5752 GB, free: 13.42 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003249/0.5091, allocations: 1.682 MB / 0.5769 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007068/0.5099, allocations: 227.8 kB / 0.5771 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002756/0.5102, allocations: 27.98 kB / 0.5771 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006244/0.5108, allocations: 27.98 kB / 0.5772 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001482/0.511, allocations: 56.47 kB / 0.5772 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.764e-05/0.511, allocations: 20 kB / 0.5772 GB, free: 11.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008968/0.5119, allocations: 0.5107 MB / 0.5777 GB, free: 10.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5119, allocations: 0 / 0.5777 GB, free: 10.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002038/0.514, allocations: 364 kB / 0.5781 GB, free: 10.45 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.000371/0.5144, allocations: 156.5 kB / 0.5782 GB, free: 10.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.5169, allocations: 1.587 MB / 0.5798 GB, free: 8.648 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.5169, allocations: 0 / 0.5798 GB, free: 8.648 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001591/0.5185, allocations: 1.098 MB / 0.5809 GB, free: 7.488 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.5197, allocations: 216.7 kB / 0.5811 GB, free: 7.289 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004816/0.5245, allocations: 2.699 MB / 0.5837 GB, free: 4.531 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.5256, allocations: 1.262 MB / 0.5849 GB, free: 3.238 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006108/0.5262, allocations: 215.6 kB / 0.5851 GB, free: 3.023 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/0.5265, allocations: 63.42 kB / 0.5852 GB, free: 2.961 MB / 446.1 MB Notification: Performance of SimCode: time 3.6e-07/0.5265, allocations: 0 / 0.5852 GB, free: 2.961 MB / 446.1 MB Notification: Performance of Templates: time 0.02835/0.5548, allocations: 15.58 MB / 0.6004 GB, free: 3.465 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