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.0007382/0.0007383, allocations: 92.95 kB / 16.65 MB, free: 6.602 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.000734/0.000734, allocations: 172.7 kB / 17.56 MB, free: 6.203 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.264/1.264, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1658/0.1658, allocations: 38.1 MB / 330.8 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003485, allocations: 13.19 kB / 400.7 MB, free: 34.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09696/0.09733, allocations: 59.16 MB / 459.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.007498/0.1049, allocations: 8.299 MB / 468.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004804/0.1097, allocations: 3.318 MB / 471.5 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007134/0.1104, allocations: 51.69 kB / 471.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000592/0.111, allocations: 186.8 kB / 471.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001429/0.1125, allocations: 0.6419 MB / 472.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007317/0.1132, allocations: 331.5 kB / 472.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001965/0.1152, allocations: 1.996 MB / 474.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001404/0.1166, allocations: 1.013 MB / 475.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006223/0.1173, allocations: 453.9 kB / 476.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007556/0.118, allocations: 0.6189 MB / 476.8 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.26e-05/0.1181, allocations: 36 kB / 476.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006942/0.1188, allocations: 467.1 kB / 477.3 MB, free: 5.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003291/0.1192, allocations: 410.9 kB / 477.7 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003833/0.1195, allocations: 491.2 kB / 478.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001144/0.1207, allocations: 1.355 MB / 479.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.1207, allocations: 0 / 479.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1207, allocations: 0 / 479.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.1207, allocations: 4 kB / 479.5 MB, free: 3.332 MB / 350.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.001823/0.1226, allocations: 1.094 MB / 480.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1226, allocations: 12.02 kB / 480.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/0.1237, allocations: 203.6 kB / 480.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.1249, allocations: 0.7136 MB / 481.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.695e-05/0.125, allocations: 58.38 kB / 481.6 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/0.1252, allocations: 103.8 kB / 481.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.1268, allocations: 1.1 MB / 482.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.1268, allocations: 7.984 kB / 482.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-05/0.1269, allocations: 32 kB / 482.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001515/0.1271, allocations: 69.97 kB / 482.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001249/0.1283, allocations: 0.8704 MB / 483.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004834/0.1332, allocations: 4.008 MB / 487.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006227/0.1338, allocations: 439.8 kB / 488.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003719/0.1342, allocations: 275 kB / 488.5 MB, free: 9.988 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.1342, allocations: 8.422 kB / 488.5 MB, free: 9.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.1343, allocations: 39 kB / 488.5 MB, free: 9.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.104e-06/0.1343, allocations: 0 / 488.5 MB, free: 9.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.00268/0.137, allocations: 1.721 MB / 490.2 MB, free: 8.152 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.369e-05/0.137, allocations: 93.59 kB / 490.3 MB, free: 8.043 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006794/0.1377, allocations: 0.5821 MB / 490.9 MB, free: 7.449 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.197e-05/0.1378, allocations: 37.7 kB / 490.9 MB, free: 7.406 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/0.1381, allocations: 466.5 kB / 491.4 MB, free: 6.941 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.1383, allocations: 185.4 kB / 491.6 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.769e-05/0.1384, allocations: 69.69 kB / 491.6 MB, free: 6.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.1385, allocations: 382.8 kB / 492 MB, free: 6.301 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003426/0.1389, allocations: 249.8 kB / 492.3 MB, free: 6.059 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000462/0.1394, allocations: 477 kB / 492.7 MB, free: 5.496 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008745/0.1402, allocations: 0.7703 MB / 493.5 MB, free: 4.629 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1403, allocations: 3.938 kB / 493.5 MB, free: 4.625 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001811/0.1421, allocations: 1.118 MB / 494.6 MB, free: 3.473 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.1421, allocations: 11.94 kB / 494.6 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001246/0.1434, allocations: 0.7959 MB / 495.4 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007072/0.1441, allocations: 222.3 kB / 495.6 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004815/0.1446, allocations: 151.8 kB / 495.8 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004679/0.1493, allocations: 5.26 MB / 0.4893 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004838/0.1498, allocations: 35.97 kB / 0.4893 GB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.61e-05/0.1498, allocations: 35.98 kB / 0.4894 GB, free: 12.52 MB / 382.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.0004103/0.1502, allocations: 298.4 kB / 0.4897 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.1503, allocations: 71.14 kB / 0.4897 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000919/0.1513, allocations: 0.6127 MB / 0.4903 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.1513, allocations: 4 kB / 0.4903 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.1513, allocations: 3.938 kB / 0.4903 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.1513, allocations: 15.86 kB / 0.4903 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002164/0.1535, allocations: 1.486 MB / 0.4918 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1535, allocations: 0 / 0.4918 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005911/0.1541, allocations: 131.8 kB / 0.4919 GB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.1541, allocations: 8.156 kB / 0.4919 GB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.971e-05/0.1542, allocations: 15.98 kB / 0.4919 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1542, allocations: 4 kB / 0.492 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.1542, allocations: 4 kB / 0.492 GB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.1553, allocations: 0.927 MB / 0.4929 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.1556, allocations: 180.2 kB / 0.493 GB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.164e-05/0.1557, allocations: 19.98 kB / 0.4931 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003342/0.156, allocations: 19.98 kB / 0.4931 GB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.171e-05/0.1561, allocations: 32.39 kB / 0.4931 GB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.1561, allocations: 19.94 kB / 0.4931 GB, free: 8.547 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005487/0.1567, allocations: 423 kB / 0.4935 GB, free: 8.137 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1567, allocations: 0 / 0.4935 GB, free: 8.137 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008149/0.1575, allocations: 240 kB / 0.4938 GB, free: 7.902 MB / 382.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.0002901/0.1578, allocations: 139.2 kB / 0.4939 GB, free: 7.758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.1593, allocations: 1.034 MB / 0.4949 GB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1594, allocations: 0 / 0.4949 GB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003317/0.1597, allocations: 266.2 kB / 0.4951 GB, free: 6.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008819/0.1606, allocations: 146.5 kB / 0.4953 GB, free: 6.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003157/0.1637, allocations: 2.544 MB / 0.4978 GB, free: 3.703 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000797/0.1646, allocations: 1.087 MB / 0.4988 GB, free: 2.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005475/0.1651, allocations: 189.9 kB / 0.499 GB, free: 2.398 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001656/0.1653, allocations: 55.42 kB / 0.4991 GB, free: 2.344 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1653, allocations: 3.938 kB / 0.4991 GB, free: 2.34 MB / 382.1 MB Notification: Performance of Templates: time 0.2073/0.3726, allocations: 8.717 MB / 0.5076 GB, free: 53.43 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches