Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.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.Generic.Network.NetworkLoop_dq0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.i.3.|impedance3.p.1.|impedance3.p.2.|impedance3.p.3.|impedance3.v.1.|impedance3.v.2.|impedance3.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0") translateModel(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.i.3.|impedance3.p.1.|impedance3.p.2.|impedance3.p.3.|impedance3.v.1.|impedance3.v.2.|impedance3.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001439/0.001439, allocations: 108.6 kB / 17.69 MB, free: 5.445 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.001641/0.001641, allocations: 191 kB / 18.63 MB, free: 4.512 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.346/1.346, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.174/0.174, allocations: 38.04 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 61.53 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1116, allocations: 58.06 MB / 458.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.008287/0.1199, allocations: 7.421 MB / 465.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005791/0.1257, allocations: 4.455 MB / 470.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003164/0.1261, allocations: 12 kB / 470.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002295/0.1284, allocations: 1.033 MB / 471.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002519/0.1309, allocations: 1.273 MB / 472.5 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007748/0.1317, allocations: 343 kB / 472.9 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001305/0.133, allocations: 1.399 MB / 474.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009282/0.134, allocations: 0.8007 MB / 475.1 MB, free: 6.539 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007077/0.1347, allocations: 0.642 MB / 475.7 MB, free: 5.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007799/0.1355, allocations: 0.7398 MB / 476.4 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.948e-05/0.1356, allocations: 80 kB / 476.5 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002181/0.1378, allocations: 1.52 MB / 478 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004724/0.1383, allocations: 0.6118 MB / 478.6 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005229/0.1388, allocations: 0.5561 MB / 479.2 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001971/0.1408, allocations: 1.882 MB / 481.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1408, allocations: 0 / 481.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1408, allocations: 0 / 481.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.1408, allocations: 0 / 481.1 MB, free: 0.4922 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.001776/0.1426, allocations: 1.334 MB / 482.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.1426, allocations: 15.89 kB / 482.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00363/0.1463, allocations: 0.5341 MB / 483 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009906/0.1473, allocations: 0.5598 MB / 483.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.363e-05/0.1473, allocations: 78.36 kB / 483.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.1475, allocations: 88.34 kB / 483.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/0.1496, allocations: 1.501 MB / 485.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.1497, allocations: 7.906 kB / 485.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.235e-05/0.1498, allocations: 35.98 kB / 485.2 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.1499, allocations: 106 kB / 485.3 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002152/0.152, allocations: 1.546 MB / 486.9 MB, free: 10.55 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.007193/0.1592, allocations: 4.88 MB / 491.8 MB, free: 5.457 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.161, allocations: 1.181 MB / 492.9 MB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009646/0.162, allocations: 0.7646 MB / 493.7 MB, free: 3.488 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.035e-05/0.1621, allocations: 25.05 kB / 493.7 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.1621, allocations: 43.56 kB / 493.8 MB, free: 3.414 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 4.609e-06/0.1621, allocations: 0 / 493.8 MB, free: 3.414 MB / 366.1 MB Notification: Performance of matching and sorting (n=108): time 0.007219/0.1694, allocations: 3.685 MB / 497.5 MB, free: 15.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/0.1694, allocations: 90.11 kB / 497.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005125/0.1699, allocations: 469.8 kB / 498 MB, free: 15.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.583e-05/0.17, allocations: 41.7 kB / 498 MB, free: 15.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.1703, allocations: 427.4 kB / 498.5 MB, free: 14.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003253/0.1706, allocations: 382.6 kB / 498.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003037/0.1709, allocations: 198.8 kB / 499 MB, free: 14.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1711, allocations: 378.8 kB / 499.4 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008083/0.1719, allocations: 0.5374 MB / 499.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009399/0.1729, allocations: 0.75 MB / 0.489 GB, free: 12.31 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001873/0.1748, allocations: 1.404 MB / 0.4903 GB, free: 10.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.1748, allocations: 7.938 kB / 0.4903 GB, free: 10.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002831/0.1776, allocations: 1.798 MB / 0.4921 GB, free: 9.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/0.1777, allocations: 11.94 kB / 0.4921 GB, free: 8.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.1777, allocations: 7.984 kB / 0.4921 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/0.1788, allocations: 407.5 kB / 0.4925 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008324/0.1796, allocations: 231.6 kB / 0.4927 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006696/0.1863, allocations: 6.066 MB / 0.4986 GB, free: 1.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007156/0.1871, allocations: 71.98 kB / 0.4987 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.616e-05/0.1872, allocations: 44 kB / 0.4987 GB, free: 1.867 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (105): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,26,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000555/0.1877, allocations: 369.3 kB / 0.4991 GB, free: 1.496 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/0.1879, allocations: 71.16 kB / 0.4992 GB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2037/0.3915, allocations: 1.798 MB / 0.5009 GB, free: 55.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-05/0.3916, allocations: 12.94 kB / 0.5009 GB, free: 55.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.937e-05/0.3917, allocations: 6.688 kB / 0.5009 GB, free: 55.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.755e-05/0.3917, allocations: 11.86 kB / 0.501 GB, free: 55.32 MB / 382.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 postOpt removeSimpleEquations (simulation): time 0.007198/0.3989, allocations: 3.461 MB / 0.5043 GB, free: 54.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.399, allocations: 11.08 kB / 0.5043 GB, free: 54.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007462/0.3997, allocations: 185.9 kB / 0.5045 GB, free: 54.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000922/0.4006, allocations: 352.6 kB / 0.5049 GB, free: 54.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.105e-05/0.4007, allocations: 30.53 kB / 0.5049 GB, free: 54.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006837/0.4076, allocations: 5.782 MB / 0.5105 GB, free: 50.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.4076, allocations: 6 kB / 0.5105 GB, free: 50.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.4108, allocations: 1.826 MB / 0.5123 GB, free: 49.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002284/0.4111, allocations: 161.7 kB / 0.5125 GB, free: 49.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.4112, allocations: 22.69 kB / 0.5125 GB, free: 49.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005133/0.4117, allocations: 51.55 kB / 0.5125 GB, free: 49.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.4119, allocations: 94.53 kB / 0.5126 GB, free: 49.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.785e-05/0.412, allocations: 37.23 kB / 0.5127 GB, free: 49.38 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004239/0.4125, allocations: 324.5 kB / 0.513 GB, free: 49.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4125, allocations: 0.5312 kB / 0.513 GB, free: 49.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001369/0.4138, allocations: 401.6 kB / 0.5134 GB, free: 49.19 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 simulation (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,7,100.0%), (2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000164/0.414, allocations: 128.2 kB / 0.5135 GB, free: 49.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002499/0.4165, allocations: 1.75 MB / 0.5152 GB, free: 48.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.4165, allocations: 1.094 kB / 0.5152 GB, free: 48.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/0.418, allocations: 1.084 MB / 0.5163 GB, free: 47.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007313/0.4187, allocations: 126.4 kB / 0.5164 GB, free: 47.74 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003179/0.4219, allocations: 2.206 MB / 0.5185 GB, free: 46.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006687/0.4226, allocations: 1.176 MB / 0.5197 GB, free: 45.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004995/0.4231, allocations: 234.3 kB / 0.5199 GB, free: 45.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.4233, allocations: 67.98 kB / 0.52 GB, free: 45.97 MB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4233, allocations: 1.188 kB / 0.52 GB, free: 45.97 MB / 382.1 MB Notification: Performance of Templates: time 0.01599/0.4393, allocations: 12.44 MB / 0.5321 GB, free: 38.89 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches