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.00109/0.00109, allocations: 109 kB / 16.92 MB, free: 5.766 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.001268/0.001268, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.366/1.366, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1785/0.1785, allocations: 38.04 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001214/0.001214, allocations: 63.08 kB / 398.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1017, allocations: 58.06 MB / 456.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.009174/0.1109, allocations: 7.442 MB / 464.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004279/0.1152, allocations: 2.995 MB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004651/0.1157, allocations: 27.81 kB / 467.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.1176, allocations: 0.7731 MB / 468.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001563/0.1192, allocations: 0.6999 MB / 468.8 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008515/0.1201, allocations: 367.2 kB / 469.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001471/0.1216, allocations: 1.328 MB / 470.5 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008943/0.1225, allocations: 0.7525 MB / 471.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000732/0.1232, allocations: 0.5527 MB / 471.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009173/0.1241, allocations: 0.619 MB / 472.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001481/0.1243, allocations: 76 kB / 472.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000779/0.1251, allocations: 483.1 kB / 473 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004104/0.1255, allocations: 454.9 kB / 473.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00057/0.1261, allocations: 0.5054 MB / 473.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001326/0.1274, allocations: 1.41 MB / 475.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1274, allocations: 0 / 475.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1274, allocations: 0 / 475.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.365e-05/0.1275, allocations: 0 / 475.3 MB, free: 5.539 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.002118/0.1296, allocations: 1.258 MB / 476.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.1296, allocations: 11.89 kB / 476.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/0.1308, allocations: 203.6 kB / 476.8 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.132, allocations: 0.6865 MB / 477.5 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.733e-05/0.1321, allocations: 62.36 kB / 477.5 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002011/0.1323, allocations: 95.86 kB / 477.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.1339, allocations: 1.127 MB / 478.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.1339, allocations: 0 / 478.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.383e-05/0.134, allocations: 32 kB / 478.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001601/0.1342, allocations: 73.95 kB / 478.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/0.1355, allocations: 0.8938 MB / 479.7 MB, free: 0.9688 MB / 350.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.004677/0.1402, allocations: 4.085 MB / 483.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005716/0.1408, allocations: 417.3 kB / 484.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.1412, allocations: 268.2 kB / 484.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.403e-05/0.1412, allocations: 15.94 kB / 484.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.526e-05/0.1412, allocations: 38.5 kB / 484.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 1.623e-06/0.1413, allocations: 0 / 484.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.003875/0.1451, allocations: 1.981 MB / 486.5 MB, free: 9.859 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.1452, allocations: 85.55 kB / 486.6 MB, free: 9.758 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005928/0.1458, allocations: 0.5655 MB / 487.2 MB, free: 9.184 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.686e-05/0.1458, allocations: 33.7 kB / 487.2 MB, free: 9.145 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002791/0.1461, allocations: 474.4 kB / 487.7 MB, free: 8.672 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.1463, allocations: 189.3 kB / 487.9 MB, free: 8.484 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.1465, allocations: 150.5 kB / 488 MB, free: 8.328 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1466, allocations: 382.7 kB / 488.4 MB, free: 7.945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004001/0.147, allocations: 265.8 kB / 488.6 MB, free: 7.688 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005391/0.1476, allocations: 0.5042 MB / 489.2 MB, free: 7.078 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.002977/0.1505, allocations: 1.415 MB / 490.6 MB, free: 5.562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.1506, allocations: 0 / 490.6 MB, free: 5.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001756/0.1523, allocations: 1.099 MB / 491.7 MB, free: 4.426 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1523, allocations: 8 kB / 491.7 MB, free: 4.418 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001172/0.1535, allocations: 0.7493 MB / 492.4 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004921/0.154, allocations: 166.4 kB / 492.6 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005756/0.1546, allocations: 179.7 kB / 492.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003823/0.1584, allocations: 4.853 MB / 497.6 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004819/0.1589, allocations: 43.91 kB / 497.7 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.276e-05/0.159, allocations: 28 kB / 497.7 MB, free: 13.95 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.0004273/0.1594, allocations: 327.7 kB / 498 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.1596, allocations: 71.09 kB / 498.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.1606, allocations: 0.6356 MB / 498.7 MB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.1606, allocations: 7.938 kB / 498.7 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1606, allocations: 7.984 kB / 498.7 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1606, allocations: 3.938 kB / 498.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/0.163, allocations: 1.518 MB / 0.4885 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.163, allocations: 0 / 0.4885 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006082/0.1636, allocations: 123.9 kB / 0.4886 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.157e-06/0.1636, allocations: 4 kB / 0.4886 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.467e-05/0.1637, allocations: 20 kB / 0.4887 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.1637, allocations: 4 kB / 0.4887 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.1637, allocations: 3.938 kB / 0.4887 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.1649, allocations: 0.9553 MB / 0.4896 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002417/0.1652, allocations: 176.4 kB / 0.4898 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.1653, allocations: 23.89 kB / 0.4898 GB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00035/0.1657, allocations: 19.98 kB / 0.4898 GB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.86e-05/0.1658, allocations: 40.27 kB / 0.4899 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.004e-05/0.1658, allocations: 16 kB / 0.4899 GB, free: 9.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005118/0.1663, allocations: 411 kB / 0.4903 GB, free: 9.453 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1663, allocations: 0 / 0.4903 GB, free: 9.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008098/0.1671, allocations: 236 kB / 0.4905 GB, free: 9.223 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.0003409/0.1675, allocations: 150 kB / 0.4906 GB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001808/0.1693, allocations: 1.152 MB / 0.4918 GB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.1693, allocations: 0 / 0.4918 GB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000377/0.1697, allocations: 258.7 kB / 0.492 GB, free: 7.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007665/0.1705, allocations: 155 kB / 0.4921 GB, free: 7.473 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.1734, allocations: 1.952 MB / 0.4941 GB, free: 5.477 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007112/0.1742, allocations: 1.071 MB / 0.4951 GB, free: 4.379 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005578/0.1747, allocations: 201.7 kB / 0.4953 GB, free: 4.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.1749, allocations: 63.41 kB / 0.4954 GB, free: 4.117 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1749, allocations: 4 kB / 0.4954 GB, free: 4.113 MB / 382.1 MB Notification: Performance of Templates: time 0.01549/0.1904, allocations: 8.658 MB / 0.5038 GB, free: 11.51 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