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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001355/0.001355, allocations: 107.4 kB / 16.4 MB, free: 6.379 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.001453/0.001453, allocations: 185.5 kB / 17.33 MB, free: 5.844 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.364/2.364, allocations: 437 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 64.08 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8568/0.8581, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004472/0.8626, allocations: 3.083 MB / 1.17 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002004/0.8647, allocations: 1.324 MB / 1.172 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.8648, allocations: 8 kB / 1.172 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001008/0.8658, allocations: 340.3 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003269/0.8661, allocations: 143.3 kB / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003324/0.8665, allocations: 139.6 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.8668, allocations: 310.9 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003992/0.8672, allocations: 236.3 kB / 1.173 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.8674, allocations: 119.6 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.8677, allocations: 143.5 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.8677, allocations: 16 kB / 1.173 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002623/0.868, allocations: 167.6 kB / 1.173 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 7.845e-05/0.8681, allocations: 75.8 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001112/0.8682, allocations: 111.4 kB / 1.173 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.8686, allocations: 335.4 kB / 1.174 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.8686, allocations: 4 kB / 1.174 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.142e-06/0.8686, allocations: 0 / 1.174 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.794e-06/0.8686, allocations: 0 / 1.174 GB, free: 13.35 MB / 0.9044 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.0008402/0.8695, allocations: 0.5298 MB / 1.174 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.8695, allocations: 8.625 kB / 1.174 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005753/0.8701, allocations: 84.72 kB / 1.174 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003084/0.8704, allocations: 244 kB / 1.174 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.8704, allocations: 12.75 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.794e-05/0.8705, allocations: 16.38 kB / 1.174 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004407/0.8709, allocations: 303.5 kB / 1.175 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.871, allocations: 0 / 1.175 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.871, allocations: 12 kB / 1.175 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.361e-05/0.871, allocations: 16.36 kB / 1.175 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.8713, allocations: 193 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.8728, allocations: 1.468 MB / 1.176 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.8731, allocations: 171.7 kB / 1.177 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.295e-05/0.8732, allocations: 40.78 kB / 1.177 GB, free: 9.973 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 8.756e-06/0.8732, allocations: 0 / 1.177 GB, free: 9.973 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.8732, allocations: 30.56 kB / 1.177 GB, free: 9.934 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.8732, allocations: 0 / 1.177 GB, free: 9.934 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004628/0.8737, allocations: 227.5 kB / 1.177 GB, free: 9.684 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.644e-05/0.8737, allocations: 59.34 kB / 1.177 GB, free: 9.613 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002117/0.874, allocations: 212.1 kB / 1.177 GB, free: 9.398 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.874, allocations: 25.7 kB / 1.177 GB, free: 9.367 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.8741, allocations: 164 kB / 1.177 GB, free: 9.203 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.786e-05/0.8741, allocations: 35.88 kB / 1.177 GB, free: 9.168 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.585e-05/0.8742, allocations: 37.64 kB / 1.177 GB, free: 9.125 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.8743, allocations: 330.8 kB / 1.178 GB, free: 8.793 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.454e-05/0.8744, allocations: 35.98 kB / 1.178 GB, free: 8.758 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.8745, allocations: 96.56 kB / 1.178 GB, free: 8.633 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001749/0.8747, allocations: 148.4 kB / 1.178 GB, free: 8.457 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.8747, allocations: 3.938 kB / 1.178 GB, free: 8.453 MB / 0.9044 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002995/0.875, allocations: 190.2 kB / 1.178 GB, free: 8.258 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.875, allocations: 8 kB / 1.178 GB, free: 8.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.875, allocations: 4 kB / 1.178 GB, free: 8.246 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/0.8752, allocations: 24.84 kB / 1.178 GB, free: 8.219 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.8753, allocations: 28.27 kB / 1.178 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.8764, allocations: 1.422 MB / 1.18 GB, free: 6.629 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.8765, allocations: 23.88 kB / 1.18 GB, free: 6.605 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.8765, allocations: 4 kB / 1.18 GB, free: 6.602 MB / 0.9044 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.0001385/0.8767, allocations: 157.3 kB / 1.18 GB, free: 6.441 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.605e-05/0.8767, allocations: 15.98 kB / 1.18 GB, free: 6.426 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.534e-05/0.8768, allocations: 21.39 kB / 1.18 GB, free: 6.398 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.8768, allocations: 4 kB / 1.18 GB, free: 6.395 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.8768, allocations: 4.062 kB / 1.18 GB, free: 6.391 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.8768, allocations: 0 / 1.18 GB, free: 6.391 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000518/0.8773, allocations: 447.2 kB / 1.18 GB, free: 5.895 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.8773, allocations: 0 / 1.18 GB, free: 5.895 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.589e-05/0.8774, allocations: 8 kB / 1.18 GB, free: 5.887 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.473e-05/0.8774, allocations: 24.84 kB / 1.18 GB, free: 5.859 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-06/0.8775, allocations: 0 / 1.18 GB, free: 5.859 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009548/0.8784, allocations: 1.418 MB / 1.182 GB, free: 4.301 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.8784, allocations: 0 / 1.182 GB, free: 4.301 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.8787, allocations: 212.2 kB / 1.182 GB, free: 4.074 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.8787, allocations: 101 kB / 1.182 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.92e-05/0.8788, allocations: 4 kB / 1.182 GB, free: 3.953 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.8789, allocations: 8 kB / 1.182 GB, free: 3.945 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.475e-05/0.8789, allocations: 12.14 kB / 1.182 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.044e-06/0.8789, allocations: 3.938 kB / 1.182 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001216/0.8791, allocations: 147.2 kB / 1.182 GB, free: 3.785 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8791, allocations: 0 / 1.182 GB, free: 3.785 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000326/0.8794, allocations: 51.89 kB / 1.182 GB, free: 3.734 MB / 0.9044 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.0001013/0.8795, allocations: 95.25 kB / 1.182 GB, free: 3.629 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003705/0.8799, allocations: 214.6 kB / 1.182 GB, free: 3.406 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.8799, allocations: 0 / 1.182 GB, free: 3.406 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001543/0.88, allocations: 150.6 kB / 1.183 GB, free: 3.246 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.8804, allocations: 27.36 kB / 1.183 GB, free: 3.223 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006436/0.8811, allocations: 400.9 kB / 1.183 GB, free: 2.801 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003367/0.8814, allocations: 0.7475 MB / 1.184 GB, free: 2.027 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.795e-05/0.8815, allocations: 15.44 kB / 1.184 GB, free: 2.012 MB / 0.9044 GB Notification: Performance of SimCode: time 2.91e-07/0.8815, allocations: 0 / 1.184 GB, free: 2.012 MB / 0.9044 GB Notification: Performance of Templates: time 0.004712/0.8862, allocations: 2.991 MB / 1.187 GB, free: 15.03 MB / 0.92 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