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.001145/0.001145, allocations: 109.1 kB / 17.06 MB, free: 6.023 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.001131/0.001131, allocations: 191 kB / 18 MB, free: 5.105 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.476/1.476, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1842/0.1842, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002514/0.002514, allocations: 59.91 kB / 458.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4248/0.4273, allocations: 58.05 MB / 0.5041 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.007987/0.4353, allocations: 7.424 MB / 0.5114 GB, free: 2.566 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005771/0.4411, allocations: 4.442 MB / 0.5157 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007149/0.4419, allocations: 13.06 kB / 0.5157 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003146/0.445, allocations: 1.035 MB / 0.5167 GB, free: 14.83 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005031/0.4501, allocations: 1.272 MB / 0.518 GB, free: 14.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.4513, allocations: 348.5 kB / 0.5183 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002306/0.4536, allocations: 1.396 MB / 0.5197 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001331/0.455, allocations: 0.8065 MB / 0.5205 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001401/0.4564, allocations: 0.6476 MB / 0.5211 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001404/0.4578, allocations: 0.7387 MB / 0.5218 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002693/0.4581, allocations: 80.03 kB / 0.5219 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003366/0.4615, allocations: 1.527 MB / 0.5234 GB, free: 11.94 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009097/0.4624, allocations: 0.6015 MB / 0.524 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.4637, allocations: 0.5592 MB / 0.5245 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004664/0.4684, allocations: 1.889 MB / 0.5264 GB, free: 10.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.4684, allocations: 1.062 kB / 0.5264 GB, free: 10.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4685, allocations: 0 / 0.5264 GB, free: 10.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.765e-05/0.4685, allocations: 0 / 0.5264 GB, free: 10.82 MB / 398.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.003312/0.4719, allocations: 1.329 MB / 0.5277 GB, free: 9.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.4719, allocations: 9.594 kB / 0.5277 GB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004056/0.476, allocations: 0.5415 MB / 0.5282 GB, free: 9.832 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/0.4773, allocations: 0.5615 MB / 0.5287 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.749e-05/0.4774, allocations: 74.36 kB / 0.5288 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.4775, allocations: 86.03 kB / 0.5289 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00238/0.4799, allocations: 1.507 MB / 0.5304 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/0.48, allocations: 1.812 kB / 0.5304 GB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.4801, allocations: 35.11 kB / 0.5304 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/0.4802, allocations: 107.5 kB / 0.5305 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002256/0.4825, allocations: 1.546 MB / 0.532 GB, free: 7.711 MB / 398.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.007736/0.4902, allocations: 4.875 MB / 0.5368 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.492, allocations: 1.195 MB / 0.5379 GB, free: 3.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009528/0.4929, allocations: 0.7694 MB / 0.5387 GB, free: 3.227 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.874e-05/0.493, allocations: 16.06 kB / 0.5387 GB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.493, allocations: 43.69 kB / 0.5387 GB, free: 3.172 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 2.384e-06/0.493, allocations: 0 / 0.5387 GB, free: 3.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.007195/0.5002, allocations: 3.681 MB / 0.5423 GB, free: 1.031 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.5003, allocations: 90.11 kB / 0.5424 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.5008, allocations: 473.8 kB / 0.5429 GB, free: 464 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.229e-05/0.5009, allocations: 41.7 kB / 0.5429 GB, free: 416 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002425/0.5011, allocations: 423.4 kB / 0.5433 GB, free: 15.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003582/0.5015, allocations: 378.6 kB / 0.5437 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003601/0.5019, allocations: 194.9 kB / 0.5439 GB, free: 15.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.502, allocations: 382.8 kB / 0.5442 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007288/0.5027, allocations: 0.5413 MB / 0.5448 GB, free: 14.49 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008832/0.5036, allocations: 0.75 MB / 0.5455 GB, free: 13.66 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001836/0.5055, allocations: 1.4 MB / 0.5469 GB, free: 12.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.5055, allocations: 3.938 kB / 0.5469 GB, free: 12.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002866/0.5084, allocations: 1.806 MB / 0.5486 GB, free: 10.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.5084, allocations: 11.94 kB / 0.5486 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.5084, allocations: 8 kB / 0.5486 GB, free: 10.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/0.5095, allocations: 409.8 kB / 0.549 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008619/0.5103, allocations: 231.6 kB / 0.5493 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006439/0.5168, allocations: 6.065 MB / 0.5552 GB, free: 3.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009035/0.5177, allocations: 71.98 kB / 0.5553 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.992e-05/0.5178, allocations: 43.98 kB / 0.5553 GB, free: 3.227 MB / 414.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.000591/0.5184, allocations: 365.3 kB / 0.5556 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.5186, allocations: 71.16 kB / 0.5557 GB, free: 2.789 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002888/0.5215, allocations: 1.814 MB / 0.5575 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.5215, allocations: 12 kB / 0.5575 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.5215, allocations: 7.938 kB / 0.5575 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.5215, allocations: 7.922 kB / 0.5575 GB, free: 0.9336 MB / 414.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.005602/0.5271, allocations: 3.469 MB / 0.5609 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.954e-06/0.5271, allocations: 4 kB / 0.5609 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000714/0.5279, allocations: 187.8 kB / 0.5611 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009064/0.5288, allocations: 349.6 kB / 0.5614 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.739e-05/0.5289, allocations: 27.94 kB / 0.5614 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006257/0.5351, allocations: 5.789 MB / 0.5671 GB, free: 6.684 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5352, allocations: 12.05 kB / 0.5671 GB, free: 6.672 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002877/0.538, allocations: 1.821 MB / 0.5689 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002878/0.5383, allocations: 160.1 kB / 0.569 GB, free: 4.605 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.5385, allocations: 24 kB / 0.5691 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005102/0.539, allocations: 47.95 kB / 0.5691 GB, free: 4.535 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.5392, allocations: 100.8 kB / 0.5692 GB, free: 4.438 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.168e-05/0.5393, allocations: 31.98 kB / 0.5692 GB, free: 4.406 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004292/0.5397, allocations: 331.1 kB / 0.5695 GB, free: 4.082 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5397, allocations: 0 / 0.5695 GB, free: 4.082 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00132/0.5411, allocations: 392 kB / 0.5699 GB, free: 3.699 MB / 430.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.0002113/0.5413, allocations: 138.9 kB / 0.5701 GB, free: 3.555 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002717/0.544, allocations: 1.76 MB / 0.5718 GB, free: 1.773 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.544, allocations: 0 / 0.5718 GB, free: 1.773 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.5457, allocations: 1.081 MB / 0.5728 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008134/0.5465, allocations: 125.8 kB / 0.5729 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00361/0.5501, allocations: 2.209 MB / 0.5751 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009227/0.5511, allocations: 1.167 MB / 0.5762 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005772/0.5517, allocations: 237.4 kB / 0.5765 GB, free: 12.83 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002365/0.5519, allocations: 75.41 kB / 0.5765 GB, free: 12.76 MB / 446.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5519, allocations: 0 / 0.5765 GB, free: 12.76 MB / 446.1 MB Notification: Performance of Templates: time 0.02426/0.5762, allocations: 12.73 MB / 0.589 GB, free: 36 kB / 446.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