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.006857/0.006857, allocations: 100.4 kB / 15.73 MB, free: 5.98 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.001586/0.001586, allocations: 192.2 kB / 16.67 MB, free: 5.918 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.612/1.612, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.599/2.599, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 67.2 kB / 0.9508 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3886/0.3898, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005386/0.3952, allocations: 3.065 MB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003067/0.3984, allocations: 1.336 MB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000229/0.3986, allocations: 4 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.4, allocations: 340.1 kB / 1.093 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005356/0.4005, allocations: 143.3 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000621/0.4012, allocations: 135.6 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005422/0.4017, allocations: 302.8 kB / 1.093 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006489/0.4024, allocations: 248.1 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002444/0.4027, allocations: 123.6 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000444/0.4031, allocations: 143.5 kB / 1.094 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.241e-05/0.4032, allocations: 16 kB / 1.094 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000538/0.4037, allocations: 167.6 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.4039, allocations: 79.8 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001542/0.404, allocations: 107.5 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004997/0.4046, allocations: 338.9 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.4046, allocations: 4 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.613e-06/0.4046, allocations: 4 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.607e-06/0.4046, allocations: 0 / 1.094 GB, free: 10.98 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.0008921/0.4055, allocations: 0.5069 MB / 1.095 GB, free: 10.42 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.4055, allocations: 11.97 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006011/0.4062, allocations: 80.58 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003807/0.4066, allocations: 247.9 kB / 1.095 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.4066, allocations: 16.75 kB / 1.095 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.4066, allocations: 16.38 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004606/0.4071, allocations: 303.2 kB / 1.095 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.4071, allocations: 4 kB / 1.095 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.791e-05/0.4071, allocations: 8 kB / 1.095 GB, free: 9.691 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.913e-05/0.4072, allocations: 16.36 kB / 1.095 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002947/0.4075, allocations: 196.9 kB / 1.096 GB, free: 9.484 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.4091, allocations: 1.456 MB / 1.097 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.4094, allocations: 175.7 kB / 1.097 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.356e-05/0.4094, allocations: 32.84 kB / 1.097 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.317e-05/0.4094, allocations: 0 / 1.097 GB, free: 7.633 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.14e-05/0.4095, allocations: 34.56 kB / 1.097 GB, free: 7.59 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 4.368e-06/0.4095, allocations: 0 / 1.097 GB, free: 7.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005562/0.4101, allocations: 231.4 kB / 1.097 GB, free: 7.336 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.4101, allocations: 55.41 kB / 1.098 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.4103, allocations: 198.4 kB / 1.098 GB, free: 7.066 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.4104, allocations: 29.7 kB / 1.098 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.4105, allocations: 159.6 kB / 1.098 GB, free: 6.871 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.4105, allocations: 27.64 kB / 1.098 GB, free: 6.844 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.628e-05/0.4106, allocations: 37.61 kB / 1.098 GB, free: 6.801 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4107, allocations: 330.8 kB / 1.098 GB, free: 6.469 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.807e-05/0.4108, allocations: 35.98 kB / 1.098 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.4109, allocations: 100.5 kB / 1.098 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/0.411, allocations: 144.4 kB / 1.099 GB, free: 6.133 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.411, allocations: 0 / 1.099 GB, free: 6.133 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002873/0.4113, allocations: 198 kB / 1.099 GB, free: 5.93 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.4114, allocations: 4 kB / 1.099 GB, free: 5.926 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.4114, allocations: 4 kB / 1.099 GB, free: 5.922 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001713/0.4115, allocations: 24.84 kB / 1.099 GB, free: 5.895 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.4117, allocations: 32.25 kB / 1.099 GB, free: 5.863 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001144/0.4128, allocations: 1.426 MB / 1.1 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.4129, allocations: 15.84 kB / 1.1 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.413, allocations: 8 kB / 1.1 GB, free: 4.273 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.000142/0.4131, allocations: 153.6 kB / 1.1 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.633e-05/0.4132, allocations: 15.81 kB / 1.1 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.061e-05/0.4132, allocations: 21.39 kB / 1.1 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.4132, allocations: 0 / 1.1 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.4132, allocations: 0 / 1.1 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.4132, allocations: 4.062 kB / 1.1 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004779/0.4137, allocations: 447.2 kB / 1.101 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.4137, allocations: 0 / 1.101 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.337e-05/0.4137, allocations: 4 kB / 1.101 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.128e-05/0.4138, allocations: 24.84 kB / 1.101 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.924e-06/0.4138, allocations: 0 / 1.101 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009062/0.4148, allocations: 1.41 MB / 1.102 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.4148, allocations: 8.578 kB / 1.102 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002116/0.415, allocations: 228 kB / 1.102 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.072e-05/0.4151, allocations: 93 kB / 1.103 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.4151, allocations: 0 / 1.103 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.4152, allocations: 12 kB / 1.103 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.122e-05/0.4152, allocations: 7.984 kB / 1.103 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.4152, allocations: 4 kB / 1.103 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001279/0.4154, allocations: 148.9 kB / 1.103 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4154, allocations: 0 / 1.103 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003123/0.4157, allocations: 55.75 kB / 1.103 GB, free: 1.406 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.0001248/0.4158, allocations: 95.78 kB / 1.103 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003766/0.4162, allocations: 214.7 kB / 1.103 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.4162, allocations: 4 kB / 1.103 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.4164, allocations: 142.7 kB / 1.103 GB, free: 0.9219 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.4168, allocations: 37.16 kB / 1.103 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006381/0.4174, allocations: 354.8 kB / 1.104 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.4178, allocations: 0.7475 MB / 1.104 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.291e-05/0.4179, allocations: 21.55 kB / 1.104 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.336e-05/0.4179, allocations: 15.44 kB / 1.104 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/0.4179, allocations: 0 / 1.104 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of Templates: time 0.00492/0.4229, allocations: 1.803 MB / 1.106 GB, free: 13.93 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