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.001627/0.001627, allocations: 103 kB / 16.62 MB, free: 6.809 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.001803/0.001803, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.44/1.44, allocations: 222.9 MB / 241.2 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.1768/0.1768, allocations: 38.04 MB / 329.4 MB, free: 9.066 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002531/0.002532, allocations: 64.23 kB / 398.3 MB, free: 34.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1266, allocations: 58.06 MB / 456.4 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.01085/0.1375, allocations: 7.634 MB / 464 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006552/0.1441, allocations: 4.475 MB / 468.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007137/0.1448, allocations: 19.88 kB / 468.5 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002561/0.1474, allocations: 0.9839 MB / 469.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003521/0.151, allocations: 1.2 MB / 470.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.1521, allocations: 307.3 kB / 471 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002165/0.1543, allocations: 1.406 MB / 472.4 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001636/0.1559, allocations: 0.8906 MB / 473.3 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001637/0.1576, allocations: 0.6304 MB / 473.9 MB, free: 6.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001549/0.1592, allocations: 0.8256 MB / 474.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002594/0.1594, allocations: 80 kB / 474.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003173/0.1626, allocations: 1.532 MB / 476.3 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009378/0.1636, allocations: 0.6041 MB / 476.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00109/0.1647, allocations: 0.5598 MB / 477.5 MB, free: 3.238 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004252/0.1689, allocations: 1.975 MB / 479.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.169, allocations: 4 kB / 479.5 MB, free: 1.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.169, allocations: 3.984 kB / 479.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.774e-05/0.169, allocations: 0 / 479.5 MB, free: 1.25 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.002601/0.1716, allocations: 1.33 MB / 480.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1717, allocations: 11.89 kB / 480.8 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003747/0.1754, allocations: 0.538 MB / 481.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007709/0.1762, allocations: 0.5519 MB / 481.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.307e-05/0.1763, allocations: 70.36 kB / 482 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.1765, allocations: 88.27 kB / 482.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002195/0.1787, allocations: 1.512 MB / 483.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.819e-05/0.1787, allocations: 3.938 kB / 483.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/0.1788, allocations: 35.98 kB / 483.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001138/0.1789, allocations: 102 kB / 483.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002197/0.1811, allocations: 1.542 MB / 485.3 MB, free: 11.33 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.006932/0.1881, allocations: 4.919 MB / 490.2 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/0.1898, allocations: 1.181 MB / 491.4 MB, free: 4.984 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009932/0.1908, allocations: 0.7627 MB / 492.1 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.369e-05/0.1909, allocations: 25.05 kB / 492.1 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.1909, allocations: 47.5 kB / 492.2 MB, free: 4.145 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 2.535e-06/0.191, allocations: 0 / 492.2 MB, free: 4.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=108): time 0.00777/0.1987, allocations: 3.673 MB / 495.9 MB, free: 432 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.752e-05/0.1988, allocations: 94.05 kB / 496 MB, free: 320 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006611/0.1995, allocations: 477.7 kB / 496.4 MB, free: 15.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.518e-05/0.1996, allocations: 41.7 kB / 496.5 MB, free: 15.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003064/0.1999, allocations: 423.4 kB / 496.9 MB, free: 15.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003989/0.2003, allocations: 378.6 kB / 497.2 MB, free: 15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003466/0.2007, allocations: 202.8 kB / 497.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00023/0.2009, allocations: 378.8 kB / 497.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008543/0.2018, allocations: 0.5374 MB / 498.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.2029, allocations: 0.754 MB / 499.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002042/0.2049, allocations: 1.404 MB / 0.4888 GB, free: 11.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.2049, allocations: 7.938 kB / 0.4888 GB, free: 11.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003141/0.2081, allocations: 1.802 MB / 0.4905 GB, free: 9.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.2081, allocations: 8 kB / 0.4905 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.2082, allocations: 4.5 kB / 0.4906 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.2093, allocations: 409.4 kB / 0.4909 GB, free: 9.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000907/0.2102, allocations: 235.6 kB / 0.4912 GB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007017/0.2172, allocations: 6.067 MB / 0.4971 GB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007604/0.218, allocations: 71.92 kB / 0.4972 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.703e-05/0.2181, allocations: 40 kB / 0.4972 GB, free: 2.594 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.0005906/0.2187, allocations: 365.4 kB / 0.4975 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.2189, allocations: 71.16 kB / 0.4976 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003009/0.2219, allocations: 1.807 MB / 0.4994 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.2219, allocations: 19.94 kB / 0.4994 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.2219, allocations: 11.94 kB / 0.4994 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.2219, allocations: 7.969 kB / 0.4994 GB, free: 308 kB / 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.005598/0.2275, allocations: 3.454 MB / 0.5028 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.2276, allocations: 8 kB / 0.5028 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007371/0.2283, allocations: 195.7 kB / 0.503 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009341/0.2292, allocations: 361.7 kB / 0.5033 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.528e-05/0.2293, allocations: 31.92 kB / 0.5034 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006551/0.2359, allocations: 5.777 MB / 0.509 GB, free: 6.055 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.2359, allocations: 7.938 kB / 0.509 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002968/0.2389, allocations: 1.831 MB / 0.5108 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.2391, allocations: 160.1 kB / 0.511 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.2392, allocations: 27.98 kB / 0.511 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005215/0.2398, allocations: 47.95 kB / 0.511 GB, free: 3.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.2399, allocations: 96.75 kB / 0.5111 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.387e-05/0.24, allocations: 36 kB / 0.5111 GB, free: 3.766 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003713/0.2404, allocations: 327.1 kB / 0.5115 GB, free: 3.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2404, allocations: 0 / 0.5115 GB, free: 3.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001155/0.2416, allocations: 392 kB / 0.5118 GB, free: 3.066 MB / 398.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.0002118/0.2418, allocations: 143 kB / 0.512 GB, free: 2.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003334/0.2451, allocations: 2.126 MB / 0.514 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.2451, allocations: 0 / 0.514 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1909/0.436, allocations: 1.074 MB / 0.5151 GB, free: 70.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/0.4376, allocations: 124.9 kB / 0.5152 GB, free: 70.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005533/0.4431, allocations: 2.663 MB / 0.5178 GB, free: 69.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001326/0.4445, allocations: 1.177 MB / 0.519 GB, free: 68.74 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008249/0.4453, allocations: 237.2 kB / 0.5192 GB, free: 68.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002965/0.4456, allocations: 64.14 kB / 0.5193 GB, free: 68.73 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4456, allocations: 1.188 kB / 0.5193 GB, free: 68.73 MB / 398.1 MB Notification: Performance of Templates: time 0.02626/0.4719, allocations: 12.48 MB / 0.5314 GB, free: 66.08 MB / 398.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