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.001454/0.001454, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001629/0.001629, allocations: 192 kB / 18.62 MB, free: 4.41 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.397/1.397, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1765/0.1765, allocations: 38.04 MB / 330.5 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.42 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09835/0.09959, allocations: 58.06 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008513/0.1081, allocations: 7.446 MB / 465.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004076/0.1122, allocations: 2.995 MB / 468.8 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002635/0.1125, allocations: 23.88 kB / 468.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001818/0.1143, allocations: 0.7798 MB / 469.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001249/0.1156, allocations: 0.6882 MB / 470.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007613/0.1164, allocations: 371.2 kB / 470.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.1178, allocations: 1.324 MB / 471.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000856/0.1186, allocations: 0.7486 MB / 472.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000659/0.1193, allocations: 0.5642 MB / 473.2 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007754/0.1201, allocations: 0.619 MB / 473.9 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.1202, allocations: 76 kB / 473.9 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007544/0.121, allocations: 475.2 kB / 474.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003798/0.1214, allocations: 462.8 kB / 474.9 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004809/0.1219, allocations: 0.5015 MB / 475.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001316/0.1232, allocations: 1.421 MB / 476.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1232, allocations: 4 kB / 476.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1232, allocations: 0 / 476.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.1232, allocations: 0 / 476.8 MB, free: 4.789 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.002123/0.1254, allocations: 1.266 MB / 478 MB, free: 3.473 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1254, allocations: 15.89 kB / 478.1 MB, free: 3.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/0.1266, allocations: 199.6 kB / 478.3 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001472/0.1281, allocations: 0.7177 MB / 479 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.993e-05/0.1282, allocations: 62.36 kB / 479 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002267/0.1284, allocations: 95.91 kB / 479.1 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.13, allocations: 1.123 MB / 480.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.13, allocations: 0 / 480.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.185e-05/0.1301, allocations: 35.98 kB / 480.3 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001597/0.1303, allocations: 69.97 kB / 480.4 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.1318, allocations: 0.8899 MB / 481.2 MB, free: 192 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.005119/0.1369, allocations: 4.054 MB / 485.3 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005755/0.1375, allocations: 422 kB / 485.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003523/0.1379, allocations: 261.7 kB / 486 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-05/0.1379, allocations: 11.94 kB / 486 MB, free: 11.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.138, allocations: 42.48 kB / 486 MB, free: 11.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 3.957e-06/0.138, allocations: 0 / 486 MB, free: 11.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.003966/0.142, allocations: 1.984 MB / 488 MB, free: 9.102 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.142, allocations: 85.55 kB / 488.1 MB, free: 9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006022/0.1426, allocations: 0.5693 MB / 488.7 MB, free: 8.422 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.1427, allocations: 33.7 kB / 488.7 MB, free: 8.383 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002849/0.143, allocations: 474.5 kB / 489.2 MB, free: 7.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/0.1431, allocations: 185.3 kB / 489.3 MB, free: 7.727 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.1433, allocations: 154.5 kB / 489.5 MB, free: 7.566 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1435, allocations: 378.7 kB / 489.9 MB, free: 7.188 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003983/0.1439, allocations: 269.8 kB / 490.1 MB, free: 6.926 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005307/0.1444, allocations: 0.5004 MB / 490.6 MB, free: 6.32 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.002957/0.1474, allocations: 1.404 MB / 492 MB, free: 4.816 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.1474, allocations: 0 / 492 MB, free: 4.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00177/0.1492, allocations: 1.103 MB / 493.1 MB, free: 3.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1492, allocations: 8.5 kB / 493.1 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00118/0.1504, allocations: 0.756 MB / 493.9 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005014/0.1509, allocations: 162.4 kB / 494 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006105/0.1515, allocations: 183.6 kB / 494.2 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003821/0.1554, allocations: 4.849 MB / 499.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.1559, allocations: 39.97 kB / 499.1 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.183e-05/0.1559, allocations: 31.98 kB / 499.1 MB, free: 13.19 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.0004569/0.1564, allocations: 331.5 kB / 499.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.1565, allocations: 71.09 kB / 499.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.1575, allocations: 0.6395 MB / 0.4885 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1576, allocations: 4 kB / 0.4885 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1576, allocations: 0 / 0.4885 GB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.1576, allocations: 7.922 kB / 0.4885 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002364/0.16, allocations: 1.514 MB / 0.4899 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.16, allocations: 0 / 0.4899 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006111/0.1606, allocations: 128 kB / 0.4901 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1606, allocations: 4 kB / 0.4901 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/0.1607, allocations: 15.98 kB / 0.4901 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.632e-06/0.1607, allocations: 8 kB / 0.4901 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1607, allocations: 3.938 kB / 0.4901 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.1618, allocations: 0.9523 MB / 0.491 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002953/0.1622, allocations: 180.4 kB / 0.4912 GB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.083e-05/0.1623, allocations: 23.84 kB / 0.4912 GB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003264/0.1626, allocations: 19.98 kB / 0.4912 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.588e-05/0.1627, allocations: 40.33 kB / 0.4913 GB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.1627, allocations: 19.98 kB / 0.4913 GB, free: 9.098 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004576/0.1632, allocations: 407 kB / 0.4917 GB, free: 8.699 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1632, allocations: 0 / 0.4917 GB, free: 8.699 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008418/0.164, allocations: 232 kB / 0.4919 GB, free: 8.473 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.0003569/0.1644, allocations: 139.1 kB / 0.492 GB, free: 8.328 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001499/0.1659, allocations: 1.027 MB / 0.493 GB, free: 7.266 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1659, allocations: 0 / 0.493 GB, free: 7.266 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003579/0.1663, allocations: 266.3 kB / 0.4933 GB, free: 7.004 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007415/0.167, allocations: 161.7 kB / 0.4935 GB, free: 6.848 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002791/0.1698, allocations: 1.925 MB / 0.4953 GB, free: 4.867 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006215/0.1705, allocations: 1.078 MB / 0.4964 GB, free: 3.762 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004564/0.1709, allocations: 197.8 kB / 0.4966 GB, free: 3.566 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.1711, allocations: 67.34 kB / 0.4966 GB, free: 3.504 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1711, allocations: 0 / 0.4966 GB, free: 3.504 MB / 382.1 MB Notification: Performance of Templates: time 0.01453/0.1857, allocations: 8.659 MB / 0.5051 GB, free: 10.9 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 -s gbode -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