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.001177/0.001177, allocations: 112.1 kB / 17.68 MB, free: 5.473 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.001704/0.001704, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.422/1.422, allocations: 222.9 MB / 242.3 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.1953/0.1953, allocations: 38.04 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001546, allocations: 71.14 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1225, allocations: 58.06 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.009332/0.1319, allocations: 7.508 MB / 465.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005188/0.1371, allocations: 2.972 MB / 468.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005995/0.1378, allocations: 27.81 kB / 468.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002123/0.1399, allocations: 0.7495 MB / 469.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001914/0.1418, allocations: 0.6998 MB / 470.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009674/0.1428, allocations: 371.2 kB / 470.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001823/0.1446, allocations: 1.348 MB / 472 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000895/0.1455, allocations: 0.7091 MB / 472.7 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008911/0.1464, allocations: 0.5565 MB / 473.2 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008987/0.1474, allocations: 0.6189 MB / 473.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.1475, allocations: 76 kB / 473.9 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009078/0.1484, allocations: 483.1 kB / 474.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004125/0.1488, allocations: 450.9 kB / 474.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005323/0.1494, allocations: 0.5092 MB / 475.4 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001699/0.1511, allocations: 1.421 MB / 476.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1511, allocations: 0 / 476.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1511, allocations: 4 kB / 476.8 MB, free: 4.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.1511, allocations: 0 / 476.8 MB, free: 4.785 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.002199/0.1533, allocations: 1.281 MB / 478.1 MB, free: 3.453 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1534, allocations: 11.89 kB / 478.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001256/0.1546, allocations: 211.5 kB / 478.3 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.1562, allocations: 0.7332 MB / 479 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.149e-05/0.1563, allocations: 66.34 kB / 479.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.1565, allocations: 103.9 kB / 479.2 MB, free: 2.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001576/0.1581, allocations: 1.096 MB / 480.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/0.1582, allocations: 4 kB / 480.3 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.637e-05/0.1583, allocations: 32 kB / 480.3 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000157/0.1584, allocations: 69.95 kB / 480.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.1598, allocations: 0.8704 MB / 481.3 MB, free: 184 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005335/0.1651, allocations: 3.985 MB / 485.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006129/0.1657, allocations: 431.8 kB / 485.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003667/0.1661, allocations: 282.9 kB / 485.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.191e-05/0.1662, allocations: 4.438 kB / 485.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.161e-05/0.1662, allocations: 46.98 kB / 486 MB, free: 11.19 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.825e-06/0.1662, allocations: 0 / 486 MB, free: 11.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.002909/0.1691, allocations: 1.713 MB / 487.7 MB, free: 9.422 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.1692, allocations: 81.55 kB / 487.8 MB, free: 9.324 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006536/0.1699, allocations: 0.5939 MB / 488.4 MB, free: 8.719 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.1699, allocations: 37.7 kB / 488.4 MB, free: 8.676 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003115/0.1702, allocations: 466.5 kB / 488.9 MB, free: 8.211 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002123/0.1705, allocations: 185.4 kB / 489 MB, free: 8.027 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.1707, allocations: 150.4 kB / 489.2 MB, free: 7.871 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1708, allocations: 374.8 kB / 489.6 MB, free: 7.496 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003857/0.1712, allocations: 253.8 kB / 489.8 MB, free: 7.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005198/0.1717, allocations: 480.9 kB / 490.3 MB, free: 6.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000956/0.1727, allocations: 0.7702 MB / 491 MB, free: 5.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.1727, allocations: 4 kB / 491.1 MB, free: 5.812 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001982/0.1747, allocations: 1.114 MB / 492.2 MB, free: 4.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.1747, allocations: 8 kB / 492.2 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001329/0.1761, allocations: 0.795 MB / 493 MB, free: 3.836 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007304/0.1768, allocations: 226.5 kB / 493.2 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/0.1773, allocations: 159.7 kB / 493.3 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005938/0.1833, allocations: 5.66 MB / 499 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008424/0.1842, allocations: 43.91 kB / 499 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.493e-05/0.1842, allocations: 36 kB / 499.1 MB, free: 13.28 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.0005349/0.1848, allocations: 310.4 kB / 499.4 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001264/0.1849, allocations: 67.16 kB / 499.5 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009481/0.1859, allocations: 0.6046 MB / 0.4883 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.413e-06/0.1859, allocations: 8 kB / 0.4883 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.564e-06/0.1859, allocations: 0 / 0.4883 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.1859, allocations: 3.984 kB / 0.4883 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002688/0.1886, allocations: 1.49 MB / 0.4898 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.1886, allocations: 0 / 0.4898 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006218/0.1893, allocations: 132 kB / 0.4899 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.1893, allocations: 4 kB / 0.4899 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.234e-05/0.1893, allocations: 15.94 kB / 0.4899 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.1893, allocations: 7.938 kB / 0.49 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1894, allocations: 4 kB / 0.49 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001229/0.1906, allocations: 0.9243 MB / 0.4909 GB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003529/0.1909, allocations: 188.1 kB / 0.491 GB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.212e-05/0.191, allocations: 19.94 kB / 0.4911 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003216/0.1914, allocations: 19.98 kB / 0.4911 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.52e-05/0.1915, allocations: 36.39 kB / 0.4911 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.285e-05/0.1915, allocations: 16 kB / 0.4911 GB, free: 9.301 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005127/0.192, allocations: 419 kB / 0.4915 GB, free: 8.895 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.192, allocations: 0 / 0.4915 GB, free: 8.895 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009323/0.193, allocations: 236 kB / 0.4918 GB, free: 8.664 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.0003642/0.1933, allocations: 139.2 kB / 0.4919 GB, free: 8.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.1953, allocations: 1.037 MB / 0.4929 GB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.1953, allocations: 0 / 0.4929 GB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003742/0.1957, allocations: 258.3 kB / 0.4931 GB, free: 7.195 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008138/0.1965, allocations: 163.2 kB / 0.4933 GB, free: 7.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003396/0.1999, allocations: 2.049 MB / 0.4953 GB, free: 4.953 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007518/0.2007, allocations: 1.082 MB / 0.4964 GB, free: 3.844 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005148/0.2012, allocations: 185.9 kB / 0.4965 GB, free: 3.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.2014, allocations: 59.42 kB / 0.4966 GB, free: 3.602 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2014, allocations: 0 / 0.4966 GB, free: 3.602 MB / 382.1 MB Notification: Performance of Templates: time 0.01821/0.2196, allocations: 9.23 MB / 0.5056 GB, free: 10.43 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.makefile (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 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches