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.001736/0.001736, allocations: 111.4 kB / 17.68 MB, free: 5.496 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.001983/0.001982, allocations: 192 kB / 18.62 MB, free: 4.562 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.513/1.513, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2105/0.2105, allocations: 38.04 MB / 330.5 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 60.42 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.141, allocations: 58.06 MB / 458.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01351/0.1546, allocations: 9.555 MB / 467.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007215/0.1619, allocations: 3.568 MB / 471.4 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.163, allocations: 31.81 kB / 471.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003402/0.1665, allocations: 1.103 MB / 472.6 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004027/0.1705, allocations: 0.8904 MB / 473.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001985/0.1726, allocations: 471 kB / 473.9 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003151/0.1757, allocations: 1.808 MB / 475.7 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001776/0.1775, allocations: 0.97 MB / 476.7 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001731/0.1793, allocations: 0.7665 MB / 477.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002295/0.1816, allocations: 0.8955 MB / 478.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005178/0.1821, allocations: 104 kB / 478.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001639/0.1838, allocations: 0.5421 MB / 479 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009573/0.1848, allocations: 0.6351 MB / 479.6 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001748/0.1865, allocations: 0.6959 MB / 480.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003581/0.1901, allocations: 1.908 MB / 482.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.879e-06/0.1902, allocations: 0 / 482.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.1902, allocations: 0 / 482.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.922e-05/0.1903, allocations: 4 kB / 482.2 MB, free: 15.29 MB / 366.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.004706/0.195, allocations: 1.621 MB / 483.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/0.1951, allocations: 19.83 kB / 483.9 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001795/0.1969, allocations: 275 kB / 484.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002904/0.1998, allocations: 0.9451 MB / 485.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.1999, allocations: 82.09 kB / 485.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003672/0.2003, allocations: 139.8 kB / 485.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002538/0.2029, allocations: 1.486 MB / 486.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.898e-05/0.2029, allocations: 4 kB / 486.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001015/0.203, allocations: 47.98 kB / 486.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002967/0.2033, allocations: 110.1 kB / 487 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001964/0.2053, allocations: 1.254 MB / 488.2 MB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008034/0.2134, allocations: 5.625 MB / 493.8 MB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009121/0.2143, allocations: 0.5981 MB / 494.4 MB, free: 2.551 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005253/0.2148, allocations: 395.3 kB / 494.8 MB, free: 2.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.869e-05/0.2149, allocations: 16.55 kB / 494.8 MB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.215, allocations: 43.11 kB / 494.9 MB, free: 2.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.975e-06/0.215, allocations: 0 / 494.9 MB, free: 2.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.007354/0.2223, allocations: 3.633 MB / 498.5 MB, free: 14.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.052e-05/0.2224, allocations: 93.7 kB / 498.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009013/0.2233, allocations: 0.7274 MB / 499.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.707e-05/0.2234, allocations: 41.7 kB / 499.4 MB, free: 13.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004191/0.2238, allocations: 0.5956 MB / 500 MB, free: 12.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.2241, allocations: 276.2 kB / 0.4885 GB, free: 12.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002747/0.2244, allocations: 178.6 kB / 0.4887 GB, free: 12.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.2246, allocations: 402.7 kB / 0.4891 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005458/0.2251, allocations: 389.7 kB / 0.4894 GB, free: 11.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007835/0.2259, allocations: 0.6691 MB / 0.4901 GB, free: 10.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/0.2274, allocations: 1.14 MB / 0.4912 GB, free: 9.523 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.2274, allocations: 4 kB / 0.4912 GB, free: 9.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003324/0.2307, allocations: 1.717 MB / 0.4929 GB, free: 7.777 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.2308, allocations: 8 kB / 0.4929 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002457/0.2332, allocations: 1.302 MB / 0.4942 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001799/0.235, allocations: 0.5808 MB / 0.4947 GB, free: 5.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006138/0.2357, allocations: 171.7 kB / 0.4949 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/0.2479, allocations: 10.34 MB / 0.505 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008633/0.2488, allocations: 55.81 kB / 0.5051 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.11e-05/0.2489, allocations: 40 kB / 0.5051 GB, free: 10.67 MB / 398.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.0006432/0.2496, allocations: 385.4 kB / 0.5055 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.2497, allocations: 86.88 kB / 0.5055 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002217/0.252, allocations: 1.248 MB / 0.5068 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.204e-05/0.252, allocations: 11.98 kB / 0.5068 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.252, allocations: 4 kB / 0.5068 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.252, allocations: 3.984 kB / 0.5068 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004386/0.2564, allocations: 2.404 MB / 0.5091 GB, free: 6.398 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.2564, allocations: 0 / 0.5091 GB, free: 6.398 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005126/0.257, allocations: 103.9 kB / 0.5092 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.258, allocations: 380 kB / 0.5096 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.414e-05/0.2581, allocations: 23.98 kB / 0.5096 GB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2612/0.5193, allocations: 9.287 MB / 0.5187 GB, free: 66.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.5193, allocations: 4.094 kB / 0.5187 GB, free: 66.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002808/0.5221, allocations: 1.674 MB / 0.5203 GB, free: 65.82 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000511/0.5227, allocations: 229.1 kB / 0.5205 GB, free: 65.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.5228, allocations: 29.36 kB / 0.5206 GB, free: 65.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004561/0.5233, allocations: 24.09 kB / 0.5206 GB, free: 65.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.5235, allocations: 67.62 kB / 0.5207 GB, free: 65.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.186e-05/0.5235, allocations: 23.33 kB / 0.5207 GB, free: 65.73 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007141/0.5242, allocations: 0.5053 MB / 0.5212 GB, free: 65.57 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5242, allocations: 1.875 kB / 0.5212 GB, free: 65.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001405/0.5257, allocations: 362.3 kB / 0.5215 GB, free: 65.54 MB / 398.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.0003357/0.526, allocations: 153 kB / 0.5217 GB, free: 65.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002435/0.5284, allocations: 1.586 MB / 0.5232 GB, free: 64.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.5285, allocations: 0 / 0.5232 GB, free: 64.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/0.5301, allocations: 1.087 MB / 0.5243 GB, free: 63.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.5314, allocations: 204.6 kB / 0.5245 GB, free: 63.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004721/0.5361, allocations: 2.707 MB / 0.5271 GB, free: 62.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001282/0.5374, allocations: 1.258 MB / 0.5283 GB, free: 61.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008027/0.5382, allocations: 218.6 kB / 0.5285 GB, free: 61.79 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.5384, allocations: 65.33 kB / 0.5286 GB, free: 61.78 MB / 398.1 MB Notification: Performance of SimCode: time 1.523e-06/0.5384, allocations: 4 kB / 0.5286 GB, free: 61.77 MB / 398.1 MB Notification: Performance of Templates: time 0.02813/0.5666, allocations: 15.34 MB / 0.5436 GB, free: 56.08 MB / 398.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches