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.001078/0.001078, allocations: 106.8 kB / 16.92 MB, free: 5.773 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.001093/0.001093, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.309/1.309, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2006/0.2006, allocations: 38.04 MB / 329.7 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 64.47 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09363, allocations: 58.05 MB / 456.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.008637/0.1023, allocations: 7.515 MB / 464.4 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004821/0.1072, allocations: 2.984 MB / 467.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000616/0.1078, allocations: 23.88 kB / 467.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002054/0.1099, allocations: 0.7389 MB / 468.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00167/0.1115, allocations: 0.688 MB / 468.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008757/0.1124, allocations: 377.2 kB / 469.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001547/0.114, allocations: 1.348 MB / 470.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009407/0.115, allocations: 0.7091 MB / 471.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008409/0.1158, allocations: 0.5526 MB / 471.8 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009318/0.1167, allocations: 0.6267 MB / 472.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000164/0.1169, allocations: 76 kB / 472.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008034/0.1177, allocations: 475.2 kB / 472.9 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004158/0.1182, allocations: 454.8 kB / 473.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006024/0.1188, allocations: 0.5092 MB / 473.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001434/0.1202, allocations: 1.402 MB / 475.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1202, allocations: 0 / 475.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1202, allocations: 0 / 475.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.892e-05/0.1203, allocations: 7.984 kB / 475.3 MB, free: 5.543 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.002238/0.1225, allocations: 1.28 MB / 476.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.1226, allocations: 15.83 kB / 476.6 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001252/0.1238, allocations: 215.5 kB / 476.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.1252, allocations: 0.702 MB / 477.5 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.816e-05/0.1253, allocations: 66.36 kB / 477.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/0.1255, allocations: 91.92 kB / 477.7 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.127, allocations: 1.1 MB / 478.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.757e-05/0.1271, allocations: 4 kB / 478.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-05/0.1272, allocations: 28 kB / 478.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001635/0.1273, allocations: 77.95 kB / 478.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001374/0.1287, allocations: 0.8704 MB / 479.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005013/0.1337, allocations: 4.008 MB / 483.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006049/0.1344, allocations: 435.8 kB / 484.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003817/0.1348, allocations: 279 kB / 484.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.1348, allocations: 12.44 kB / 484.5 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1348, allocations: 39 kB / 484.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.475e-06/0.1348, allocations: 0 / 484.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.002757/0.1376, allocations: 1.717 MB / 486.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.1377, allocations: 89.48 kB / 486.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006017/0.1383, allocations: 0.5899 MB / 486.9 MB, free: 9.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.1383, allocations: 29.7 kB / 486.9 MB, free: 9.445 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.1386, allocations: 474.5 kB / 487.4 MB, free: 8.973 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.1388, allocations: 185.5 kB / 487.6 MB, free: 8.789 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.139, allocations: 142.5 kB / 487.7 MB, free: 8.641 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1391, allocations: 382.8 kB / 488.1 MB, free: 8.258 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003661/0.1395, allocations: 249.8 kB / 488.3 MB, free: 8.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004935/0.14, allocations: 477 kB / 488.8 MB, free: 7.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009178/0.1409, allocations: 0.7703 MB / 489.6 MB, free: 6.586 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1409, allocations: 4 kB / 489.6 MB, free: 6.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001877/0.1428, allocations: 1.11 MB / 490.7 MB, free: 5.438 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.1428, allocations: 8.344 kB / 490.7 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001295/0.1441, allocations: 0.8073 MB / 491.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007155/0.1449, allocations: 226.2 kB / 491.7 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005088/0.1454, allocations: 151.8 kB / 491.9 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005267/0.1507, allocations: 5.675 MB / 497.5 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004743/0.1511, allocations: 35.98 kB / 497.6 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.517e-05/0.1512, allocations: 31.98 kB / 497.6 MB, free: 14.04 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.0003949/0.1516, allocations: 306.4 kB / 497.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.1517, allocations: 67.16 kB / 498 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009391/0.1527, allocations: 0.6163 MB / 498.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1527, allocations: 4 kB / 498.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.1527, allocations: 0 / 498.6 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1527, allocations: 3.984 kB / 498.6 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.155, allocations: 1.49 MB / 0.4884 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-06/0.155, allocations: 4 kB / 0.4884 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005968/0.1556, allocations: 127.8 kB / 0.4885 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/0.1556, allocations: 4.281 kB / 0.4885 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/0.1557, allocations: 19.94 kB / 0.4885 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.1557, allocations: 4 kB / 0.4885 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1557, allocations: 3.938 kB / 0.4885 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.1569, allocations: 0.931 MB / 0.4894 GB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002772/0.1572, allocations: 184.2 kB / 0.4896 GB, free: 10.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.1573, allocations: 15.92 kB / 0.4896 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/0.1577, allocations: 23.98 kB / 0.4896 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.801e-05/0.1578, allocations: 36.33 kB / 0.4897 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.1578, allocations: 16 kB / 0.4897 GB, free: 10.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007136/0.1585, allocations: 419 kB / 0.4901 GB, free: 9.652 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1586, allocations: 0 / 0.4901 GB, free: 9.652 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008596/0.1594, allocations: 236 kB / 0.4903 GB, free: 9.422 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.0003463/0.1598, allocations: 142.1 kB / 0.4905 GB, free: 9.277 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.1618, allocations: 1.166 MB / 0.4916 GB, free: 8.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.1618, allocations: 0 / 0.4916 GB, free: 8.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003891/0.1622, allocations: 263.6 kB / 0.4918 GB, free: 7.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000855/0.1631, allocations: 149.6 kB / 0.492 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003374/0.1665, allocations: 2.054 MB / 0.494 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008865/0.1674, allocations: 1.082 MB / 0.4951 GB, free: 4.473 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005501/0.1679, allocations: 193.9 kB / 0.4952 GB, free: 4.281 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.1681, allocations: 59.42 kB / 0.4953 GB, free: 4.223 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1681, allocations: 0 / 0.4953 GB, free: 4.223 MB / 382.1 MB Notification: Performance of Templates: time 0.01737/0.1855, allocations: 9.237 MB / 0.5043 GB, free: 11.05 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches