Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.008215/0.008215, allocations: 105.1 kB / 15.73 MB, free: 6.043 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.001648/0.001648, allocations: 191.1 kB / 16.67 MB, free: 5.977 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.591/2.591, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 58.47 kB / 0.9508 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3835, allocations: 140.4 MB / 1.088 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.008398/0.392, allocations: 3.073 MB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004095/0.3961, allocations: 1.324 MB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003229/0.3965, allocations: 4 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002034/0.3986, allocations: 338.7 kB / 1.093 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007716/0.3993, allocations: 147.3 kB / 1.093 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006603/0.4, allocations: 135.6 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006468/0.4007, allocations: 310.7 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006717/0.4014, allocations: 236.2 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002853/0.4017, allocations: 119.6 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004948/0.4022, allocations: 139.5 kB / 1.094 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.351e-05/0.4023, allocations: 23.94 kB / 1.094 GB, free: 11.65 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005778/0.4029, allocations: 171.6 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001621/0.4031, allocations: 79.78 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002202/0.4033, allocations: 111.5 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008115/0.4041, allocations: 331 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4041, allocations: 7.984 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.813e-06/0.4042, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.448e-05/0.4042, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 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.001703/0.4059, allocations: 0.5108 MB / 1.095 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/0.406, allocations: 8.031 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001103/0.4071, allocations: 84.52 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.4077, allocations: 240 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.4077, allocations: 16.75 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001931/0.4079, allocations: 16.38 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007369/0.4087, allocations: 303.2 kB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.4087, allocations: 4 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.283e-05/0.4088, allocations: 11.98 kB / 1.095 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.065e-05/0.4088, allocations: 16.36 kB / 1.095 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005318/0.4094, allocations: 193 kB / 1.096 GB, free: 9.473 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002711/0.4121, allocations: 1.464 MB / 1.097 GB, free: 7.848 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005087/0.4127, allocations: 175.7 kB / 1.097 GB, free: 7.648 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.83e-05/0.4128, allocations: 32.84 kB / 1.097 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.4128, allocations: 0 / 1.097 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.4128, allocations: 46.56 kB / 1.097 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.783e-06/0.4129, allocations: 0 / 1.097 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0007716/0.4136, allocations: 223.4 kB / 1.097 GB, free: 7.312 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.4137, allocations: 51.41 kB / 1.098 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.414, allocations: 198.4 kB / 1.098 GB, free: 7.047 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.4141, allocations: 29.7 kB / 1.098 GB, free: 7.012 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.4142, allocations: 163.8 kB / 1.098 GB, free: 6.848 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.4143, allocations: 31.64 kB / 1.098 GB, free: 6.816 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.177e-05/0.4144, allocations: 37.61 kB / 1.098 GB, free: 6.773 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0002793/0.4147, allocations: 330.8 kB / 1.098 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.4148, allocations: 35.98 kB / 1.098 GB, free: 6.406 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.415, allocations: 98.12 kB / 1.098 GB, free: 6.281 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003272/0.4154, allocations: 152.3 kB / 1.099 GB, free: 6.102 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.4154, allocations: 0 / 1.099 GB, free: 6.102 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005224/0.4159, allocations: 190.1 kB / 1.099 GB, free: 5.906 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.416, allocations: 8.281 kB / 1.099 GB, free: 5.898 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.416, allocations: 4 kB / 1.099 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002291/0.4162, allocations: 24.84 kB / 1.099 GB, free: 5.867 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001871/0.4164, allocations: 27.98 kB / 1.099 GB, free: 5.84 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002009/0.4184, allocations: 1.423 MB / 1.1 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.4187, allocations: 15.84 kB / 1.1 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.4187, allocations: 8 kB / 1.1 GB, free: 4.254 MB / 0.8575 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.0002405/0.419, allocations: 153.8 kB / 1.1 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.97e-05/0.4191, allocations: 15.81 kB / 1.1 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.346e-05/0.4191, allocations: 21.39 kB / 1.1 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.4191, allocations: 0 / 1.1 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.4192, allocations: 0 / 1.1 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.4192, allocations: 0 / 1.1 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008455/0.42, allocations: 451.2 kB / 1.101 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.42, allocations: 0 / 1.101 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.752e-05/0.4201, allocations: 8 kB / 1.101 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001271/0.4202, allocations: 24.84 kB / 1.101 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.4203, allocations: 3.938 kB / 1.101 GB, free: 3.516 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.4217, allocations: 1.41 MB / 1.102 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.4218, allocations: 0 / 1.102 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004875/0.4223, allocations: 220 kB / 1.102 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.4224, allocations: 97.09 kB / 1.103 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.069e-05/0.4224, allocations: 0 / 1.103 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.4226, allocations: 8 kB / 1.103 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.4227, allocations: 7.984 kB / 1.103 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.4227, allocations: 0 / 1.103 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003526/0.4231, allocations: 148.9 kB / 1.103 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.11e-07/0.4231, allocations: 0 / 1.103 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006301/0.4237, allocations: 55.75 kB / 1.103 GB, free: 1.398 MB / 0.8575 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.0002184/0.424, allocations: 103.8 kB / 1.103 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006236/0.4246, allocations: 210.5 kB / 1.103 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4246, allocations: 0 / 1.103 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.4249, allocations: 151.2 kB / 1.103 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006532/0.4256, allocations: 37.39 kB / 1.103 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.4266, allocations: 350.5 kB / 1.104 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005654/0.4272, allocations: 0.7514 MB / 1.104 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001443/0.4273, allocations: 21.53 kB / 1.104 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.116e-05/0.4274, allocations: 19.44 kB / 1.104 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of SimCode: time 3.366e-06/0.4274, allocations: 0 / 1.104 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of Templates: time 0.008324/0.4358, allocations: 1.776 MB / 1.106 GB, free: 13.94 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches