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.001814/0.001814, allocations: 111.4 kB / 17.29 MB, free: 6.059 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.00225/0.00225, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.364/2.364, allocations: 222.9 MB / 241.9 MB, free: 13.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.4161/0.4161, allocations: 38.03 MB / 330.1 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002684/0.002685, allocations: 60.41 kB / 398.9 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1555, allocations: 58.06 MB / 457 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.01894/0.1744, allocations: 8.682 MB / 465.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01068/0.1852, allocations: 3.354 MB / 469 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.1865, allocations: 47.69 kB / 469.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003727/0.1903, allocations: 0.7277 MB / 469.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003237/0.1935, allocations: 0.6342 MB / 470.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001792/0.1954, allocations: 342.7 kB / 470.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00296/0.1983, allocations: 1.325 MB / 472.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002036/0.2004, allocations: 0.8033 MB / 472.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001341/0.2018, allocations: 0.5564 MB / 473.5 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001873/0.2037, allocations: 0.6775 MB / 474.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002764/0.204, allocations: 72 kB / 474.2 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00156/0.2055, allocations: 475.2 kB / 474.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008393/0.2064, allocations: 462.8 kB / 475.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001288/0.2077, allocations: 0.5015 MB / 475.6 MB, free: 5.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002538/0.2103, allocations: 1.084 MB / 476.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.061e-05/0.2103, allocations: 3.984 kB / 476.7 MB, free: 4.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.2103, allocations: 3.938 kB / 476.7 MB, free: 4.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.183e-05/0.2104, allocations: 0 / 476.7 MB, free: 4.578 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.004669/0.2151, allocations: 1.27 MB / 478 MB, free: 3.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.689e-05/0.2152, allocations: 11.89 kB / 478 MB, free: 3.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002487/0.2177, allocations: 203.6 kB / 478.2 MB, free: 3.047 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002731/0.2204, allocations: 0.6865 MB / 478.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.2206, allocations: 66.36 kB / 479 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005548/0.2211, allocations: 99.83 kB / 479.1 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003528/0.2247, allocations: 1.111 MB / 480.2 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.439e-05/0.2248, allocations: 3.938 kB / 480.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001539/0.2249, allocations: 35.98 kB / 480.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003303/0.2253, allocations: 73.95 kB / 480.3 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002833/0.2281, allocations: 0.8821 MB / 481.2 MB, free: 4 kB / 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.01088/0.239, allocations: 4.082 MB / 485.2 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.2403, allocations: 426.9 kB / 485.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007559/0.2411, allocations: 268.4 kB / 485.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.992e-05/0.2412, allocations: 11.94 kB / 485.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.602e-05/0.2413, allocations: 34.56 kB / 486 MB, free: 10.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 8.476e-06/0.2413, allocations: 0 / 486 MB, free: 10.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.008737/0.25, allocations: 1.984 MB / 487.9 MB, free: 8.891 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.135e-05/0.2502, allocations: 93.61 kB / 488 MB, free: 8.781 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.2514, allocations: 0.5654 MB / 488.6 MB, free: 8.207 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.383e-05/0.2515, allocations: 33.7 kB / 488.6 MB, free: 8.168 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005318/0.2521, allocations: 470.4 kB / 489.1 MB, free: 7.699 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003081/0.2524, allocations: 193.3 kB / 489.3 MB, free: 7.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003969/0.2528, allocations: 142.6 kB / 489.4 MB, free: 7.359 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002511/0.2531, allocations: 378.7 kB / 489.8 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007625/0.2539, allocations: 269.8 kB / 490.1 MB, free: 6.719 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001132/0.255, allocations: 0.5042 MB / 490.6 MB, free: 6.105 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.006381/0.2614, allocations: 1.412 MB / 492 MB, free: 4.594 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.269e-05/0.2615, allocations: 0 / 492 MB, free: 4.594 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00386/0.2654, allocations: 1.099 MB / 493.1 MB, free: 3.457 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.331e-05/0.2654, allocations: 12.48 kB / 493.1 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002453/0.2679, allocations: 0.7567 MB / 493.8 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009331/0.2689, allocations: 166.4 kB / 494 MB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.2702, allocations: 175.7 kB / 494.2 MB, free: 2.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007514/0.2777, allocations: 4.849 MB / 499 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.2789, allocations: 39.97 kB / 499.1 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.2791, allocations: 35.98 kB / 499.1 MB, free: 12.97 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.0009693/0.2801, allocations: 313.5 kB / 499.4 MB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.2805, allocations: 75.09 kB / 499.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002063/0.2825, allocations: 0.6474 MB / 0.4884 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.2826, allocations: 4 kB / 0.4884 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.2826, allocations: 0 / 0.4884 GB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.2826, allocations: 7.922 kB / 0.4884 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004939/0.2876, allocations: 1.522 MB / 0.4899 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.2876, allocations: 0 / 0.4899 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/0.289, allocations: 124 kB / 0.49 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.63e-05/0.289, allocations: 8 kB / 0.49 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.178e-05/0.2891, allocations: 19.98 kB / 0.49 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.226e-05/0.2892, allocations: 4 kB / 0.4901 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2892, allocations: 0 / 0.4901 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00258/0.2918, allocations: 0.9512 MB / 0.491 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005278/0.2923, allocations: 188.2 kB / 0.4912 GB, free: 8.973 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002191/0.2926, allocations: 16 kB / 0.4912 GB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007386/0.2933, allocations: 23.97 kB / 0.4912 GB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.2935, allocations: 36.34 kB / 0.4912 GB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.87e-05/0.2936, allocations: 19.98 kB / 0.4913 GB, free: 8.879 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001047/0.2946, allocations: 411 kB / 0.4916 GB, free: 8.477 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2946, allocations: 0 / 0.4916 GB, free: 8.477 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001766/0.2964, allocations: 232 kB / 0.4919 GB, free: 8.25 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.0005372/0.297, allocations: 135 kB / 0.492 GB, free: 8.109 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00368/0.3007, allocations: 1.152 MB / 0.4931 GB, free: 6.918 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3007, allocations: 0 / 0.4931 GB, free: 6.918 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008092/0.3015, allocations: 270.2 kB / 0.4934 GB, free: 6.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.3032, allocations: 149.1 kB / 0.4935 GB, free: 6.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006816/0.3101, allocations: 2.415 MB / 0.4959 GB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/0.3115, allocations: 1.082 MB / 0.4969 GB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004239/0.3119, allocations: 59.42 kB / 0.497 GB, free: 2.871 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3119, allocations: 0 / 0.497 GB, free: 2.871 MB / 382.1 MB Notification: Performance of Templates: time 0.03999/0.3519, allocations: 15.27 MB / 0.5119 GB, free: 3.609 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Generation.PowerAngle.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.PowerAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches