Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.p.1.|impedance3.p.2.|impedance3.v.1.|impedance3.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop") translateModel(PowerSystems.Examples.Generic.Network.NetworkLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.p.1.|impedance3.p.2.|impedance3.v.1.|impedance3.v.2.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 108 kB / 16.92 MB, free: 5.742 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.001127/0.001127, allocations: 191.4 kB / 17.85 MB, free: 5.164 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.362/1.362, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.17/0.17, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 63.83 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1118, allocations: 58.07 MB / 456.9 MB, free: 8.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.009776/0.1217, allocations: 7.402 MB / 464.3 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006123/0.1278, allocations: 4.389 MB / 468.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006065/0.1285, allocations: 15.94 kB / 468.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002635/0.1311, allocations: 1.034 MB / 469.7 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002693/0.1338, allocations: 1.191 MB / 470.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000802/0.1346, allocations: 327.1 kB / 471.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001253/0.1359, allocations: 1.41 MB / 472.6 MB, free: 8.223 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008926/0.1368, allocations: 0.6611 MB / 473.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007282/0.1375, allocations: 0.6108 MB / 473.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000744/0.1383, allocations: 0.6775 MB / 474.6 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.59e-05/0.1384, allocations: 67.94 kB / 474.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00201/0.1404, allocations: 1.329 MB / 476 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003817/0.1408, allocations: 486.8 kB / 476.5 MB, free: 4.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003918/0.1412, allocations: 438 kB / 476.9 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001615/0.1428, allocations: 1.449 MB / 478.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1428, allocations: 0 / 478.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1428, allocations: 0 / 478.3 MB, free: 2.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1429, allocations: 0 / 478.3 MB, free: 2.508 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.001448/0.1443, allocations: 1.124 MB / 479.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.1444, allocations: 15.89 kB / 479.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002957/0.1473, allocations: 395.4 kB / 479.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006148/0.148, allocations: 478.6 kB / 480.3 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.148, allocations: 54.36 kB / 480.4 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001184/0.1481, allocations: 72.36 kB / 480.4 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.1497, allocations: 1.172 MB / 481.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.1498, allocations: 7.984 kB / 481.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.874e-05/0.1498, allocations: 27.98 kB / 481.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-05/0.1499, allocations: 73.95 kB / 481.7 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001689/0.1516, allocations: 1.245 MB / 483 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004733/0.1564, allocations: 3.503 MB / 486.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.1579, allocations: 1.076 MB / 487.6 MB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000832/0.1587, allocations: 0.6489 MB / 488.2 MB, free: 8.402 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.64e-05/0.1588, allocations: 24.97 kB / 488.2 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.1589, allocations: 39.56 kB / 488.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of pre-optimization done (n=91): time 2.945e-06/0.1589, allocations: 0 / 488.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of matching and sorting (n=92): time 0.006037/0.1649, allocations: 3.091 MB / 491.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.165, allocations: 86.11 kB / 491.4 MB, free: 5.109 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.1654, allocations: 369.5 kB / 491.8 MB, free: 4.742 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.561e-05/0.1654, allocations: 37.7 kB / 491.8 MB, free: 4.699 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.1657, allocations: 312.2 kB / 492.1 MB, free: 4.387 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002988/0.166, allocations: 315.4 kB / 492.4 MB, free: 4.074 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/0.1662, allocations: 158.5 kB / 492.6 MB, free: 3.914 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.1664, allocations: 370.8 kB / 493 MB, free: 3.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006514/0.1671, allocations: 473.7 kB / 493.4 MB, free: 3.078 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007337/0.1678, allocations: 0.5695 MB / 494 MB, free: 2.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.1693, allocations: 1.109 MB / 495.1 MB, free: 1.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1693, allocations: 4 kB / 495.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002277/0.1716, allocations: 1.473 MB / 496.6 MB, free: 15.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.919e-05/0.1716, allocations: 4 kB / 496.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.1716, allocations: 4 kB / 496.6 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009204/0.1726, allocations: 340.7 kB / 496.9 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006755/0.1732, allocations: 183.7 kB / 497.1 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005148/0.1784, allocations: 4.186 MB / 0.4895 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004995/0.1789, allocations: 47.95 kB / 0.4896 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.04e-05/0.179, allocations: 40.05 kB / 0.4896 GB, free: 10.9 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004167/0.1794, allocations: 294.4 kB / 0.4899 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1795, allocations: 59.33 kB / 0.49 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002495/0.182, allocations: 1.567 MB / 0.4915 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.1821, allocations: 12 kB / 0.4915 GB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.1821, allocations: 4 kB / 0.4915 GB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.1821, allocations: 3.984 kB / 0.4915 GB, free: 8.941 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.004766/0.1869, allocations: 3.036 MB / 0.4945 GB, free: 5.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.1869, allocations: 4 kB / 0.4945 GB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005876/0.1875, allocations: 167.7 kB / 0.4946 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007542/0.1882, allocations: 292.9 kB / 0.4949 GB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.89e-05/0.1883, allocations: 24 kB / 0.4949 GB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004672/0.193, allocations: 3.908 MB / 0.4988 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.193, allocations: 11.98 kB / 0.4988 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2163/0.4094, allocations: 1.591 MB / 0.5003 GB, free: 55.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003313/0.4097, allocations: 144.9 kB / 0.5005 GB, free: 55.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001886/0.4099, allocations: 23.48 kB / 0.5005 GB, free: 55.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004965/0.4104, allocations: 42.88 kB / 0.5005 GB, free: 55.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002284/0.4107, allocations: 83.02 kB / 0.5006 GB, free: 55.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.754e-05/0.4108, allocations: 38.44 kB / 0.5006 GB, free: 55.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003528/0.4111, allocations: 256.6 kB / 0.5009 GB, free: 55.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4111, allocations: 1.25 kB / 0.5009 GB, free: 55.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001023/0.4122, allocations: 308 kB / 0.5012 GB, free: 55.59 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 (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.000153/0.4123, allocations: 124.1 kB / 0.5013 GB, free: 55.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002771/0.4151, allocations: 1.674 MB / 0.5029 GB, free: 55.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4151, allocations: 4.531 kB / 0.5029 GB, free: 55.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.4163, allocations: 0.8358 MB / 0.5038 GB, free: 55.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006419/0.417, allocations: 102.9 kB / 0.5039 GB, free: 55.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.4196, allocations: 1.798 MB / 0.5056 GB, free: 54.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006418/0.4203, allocations: 1.073 MB / 0.5067 GB, free: 53.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004493/0.4207, allocations: 179.1 kB / 0.5068 GB, free: 53.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.4209, allocations: 65.06 kB / 0.5069 GB, free: 53.51 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4209, allocations: 0 / 0.5069 GB, free: 53.51 MB / 382.1 MB Notification: Performance of Templates: time 0.01645/0.4374, allocations: 10.14 MB / 0.5168 GB, free: 51.34 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches