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.001148/0.001148, allocations: 112.3 kB / 16.51 MB, free: 6.715 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.001197/0.001197, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.331/1.331, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1728/0.1728, allocations: 38.04 MB / 329.3 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 64.91 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1153, allocations: 58.06 MB / 456.2 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01206/0.1274, allocations: 11.19 MB / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007775/0.1352, allocations: 4.09 MB / 471.4 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.1364, allocations: 63.62 kB / 471.5 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002594/0.139, allocations: 1.038 MB / 472.5 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002228/0.1412, allocations: 0.8248 MB / 473.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.1424, allocations: 427.3 kB / 473.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002834/0.1453, allocations: 2.779 MB / 476.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001219/0.1465, allocations: 0.9145 MB / 477.5 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001052/0.1476, allocations: 0.6573 MB / 478.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001663/0.1493, allocations: 0.954 MB / 479.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002755/0.1496, allocations: 76 kB / 479.2 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.1511, allocations: 0.5302 MB / 479.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009265/0.152, allocations: 0.6195 MB / 480.3 MB, free: 268 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001169/0.1532, allocations: 0.6607 MB / 481 MB, free: 15.6 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002657/0.1559, allocations: 1.846 MB / 482.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.1559, allocations: 0 / 482.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1559, allocations: 0 / 482.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.015e-05/0.156, allocations: 0 / 482.8 MB, free: 13.75 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.003237/0.1592, allocations: 1.637 MB / 484.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.31e-05/0.1593, allocations: 12.03 kB / 484.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001773/0.1611, allocations: 263.1 kB / 484.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/0.1629, allocations: 0.8945 MB / 485.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.062e-05/0.163, allocations: 90.02 kB / 485.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002922/0.1633, allocations: 131.9 kB / 485.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.1655, allocations: 1.489 MB / 487.3 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.12e-05/0.1656, allocations: 19.81 kB / 487.3 MB, free: 9.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.1657, allocations: 43.98 kB / 487.4 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002999/0.166, allocations: 94.17 kB / 487.5 MB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/0.1679, allocations: 1.254 MB / 488.7 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007594/0.1755, allocations: 5.668 MB / 494.4 MB, free: 1.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008954/0.1765, allocations: 0.5965 MB / 495 MB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005557/0.177, allocations: 399.3 kB / 495.4 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.487e-05/0.1771, allocations: 16.53 kB / 495.4 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.1772, allocations: 43.12 kB / 495.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 2.806e-06/0.1772, allocations: 0 / 495.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.007437/0.1846, allocations: 3.634 MB / 499.1 MB, free: 12.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.1847, allocations: 89.7 kB / 499.2 MB, free: 12.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009331/0.1856, allocations: 0.739 MB / 499.9 MB, free: 11.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.598e-05/0.1857, allocations: 41.64 kB / 499.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000386/0.1861, allocations: 0.5918 MB / 0.4888 GB, free: 11.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002126/0.1863, allocations: 260.3 kB / 0.489 GB, free: 11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002592/0.1866, allocations: 182.5 kB / 0.4892 GB, free: 10.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.1868, allocations: 406.8 kB / 0.4896 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.1873, allocations: 389.8 kB / 0.49 GB, free: 10.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007383/0.1881, allocations: 0.6652 MB / 0.4906 GB, free: 9.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/0.1895, allocations: 1.136 MB / 0.4917 GB, free: 7.996 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.807e-06/0.1895, allocations: 4 kB / 0.4917 GB, free: 7.992 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003392/0.1929, allocations: 1.709 MB / 0.4934 GB, free: 6.262 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/0.193, allocations: 15.97 kB / 0.4934 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002635/0.1956, allocations: 1.306 MB / 0.4947 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001979/0.1976, allocations: 0.5769 MB / 0.4953 GB, free: 4.336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000607/0.1982, allocations: 171.7 kB / 0.4954 GB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/0.2094, allocations: 9.476 MB / 0.5047 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007653/0.2101, allocations: 47.88 kB / 0.5047 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001175/0.2103, allocations: 43.98 kB / 0.5048 GB, free: 10.05 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.0005997/0.2109, allocations: 385.4 kB / 0.5051 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002118/0.2111, allocations: 90.88 kB / 0.5052 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002574/0.2137, allocations: 1.248 MB / 0.5064 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.2137, allocations: 8 kB / 0.5065 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.2137, allocations: 7.984 kB / 0.5065 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.2137, allocations: 7.984 kB / 0.5065 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004566/0.2183, allocations: 2.4 MB / 0.5088 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.2183, allocations: 4 kB / 0.5088 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004943/0.2188, allocations: 107.9 kB / 0.5089 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/0.2201, allocations: 379.9 kB / 0.5093 GB, free: 5.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.311e-05/0.2202, allocations: 27.98 kB / 0.5093 GB, free: 5.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1927/0.4129, allocations: 8.476 MB / 0.5176 GB, free: 66.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.4129, allocations: 2.766 kB / 0.5176 GB, free: 66.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00291/0.4159, allocations: 1.674 MB / 0.5192 GB, free: 66.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003764/0.4163, allocations: 224.7 kB / 0.5194 GB, free: 66.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.4164, allocations: 32.03 kB / 0.5195 GB, free: 66.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004746/0.4169, allocations: 31.83 kB / 0.5195 GB, free: 66.27 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.417, allocations: 60.75 kB / 0.5196 GB, free: 66.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.189e-05/0.4171, allocations: 26.41 kB / 0.5196 GB, free: 66.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006702/0.4178, allocations: 0.5088 MB / 0.5201 GB, free: 66.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4178, allocations: 1.562 kB / 0.5201 GB, free: 66.08 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001384/0.4192, allocations: 362.3 kB / 0.5204 GB, free: 66.05 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.0003017/0.4195, allocations: 149.1 kB / 0.5206 GB, free: 65.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.4217, allocations: 1.569 MB / 0.5221 GB, free: 65.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.4217, allocations: 1.125 kB / 0.5221 GB, free: 65.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.4232, allocations: 1.09 MB / 0.5232 GB, free: 64.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009894/0.4242, allocations: 191.8 kB / 0.5233 GB, free: 64.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004214/0.4284, allocations: 3.218 MB / 0.5265 GB, free: 62.58 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001342/0.4297, allocations: 1.251 MB / 0.5277 GB, free: 61.8 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009659/0.4307, allocations: 227 kB / 0.5279 GB, free: 61.77 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.4309, allocations: 68.92 kB / 0.528 GB, free: 61.76 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4309, allocations: 0 / 0.528 GB, free: 61.76 MB / 398.1 MB Notification: Performance of Templates: time 0.02569/0.4566, allocations: 14.69 MB / 0.5423 GB, free: 56.81 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 -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