Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.PowerAngle,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.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,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.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001531/0.001532, allocations: 102.4 kB / 16.5 MB, free: 6.641 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.001695/0.001695, allocations: 195.1 kB / 17.42 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.448/1.448, allocations: 222.9 MB / 241.1 MB, free: 13.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1796/0.1796, allocations: 38.04 MB / 329.3 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 59.42 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09099/0.09242, allocations: 58.06 MB / 456.2 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.00996/0.1024, allocations: 8.686 MB / 464.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006762/0.1092, allocations: 3.381 MB / 468.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.1104, allocations: 51.69 kB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002217/0.1126, allocations: 0.7422 MB / 469 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001926/0.1145, allocations: 0.6342 MB / 469.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009996/0.1156, allocations: 331.4 kB / 470 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.1179, allocations: 2.003 MB / 472 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001083/0.119, allocations: 0.6972 MB / 472.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001027/0.12, allocations: 485.9 kB / 473.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00125/0.1213, allocations: 0.6658 MB / 473.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002255/0.1215, allocations: 56 kB / 473.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.1227, allocations: 491 kB / 474.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005589/0.1233, allocations: 442.8 kB / 474.8 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001121/0.1244, allocations: 485.6 kB / 475.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002496/0.1269, allocations: 1.382 MB / 476.6 MB, free: 3.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.1269, allocations: 0 / 476.6 MB, free: 3.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1269, allocations: 0 / 476.6 MB, free: 3.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.903e-05/0.127, allocations: 0 / 476.6 MB, free: 3.949 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003005/0.13, allocations: 1.262 MB / 477.9 MB, free: 2.637 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1301, allocations: 8.031 kB / 477.9 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/0.1314, allocations: 207.6 kB / 478.1 MB, free: 2.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.1328, allocations: 0.6863 MB / 478.8 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.657e-05/0.1329, allocations: 58.38 kB / 478.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002486/0.1331, allocations: 107.8 kB / 479 MB, free: 1.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.1349, allocations: 1.111 MB / 480.1 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.135, allocations: 8 kB / 480.1 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.992e-05/0.1351, allocations: 39.92 kB / 480.1 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001667/0.1352, allocations: 69.95 kB / 480.2 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.1368, allocations: 0.8822 MB / 481.1 MB, free: 15.38 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005488/0.1423, allocations: 4.085 MB / 485.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006193/0.1429, allocations: 418.1 kB / 485.6 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003697/0.1433, allocations: 265.6 kB / 485.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.1433, allocations: 11.92 kB / 485.8 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.1434, allocations: 38.56 kB / 485.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 2.835e-06/0.1434, allocations: 0 / 485.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.004284/0.1477, allocations: 1.977 MB / 487.8 MB, free: 8.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.1477, allocations: 85.48 kB / 487.9 MB, free: 8.168 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006802/0.1484, allocations: 0.5693 MB / 488.5 MB, free: 7.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.1485, allocations: 33.7 kB / 488.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002993/0.1488, allocations: 482.5 kB / 489 MB, free: 7.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001488/0.1489, allocations: 185.3 kB / 489.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/0.1491, allocations: 146.5 kB / 489.3 MB, free: 6.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1493, allocations: 382.7 kB / 489.7 MB, free: 6.355 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004089/0.1497, allocations: 273.8 kB / 490 MB, free: 6.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005493/0.1503, allocations: 0.5004 MB / 490.5 MB, free: 5.48 MB / 366.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.003179/0.1535, allocations: 1.4 MB / 491.9 MB, free: 3.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1535, allocations: 4 kB / 491.9 MB, free: 3.977 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001976/0.1555, allocations: 1.095 MB / 493 MB, free: 2.844 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.318e-05/0.1555, allocations: 8.5 kB / 493 MB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001216/0.1567, allocations: 0.7645 MB / 493.7 MB, free: 2.043 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005604/0.1573, allocations: 162.4 kB / 493.9 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000655/0.158, allocations: 179.7 kB / 494.1 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004024/0.162, allocations: 4.495 MB / 498.6 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005822/0.1626, allocations: 39.97 kB / 498.6 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.579e-05/0.1627, allocations: 32.06 kB / 498.6 MB, free: 12.73 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (87): * Single equations (assignments): 84 * 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): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006031/0.1633, allocations: 321.4 kB / 499 MB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001548/0.1634, allocations: 67.16 kB / 499 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.1646, allocations: 0.6512 MB / 499.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.1646, allocations: 7.938 kB / 499.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1646, allocations: 3.984 kB / 499.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.1646, allocations: 0 / 499.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002712/0.1673, allocations: 1.518 MB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.1674, allocations: 7.938 kB / 0.4895 GB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000632/0.168, allocations: 123.9 kB / 0.4896 GB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.328e-06/0.168, allocations: 4 kB / 0.4896 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.461e-05/0.1681, allocations: 15.94 kB / 0.4896 GB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.1681, allocations: 8.125 kB / 0.4896 GB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1681, allocations: 4 kB / 0.4896 GB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001308/0.1694, allocations: 0.9551 MB / 0.4905 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003069/0.1697, allocations: 184.2 kB / 0.4907 GB, free: 8.723 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.1699, allocations: 23.92 kB / 0.4907 GB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003521/0.1702, allocations: 19.98 kB / 0.4908 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.371e-05/0.1703, allocations: 32.39 kB / 0.4908 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/0.1703, allocations: 16 kB / 0.4908 GB, free: 8.633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004906/0.1708, allocations: 407 kB / 0.4912 GB, free: 8.234 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1709, allocations: 4 kB / 0.4912 GB, free: 8.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008557/0.1717, allocations: 236 kB / 0.4914 GB, free: 8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (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 (55): * Single equations (assignments): 54 * 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.0002858/0.172, allocations: 139 kB / 0.4916 GB, free: 7.855 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.1736, allocations: 1.019 MB / 0.4926 GB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1736, allocations: 0 / 0.4926 GB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003807/0.174, allocations: 270.6 kB / 0.4928 GB, free: 6.527 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008017/0.1748, allocations: 143.2 kB / 0.4929 GB, free: 6.387 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0035/0.1783, allocations: 2.324 MB / 0.4952 GB, free: 4.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008632/0.1792, allocations: 1.09 MB / 0.4963 GB, free: 2.906 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006632/0.1799, allocations: 201.8 kB / 0.4965 GB, free: 2.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.1801, allocations: 59.42 kB / 0.4965 GB, free: 2.648 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1801, allocations: 0 / 0.4965 GB, free: 2.648 MB / 382.1 MB Notification: Performance of Templates: time 0.01732/0.1975, allocations: 8.297 MB / 0.5046 GB, free: 10.41 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PowerAngle.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches