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.001651/0.001651, allocations: 112.4 kB / 17.06 MB, free: 5.973 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.001937/0.001938, allocations: 200 kB / 18.01 MB, free: 5.055 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.427/1.427, 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.1822/0.1822, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002492/0.002492, allocations: 67.89 kB / 458.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4831/0.4856, allocations: 58.04 MB / 0.5041 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.007945/0.4936, allocations: 7.427 MB / 0.5114 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006247/0.4999, allocations: 4.451 MB / 0.5157 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005665/0.5005, allocations: 13.19 kB / 0.5157 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002822/0.5033, allocations: 1.032 MB / 0.5167 GB, free: 14.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004476/0.5078, allocations: 1.287 MB / 0.518 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001545/0.5094, allocations: 343.5 kB / 0.5183 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.5122, allocations: 1.407 MB / 0.5197 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001396/0.5136, allocations: 0.7998 MB / 0.5205 GB, free: 13.08 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001811/0.5154, allocations: 0.6438 MB / 0.5211 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001855/0.5173, allocations: 0.7381 MB / 0.5218 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.5175, allocations: 78.81 kB / 0.5219 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005052/0.5226, allocations: 1.516 MB / 0.5234 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.5236, allocations: 0.6087 MB / 0.524 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008322/0.5245, allocations: 0.5594 MB / 0.5245 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004283/0.5288, allocations: 1.882 MB / 0.5264 GB, free: 10.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.5288, allocations: 0.6094 kB / 0.5264 GB, free: 10.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.5288, allocations: 4 kB / 0.5264 GB, free: 10.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.418e-05/0.5288, allocations: 0 / 0.5264 GB, free: 10.8 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.002906/0.5317, allocations: 1.339 MB / 0.5277 GB, free: 9.887 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.5318, allocations: 17.7 kB / 0.5277 GB, free: 9.879 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004098/0.5359, allocations: 0.5347 MB / 0.5282 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.537, allocations: 0.5611 MB / 0.5288 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.206e-05/0.5371, allocations: 69.8 kB / 0.5288 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001824/0.5373, allocations: 94.14 kB / 0.5289 GB, free: 9.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002533/0.5398, allocations: 1.509 MB / 0.5304 GB, free: 8.473 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.176e-05/0.5399, allocations: 5.453 kB / 0.5304 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001066/0.54, allocations: 36.42 kB / 0.5304 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001156/0.5401, allocations: 97.88 kB / 0.5305 GB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002539/0.5426, allocations: 1.549 MB / 0.532 GB, free: 7.68 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.007955/0.5506, allocations: 4.88 MB / 0.5368 GB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002009/0.5526, allocations: 1.186 MB / 0.538 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.5537, allocations: 0.7692 MB / 0.5387 GB, free: 3.199 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.744e-05/0.5538, allocations: 24.05 kB / 0.5387 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.5539, allocations: 45.06 kB / 0.5388 GB, free: 3.137 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.917e-06/0.5539, allocations: 4 kB / 0.5388 GB, free: 3.133 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.008047/0.562, allocations: 3.679 MB / 0.5424 GB, free: 1.004 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.562, allocations: 90.14 kB / 0.5425 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000625/0.5627, allocations: 473.8 kB / 0.5429 GB, free: 436 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.756e-05/0.5628, allocations: 41.7 kB / 0.5429 GB, free: 388 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002926/0.5631, allocations: 423.6 kB / 0.5433 GB, free: 15.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003699/0.5634, allocations: 366.6 kB / 0.5437 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003244/0.5638, allocations: 210.8 kB / 0.5439 GB, free: 15.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.5639, allocations: 378.8 kB / 0.5443 GB, free: 15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007685/0.5647, allocations: 0.5335 MB / 0.5448 GB, free: 14.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009236/0.5656, allocations: 0.7578 MB / 0.5455 GB, free: 13.63 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001905/0.5676, allocations: 1.4 MB / 0.5469 GB, free: 12.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.5676, allocations: 7.938 kB / 0.5469 GB, free: 12.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003031/0.5706, allocations: 1.802 MB / 0.5487 GB, free: 10.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.5706, allocations: 8.5 kB / 0.5487 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.5707, allocations: 8 kB / 0.5487 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.5719, allocations: 401.4 kB / 0.5491 GB, free: 9.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008865/0.5728, allocations: 235.6 kB / 0.5493 GB, free: 9.684 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007032/0.5798, allocations: 6.071 MB / 0.5552 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009848/0.5808, allocations: 67.92 kB / 0.5553 GB, free: 3.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.5809, allocations: 44 kB / 0.5553 GB, free: 3.199 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.0007553/0.5817, allocations: 365.4 kB / 0.5557 GB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001636/0.5819, allocations: 71.16 kB / 0.5557 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003046/0.5849, allocations: 1.814 MB / 0.5575 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.5849, allocations: 12 kB / 0.5575 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.585, allocations: 7.938 kB / 0.5575 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.585, allocations: 11.97 kB / 0.5575 GB, free: 0.9023 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.005851/0.5908, allocations: 3.457 MB / 0.5609 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.5909, allocations: 4 kB / 0.5609 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/0.5916, allocations: 187.7 kB / 0.5611 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009414/0.5926, allocations: 357.7 kB / 0.5614 GB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-05/0.5927, allocations: 35.92 kB / 0.5615 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006816/0.5995, allocations: 5.788 MB / 0.5671 GB, free: 6.652 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.5995, allocations: 4 kB / 0.5671 GB, free: 6.648 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/0.6026, allocations: 1.833 MB / 0.5689 GB, free: 4.746 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002968/0.6029, allocations: 156.2 kB / 0.5691 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.6031, allocations: 23.98 kB / 0.5691 GB, free: 4.551 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005418/0.6036, allocations: 55.95 kB / 0.5691 GB, free: 4.496 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001823/0.6038, allocations: 92.75 kB / 0.5692 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-05/0.6039, allocations: 36 kB / 0.5693 GB, free: 4.371 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004028/0.6043, allocations: 323.1 kB / 0.5696 GB, free: 4.055 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6043, allocations: 0 / 0.5696 GB, free: 4.055 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001355/0.6057, allocations: 400 kB / 0.57 GB, free: 3.664 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.0002139/0.6059, allocations: 135 kB / 0.5701 GB, free: 3.523 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002748/0.6086, allocations: 1.756 MB / 0.5718 GB, free: 1.746 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.6087, allocations: 4.562 kB / 0.5718 GB, free: 1.742 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.6102, allocations: 1.084 MB / 0.5729 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008078/0.611, allocations: 122.9 kB / 0.573 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/0.6148, allocations: 2.187 MB / 0.5751 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008872/0.6157, allocations: 1.178 MB / 0.5763 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000558/0.6162, allocations: 233.4 kB / 0.5765 GB, free: 12.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.6165, allocations: 63.42 kB / 0.5765 GB, free: 12.75 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.6165, allocations: 0 / 0.5765 GB, free: 12.75 MB / 446.1 MB Notification: Performance of Templates: time 0.02136/0.6378, allocations: 12.74 MB / 0.589 GB, free: 16 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