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.001857/0.001857, allocations: 109.5 kB / 16.51 MB, free: 6.707 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.001959/0.00196, allocations: 190.5 kB / 17.43 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.453/1.453, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1714/0.1714, allocations: 38.04 MB / 329.3 MB, free: 9.066 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 60.22 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.12, allocations: 58.06 MB / 456.2 MB, free: 8.539 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.009433/0.1295, allocations: 7.618 MB / 463.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00593/0.1354, allocations: 4.561 MB / 468.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003923/0.1358, allocations: 15.94 kB / 468.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002271/0.1381, allocations: 0.9852 MB / 469.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002778/0.1409, allocations: 1.215 MB / 470.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009165/0.1418, allocations: 311.3 kB / 470.9 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002514/0.1444, allocations: 2.577 MB / 473.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.1457, allocations: 0.8099 MB / 474.2 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001192/0.1469, allocations: 0.5328 MB / 474.8 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001188/0.1481, allocations: 0.8101 MB / 475.6 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.1482, allocations: 60 kB / 475.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003665/0.1519, allocations: 1.804 MB / 477.5 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006026/0.1525, allocations: 0.5962 MB / 478 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005633/0.1531, allocations: 0.5365 MB / 478.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002545/0.1556, allocations: 1.951 MB / 480.5 MB, free: 72 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.1557, allocations: 4 kB / 480.5 MB, free: 68 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1557, allocations: 0 / 480.5 MB, free: 68 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.1557, allocations: 0 / 480.5 MB, free: 68 kB / 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.002499/0.1582, allocations: 1.338 MB / 481.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.1583, allocations: 12.03 kB / 481.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00394/0.1622, allocations: 0.5419 MB / 482.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008483/0.1631, allocations: 0.552 MB / 483 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/0.1632, allocations: 66.36 kB / 483 MB, free: 13.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.1633, allocations: 88.27 kB / 483.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002326/0.1656, allocations: 1.509 MB / 484.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.1657, allocations: 0 / 484.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001171/0.1658, allocations: 39.98 kB / 484.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.166, allocations: 102 kB / 484.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002403/0.1684, allocations: 1.546 MB / 486.3 MB, free: 10.14 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.007266/0.1756, allocations: 4.915 MB / 491.2 MB, free: 5.008 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.1774, allocations: 1.185 MB / 492.4 MB, free: 3.793 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001044/0.1785, allocations: 0.7701 MB / 493.2 MB, free: 3.023 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.445e-05/0.1786, allocations: 21.05 kB / 493.2 MB, free: 3.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.1786, allocations: 43.56 kB / 493.3 MB, free: 2.953 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 3.326e-06/0.1786, allocations: 0 / 493.3 MB, free: 2.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=108): time 0.007628/0.1863, allocations: 3.681 MB / 496.9 MB, free: 15.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.1864, allocations: 90.11 kB / 497 MB, free: 15.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006068/0.187, allocations: 469.7 kB / 497.5 MB, free: 14.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/0.1871, allocations: 49.73 kB / 497.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003105/0.1874, allocations: 427.4 kB / 498 MB, free: 14.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000347/0.1877, allocations: 370.6 kB / 498.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002903/0.188, allocations: 202.8 kB / 498.5 MB, free: 13.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1882, allocations: 382.8 kB / 498.9 MB, free: 13.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000797/0.189, allocations: 0.5374 MB / 499.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009866/0.19, allocations: 0.75 MB / 0.4885 GB, free: 11.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001942/0.1919, allocations: 1.4 MB / 0.4898 GB, free: 10.37 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.192, allocations: 7.938 kB / 0.4898 GB, free: 10.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003042/0.195, allocations: 1.802 MB / 0.4916 GB, free: 8.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.52e-05/0.195, allocations: 8 kB / 0.4916 GB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.1951, allocations: 4 kB / 0.4916 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.1962, allocations: 405.8 kB / 0.492 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008746/0.1971, allocations: 239.6 kB / 0.4922 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006845/0.2039, allocations: 5.598 MB / 0.4977 GB, free: 2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008569/0.2048, allocations: 75.83 kB / 0.4978 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-05/0.2049, allocations: 44.05 kB / 0.4978 GB, free: 1.883 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.0006105/0.2055, allocations: 361.4 kB / 0.4981 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.2057, allocations: 71.16 kB / 0.4982 GB, free: 1.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2684/0.4741, allocations: 1.804 MB / 0.5 GB, free: 55.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.618e-05/0.4742, allocations: 13.73 kB / 0.5 GB, free: 55.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/0.4742, allocations: 5.781 kB / 0.5 GB, free: 55.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.183e-05/0.4742, allocations: 11.44 kB / 0.5 GB, free: 55.55 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.006575/0.4808, allocations: 3.465 MB / 0.5034 GB, free: 54.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.4808, allocations: 7.625 kB / 0.5034 GB, free: 54.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000742/0.4816, allocations: 185.6 kB / 0.5036 GB, free: 54.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009973/0.4826, allocations: 353.8 kB / 0.5039 GB, free: 54.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.002e-05/0.4827, allocations: 24.64 kB / 0.5039 GB, free: 54.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006685/0.4894, allocations: 5.335 MB / 0.5091 GB, free: 50.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/0.4894, allocations: 9.188 kB / 0.5091 GB, free: 50.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003239/0.4927, allocations: 1.829 MB / 0.5109 GB, free: 50.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002923/0.493, allocations: 154 kB / 0.5111 GB, free: 50 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.4931, allocations: 26.66 kB / 0.5111 GB, free: 49.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005511/0.4937, allocations: 55.88 kB / 0.5112 GB, free: 49.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000254/0.4939, allocations: 92.53 kB / 0.5112 GB, free: 49.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-05/0.494, allocations: 36.2 kB / 0.5113 GB, free: 49.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004838/0.4945, allocations: 324.9 kB / 0.5116 GB, free: 49.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4945, allocations: 3.188 kB / 0.5116 GB, free: 49.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001897/0.4964, allocations: 397.5 kB / 0.512 GB, free: 49.76 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.0002045/0.4966, allocations: 130.4 kB / 0.5121 GB, free: 49.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003352/0.5, allocations: 1.747 MB / 0.5138 GB, free: 48.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.5, allocations: 0 / 0.5138 GB, free: 48.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001729/0.5018, allocations: 1.075 MB / 0.5149 GB, free: 48.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.5028, allocations: 126.4 kB / 0.515 GB, free: 48.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004425/0.5072, allocations: 2.66 MB / 0.5176 GB, free: 46.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001224/0.5085, allocations: 1.176 MB / 0.5187 GB, free: 46.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006616/0.5091, allocations: 239.2 kB / 0.5189 GB, free: 46.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.5094, allocations: 65.56 kB / 0.519 GB, free: 46.05 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5094, allocations: 0 / 0.519 GB, free: 46.05 MB / 382.1 MB Notification: Performance of Templates: time 0.01714/0.5265, allocations: 11.78 MB / 0.5305 GB, free: 39.84 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.mat","/var/lib/jenkins/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