Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00774/0.00774, allocations: 99.5 kB / 15.73 MB, free: 6.055 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.001593/0.001593, allocations: 191.8 kB / 16.67 MB, free: 5.973 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.465/1.465, allocations: 222.9 MB / 240.4 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.571/2.571, allocations: 437 MB / 0.7105 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 67.84 kB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.084/1.086, allocations: 151.6 MB / 1.167 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005613/1.092, allocations: 3.837 MB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002742/1.094, allocations: 1.737 MB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/1.095, allocations: 7.938 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001335/1.096, allocations: 495.6 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.00047/1.096, allocations: 226.9 kB / 1.173 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005022/1.097, allocations: 203.5 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004814/1.097, allocations: 478.4 kB / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005559/1.098, allocations: 376.6 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/1.098, allocations: 191.3 kB / 1.174 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003633/1.099, allocations: 215.2 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/1.099, allocations: 32 kB / 1.174 GB, free: 12.04 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003828/1.099, allocations: 243.4 kB / 1.174 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001184/1.099, allocations: 127.7 kB / 1.174 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001644/1.099, allocations: 171.2 kB / 1.175 GB, free: 11.5 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.000564/1.1, allocations: 0.503 MB / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/1.1, allocations: 0 / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.453e-06/1.1, allocations: 0 / 1.175 GB, free: 11 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.408e-06/1.1, allocations: 0 / 1.175 GB, free: 11 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001005/1.101, allocations: 0.6388 MB / 1.176 GB, free: 10.31 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/1.101, allocations: 12.92 kB / 1.176 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008895/1.102, allocations: 132.6 kB / 1.176 GB, free: 10.17 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/1.102, allocations: 307.7 kB / 1.176 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/1.102, allocations: 21.03 kB / 1.176 GB, free: 9.812 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.341e-05/1.102, allocations: 32.38 kB / 1.176 GB, free: 9.781 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006358/1.103, allocations: 467.8 kB / 1.177 GB, free: 9.285 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/1.103, allocations: 4 kB / 1.177 GB, free: 9.281 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.553e-05/1.103, allocations: 15.98 kB / 1.177 GB, free: 9.266 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.666e-05/1.103, allocations: 28.55 kB / 1.177 GB, free: 9.238 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004547/1.104, allocations: 317.9 kB / 1.177 GB, free: 8.93 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/1.106, allocations: 2.178 MB / 1.179 GB, free: 6.539 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000363/1.106, allocations: 256.9 kB / 1.179 GB, free: 6.262 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/1.106, allocations: 112.8 kB / 1.18 GB, free: 6.148 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/1.106, allocations: 0 / 1.18 GB, free: 6.148 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.619e-05/1.106, allocations: 38.5 kB / 1.18 GB, free: 6.102 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 1.012e-06/1.106, allocations: 3.938 kB / 1.18 GB, free: 6.098 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0005844/1.107, allocations: 305 kB / 1.18 GB, free: 5.773 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/1.107, allocations: 55.41 kB / 1.18 GB, free: 5.707 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/1.107, allocations: 266.6 kB / 1.18 GB, free: 5.445 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/1.107, allocations: 25.7 kB / 1.18 GB, free: 5.414 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/1.107, allocations: 212.2 kB / 1.18 GB, free: 5.203 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/1.107, allocations: 51.62 kB / 1.18 GB, free: 5.152 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.02e-05/1.107, allocations: 57.83 kB / 1.181 GB, free: 5.086 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001136/1.108, allocations: 334.8 kB / 1.181 GB, free: 4.75 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.943e-05/1.108, allocations: 52.44 kB / 1.181 GB, free: 4.699 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001407/1.108, allocations: 140.1 kB / 1.181 GB, free: 4.523 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002452/1.108, allocations: 226.9 kB / 1.181 GB, free: 4.262 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.108, allocations: 0 / 1.181 GB, free: 4.262 MB / 0.9044 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003855/1.108, allocations: 260.3 kB / 1.181 GB, free: 4 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/1.109, allocations: 8 kB / 1.181 GB, free: 3.992 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/1.109, allocations: 4 kB / 1.181 GB, free: 3.988 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001734/1.109, allocations: 28.78 kB / 1.182 GB, free: 3.957 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/1.109, allocations: 55.91 kB / 1.182 GB, free: 3.902 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001041/1.11, allocations: 1.422 MB / 1.183 GB, free: 2.336 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001622/1.11, allocations: 27.91 kB / 1.183 GB, free: 2.309 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/1.11, allocations: 8 kB / 1.183 GB, free: 2.301 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001449/1.11, allocations: 174.2 kB / 1.183 GB, free: 2.121 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.853e-05/1.11, allocations: 27.81 kB / 1.183 GB, free: 2.094 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.749e-05/1.11, allocations: 29.83 kB / 1.183 GB, free: 2.059 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/1.11, allocations: 96 / 1.183 GB, free: 2.059 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/1.11, allocations: 3.938 kB / 1.183 GB, free: 2.055 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/1.11, allocations: 8 kB / 1.183 GB, free: 2.047 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008281/1.111, allocations: 0.6909 MB / 1.184 GB, free: 1.266 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/1.111, allocations: 8 kB / 1.184 GB, free: 1.258 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.263e-05/1.111, allocations: 24.12 kB / 1.184 GB, free: 1.234 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.718e-05/1.111, allocations: 28.78 kB / 1.184 GB, free: 1.203 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/1.112, allocations: 4 kB / 1.184 GB, free: 1.199 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009511/1.112, allocations: 1.422 MB / 1.185 GB, free: 15.64 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/1.112, allocations: 0 / 1.185 GB, free: 15.64 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003068/1.113, allocations: 317.3 kB / 1.186 GB, free: 15.29 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/1.113, allocations: 128.8 kB / 1.186 GB, free: 15.14 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/1.113, allocations: 0 / 1.186 GB, free: 15.14 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/1.113, allocations: 16 kB / 1.186 GB, free: 15.13 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.032e-05/1.113, allocations: 19.86 kB / 1.186 GB, free: 15.11 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/1.113, allocations: 8 kB / 1.186 GB, free: 15.1 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001746/1.113, allocations: 190 kB / 1.186 GB, free: 14.92 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/1.113, allocations: 0 / 1.186 GB, free: 14.92 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003637/1.114, allocations: 71.89 kB / 1.186 GB, free: 14.85 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0001251/1.114, allocations: 107.2 kB / 1.186 GB, free: 14.73 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0004453/1.114, allocations: 274.4 kB / 1.186 GB, free: 14.45 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.114, allocations: 0 / 1.186 GB, free: 14.45 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.000199/1.115, allocations: 187.6 kB / 1.187 GB, free: 14.25 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004435/1.115, allocations: 69.09 kB / 1.187 GB, free: 14.2 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009167/1.116, allocations: 0.537 MB / 1.187 GB, free: 13.62 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004425/1.116, allocations: 0.7987 MB / 1.188 GB, free: 12.79 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001167/1.116, allocations: 42.27 kB / 1.188 GB, free: 12.75 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.46e-05/1.117, allocations: 19.44 kB / 1.188 GB, free: 12.73 MB / 0.92 GB Notification: Performance of SimCode: time 3e-07/1.117, allocations: 3.938 kB / 1.188 GB, free: 12.73 MB / 0.92 GB Notification: Performance of Templates: time 0.005805/1.122, allocations: 2.719 MB / 1.191 GB, free: 10.04 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches