Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1480,variableFilter="Time|meter.i|meter.p|meter.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 97.03 kB / 17.06 MB, free: 6.121 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.001296/0.001296, allocations: 194.9 kB / 17.99 MB, free: 5.199 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1719/0.1719, allocations: 38.05 MB / 329.9 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 63.91 kB / 458.1 MB, free: 6.887 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5221/0.5238, allocations: 58.06 MB / 0.5041 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005897/0.5297, allocations: 4.34 MB / 0.5083 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.5316, allocations: 0.9329 MB / 0.5093 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002215/0.5318, allocations: 11.81 kB / 0.5093 GB, free: 4.117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.5321, allocations: 63.08 kB / 0.5093 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007345/0.5329, allocations: 241.9 kB / 0.5096 GB, free: 3.945 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.5333, allocations: 98.03 kB / 0.5097 GB, free: 3.898 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000756/0.534, allocations: 0.4888 MB / 0.5101 GB, free: 3.691 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003389/0.5344, allocations: 157.4 kB / 0.5103 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004229/0.5348, allocations: 230.9 kB / 0.5105 GB, free: 3.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005274/0.5354, allocations: 261.1 kB / 0.5108 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.505e-05/0.5354, allocations: 24.09 kB / 0.5108 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.842e-05/0.5355, allocations: 23.28 kB / 0.5108 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002023/0.5357, allocations: 148.7 kB / 0.5109 GB, free: 3.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002029/0.5359, allocations: 176.2 kB / 0.5111 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004913/0.5364, allocations: 375.7 kB / 0.5115 GB, free: 3.141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.5364, allocations: 0 / 0.5115 GB, free: 3.141 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.5365, allocations: 0.6094 kB / 0.5115 GB, free: 3.141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.5365, allocations: 1.406 kB / 0.5115 GB, free: 3.141 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001126/0.5376, allocations: 0.652 MB / 0.5121 GB, free: 2.621 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.5377, allocations: 17.55 kB / 0.5121 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.589e-05/0.5377, allocations: 39.89 kB / 0.5122 GB, free: 2.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005744/0.5383, allocations: 382.4 kB / 0.5125 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.5384, allocations: 19.44 kB / 0.5125 GB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.893e-05/0.5384, allocations: 24.47 kB / 0.5126 GB, free: 2.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005661/0.539, allocations: 361.5 kB / 0.5129 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.539, allocations: 4.688 kB / 0.5129 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.021e-05/0.5391, allocations: 14.95 kB / 0.5129 GB, free: 2.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00012/0.5392, allocations: 30.23 kB / 0.513 GB, free: 2.078 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000438/0.5396, allocations: 238.2 kB / 0.5132 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.5416, allocations: 1.372 MB / 0.5145 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004299/0.542, allocations: 168 kB / 0.5147 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000216/0.5423, allocations: 91.98 kB / 0.5148 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.5423, allocations: 1.438 kB / 0.5148 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.5423, allocations: 37.95 kB / 0.5148 GB, free: 0.7891 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.703e-06/0.5423, allocations: 4 kB / 0.5148 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001511/0.5439, allocations: 0.7573 MB / 0.5156 GB, free: 240 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.5439, allocations: 84.58 kB / 0.5156 GB, free: 140 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004081/0.5443, allocations: 296.1 kB / 0.5159 GB, free: 15.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.5444, allocations: 25.83 kB / 0.5159 GB, free: 15.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001996/0.5446, allocations: 224.5 kB / 0.5162 GB, free: 15.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.838e-05/0.5446, allocations: 55.88 kB / 0.5162 GB, free: 15.72 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.884e-05/0.5448, allocations: 52.23 kB / 0.5163 GB, free: 15.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.5449, allocations: 343.2 kB / 0.5166 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.5451, allocations: 66.8 kB / 0.5166 GB, free: 15.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002433/0.5453, allocations: 175.7 kB / 0.5168 GB, free: 15.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004224/0.5458, allocations: 250.7 kB / 0.5171 GB, free: 14.99 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.5458, allocations: 1.156 kB / 0.5171 GB, free: 14.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006152/0.5464, allocations: 326.5 kB / 0.5174 GB, free: 14.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.5464, allocations: 5.875 kB / 0.5174 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.5464, allocations: 4.109 kB / 0.5174 GB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.5467, allocations: 51.25 kB / 0.5174 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00023/0.5469, allocations: 47.42 kB / 0.5175 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001672/0.5486, allocations: 1.601 MB / 0.519 GB, free: 13.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001584/0.5488, allocations: 14.73 kB / 0.519 GB, free: 13.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.5488, allocations: 18.5 kB / 0.5191 GB, free: 13.35 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (28): * Single equations (assignments): 27 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002393/0.5491, allocations: 167.9 kB / 0.5192 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.809e-05/0.5491, allocations: 24.22 kB / 0.5192 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004938/0.5496, allocations: 240.3 kB / 0.5195 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.5497, allocations: 3.328 kB / 0.5195 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.5497, allocations: 1.156 kB / 0.5195 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.5497, allocations: 2.312 kB / 0.5195 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.5507, allocations: 0.6455 MB / 0.5201 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.5508, allocations: 1.469 kB / 0.5201 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.5509, allocations: 24.34 kB / 0.5201 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000225/0.5511, allocations: 59.86 kB / 0.5202 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.5512, allocations: 7.328 kB / 0.5202 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001589/0.5528, allocations: 1.605 MB / 0.5218 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.5528, allocations: 9.031 kB / 0.5218 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007272/0.5535, allocations: 399.1 kB / 0.5222 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.5536, allocations: 103.4 kB / 0.5223 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.5537, allocations: 7.688 kB / 0.5223 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.5538, allocations: 8.859 kB / 0.5223 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.327e-05/0.5539, allocations: 19.3 kB / 0.5223 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.5539, allocations: 4.234 kB / 0.5223 GB, free: 10.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003465/0.5543, allocations: 208.2 kB / 0.5225 GB, free: 10.66 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5543, allocations: 1.062 kB / 0.5225 GB, free: 10.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005498/0.5548, allocations: 69.66 kB / 0.5226 GB, free: 10.66 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002022/0.555, allocations: 100.2 kB / 0.5227 GB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000808/0.5559, allocations: 310.9 kB / 0.523 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.5559, allocations: 4 kB / 0.523 GB, free: 10.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000387/0.5563, allocations: 206.8 kB / 0.5232 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006385/0.5569, allocations: 74.2 kB / 0.5232 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.5583, allocations: 0.7203 MB / 0.5239 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004937/0.5588, allocations: 0.8141 MB / 0.5247 GB, free: 9.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001671/0.559, allocations: 44.75 kB / 0.5248 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.082e-05/0.5591, allocations: 22.58 kB / 0.5248 GB, free: 9.055 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.5591, allocations: 0 / 0.5248 GB, free: 9.055 MB / 398.1 MB Notification: Performance of Templates: time 0.008044/0.5671, allocations: 2.99 MB / 0.5277 GB, free: 8.812 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches