Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 173 kB / 16.92 MB, free: 6.652 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.559/1.559, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.698/2.698, allocations: 437.8 MB / 0.7128 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003414/0.0003416, allocations: 8 kB / 0.8735 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.661/0.6613, allocations: 153.8 MB / 1.024 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003553/0.6649, allocations: 2.762 MB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002031/0.667, allocations: 1.301 MB / 1.028 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.6671, allocations: 7.938 kB / 1.028 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001726/0.6673, allocations: 43.7 kB / 1.028 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003845/0.6677, allocations: 131.4 kB / 1.028 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003633/0.6681, allocations: 126.4 kB / 1.028 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004091/0.6685, allocations: 438.7 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003496/0.6689, allocations: 233.4 kB / 1.029 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.669, allocations: 99.62 kB / 1.029 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003045/0.6693, allocations: 131.5 kB / 1.029 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.6693, allocations: 12 kB / 1.029 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003537/0.6697, allocations: 203.5 kB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.311e-05/0.6698, allocations: 79.78 kB / 1.029 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.6699, allocations: 129.1 kB / 1.029 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002955/0.6702, allocations: 257.3 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.6703, allocations: 0 / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.803e-06/0.6703, allocations: 0 / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.6703, allocations: 0 / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000744/0.671, allocations: 483.2 kB / 1.03 GB, free: 9.492 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.6711, allocations: 11.98 kB / 1.03 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006038/0.6717, allocations: 84.58 kB / 1.03 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.672, allocations: 239.9 kB / 1.03 GB, free: 9.125 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.672, allocations: 20.73 kB / 1.03 GB, free: 9.105 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.282e-05/0.6721, allocations: 16.38 kB / 1.03 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004451/0.6725, allocations: 295.5 kB / 1.031 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.6725, allocations: 4 kB / 1.031 GB, free: 8.777 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.453e-05/0.6726, allocations: 11.98 kB / 1.031 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.385e-05/0.6726, allocations: 12.38 kB / 1.031 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002936/0.6729, allocations: 200.9 kB / 1.031 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.6745, allocations: 1.464 MB / 1.032 GB, free: 6.934 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.6748, allocations: 179.7 kB / 1.032 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.717e-05/0.6749, allocations: 28.84 kB / 1.032 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.6749, allocations: 4 kB / 1.032 GB, free: 6.695 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.406e-05/0.675, allocations: 34.55 kB / 1.032 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.703e-06/0.675, allocations: 0 / 1.032 GB, free: 6.652 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000464/0.6754, allocations: 231.5 kB / 1.033 GB, free: 6.398 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.323e-05/0.6755, allocations: 55.39 kB / 1.033 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.6757, allocations: 192.5 kB / 1.033 GB, free: 6.137 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.6757, allocations: 33.7 kB / 1.033 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.6758, allocations: 159.6 kB / 1.033 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.304e-05/0.6758, allocations: 27.64 kB / 1.033 GB, free: 5.91 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.6759, allocations: 17.72 kB / 1.033 GB, free: 5.887 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.676, allocations: 330.8 kB / 1.033 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.246e-05/0.6761, allocations: 35.97 kB / 1.033 GB, free: 5.52 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/0.6762, allocations: 110.1 kB / 1.034 GB, free: 5.383 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001806/0.6764, allocations: 148.4 kB / 1.034 GB, free: 5.207 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.6764, allocations: 4 kB / 1.034 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002931/0.6767, allocations: 182.2 kB / 1.034 GB, free: 5.016 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.6767, allocations: 8 kB / 1.034 GB, free: 5.008 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.6767, allocations: 8.047 kB / 1.034 GB, free: 5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001606/0.6769, allocations: 29.12 kB / 1.034 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.677, allocations: 31.92 kB / 1.034 GB, free: 4.938 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000961/0.678, allocations: 1.319 MB / 1.035 GB, free: 3.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.6781, allocations: 19.78 kB / 1.035 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.6781, allocations: 8 kB / 1.035 GB, free: 3.461 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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.0001288/0.6782, allocations: 146.3 kB / 1.035 GB, free: 3.309 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.933e-05/0.6783, allocations: 19.75 kB / 1.035 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.015e-05/0.6783, allocations: 17.39 kB / 1.035 GB, free: 3.273 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.6783, allocations: 0 / 1.035 GB, free: 3.273 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.6783, allocations: 0 / 1.035 GB, free: 3.273 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.6783, allocations: 4.062 kB / 1.035 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000483/0.6788, allocations: 455.1 kB / 1.036 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.6788, allocations: 0 / 1.036 GB, free: 2.766 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.484e-05/0.6789, allocations: 4 kB / 1.036 GB, free: 2.762 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.849e-05/0.679, allocations: 20.84 kB / 1.036 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.679, allocations: 4 kB / 1.036 GB, free: 2.734 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008896/0.6799, allocations: 1.308 MB / 1.037 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.6799, allocations: 11.92 kB / 1.037 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002081/0.6801, allocations: 208.8 kB / 1.037 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.433e-05/0.6802, allocations: 104.8 kB / 1.038 GB, free: 0.9297 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.6802, allocations: 3.938 kB / 1.038 GB, free: 0.9258 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.6803, allocations: 11.98 kB / 1.038 GB, free: 0.9141 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.864e-05/0.6804, allocations: 3.938 kB / 1.038 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.604e-06/0.6804, allocations: 4 kB / 1.038 GB, free: 0.9062 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001171/0.6805, allocations: 147.4 kB / 1.038 GB, free: 0.7617 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.6805, allocations: 4 kB / 1.038 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003288/0.6808, allocations: 51.84 kB / 1.038 GB, free: 0.707 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0001025/0.6809, allocations: 95.25 kB / 1.038 GB, free: 0.6055 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003557/0.6813, allocations: 214.9 kB / 1.038 GB, free: 392 kB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.6813, allocations: 8.125 kB / 1.038 GB, free: 384 kB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.6815, allocations: 146.7 kB / 1.038 GB, free: 224 kB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.6819, allocations: 27.98 kB / 1.038 GB, free: 196 kB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007336/0.6826, allocations: 491.5 kB / 1.039 GB, free: 15.68 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.683, allocations: 0.7478 MB / 1.039 GB, free: 14.91 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.463e-05/0.683, allocations: 15.44 kB / 1.039 GB, free: 14.89 MB / 0.795 GB Notification: Performance of SimCode: time 4.21e-07/0.683, allocations: 0 / 1.039 GB, free: 14.89 MB / 0.795 GB Notification: Performance of Templates: time 0.005337/0.6884, allocations: 2.935 MB / 1.042 GB, free: 11.96 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches