Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.006875/0.006875, allocations: 103.9 kB / 15.73 MB, free: 6.004 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.001261/0.001261, allocations: 191.8 kB / 16.67 MB, free: 5.93 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.652/2.652, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 64.12 kB / 1.054 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9338/0.9352, allocations: 157.4 MB / 1.208 GB, free: 13.78 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005988/0.9412, allocations: 3.831 MB / 1.211 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002982/0.9442, allocations: 1.733 MB / 1.213 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002476/0.9445, allocations: 4 kB / 1.213 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.9459, allocations: 498 kB / 1.214 GB, free: 7.699 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0005345/0.9465, allocations: 230.8 kB / 1.214 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005782/0.9471, allocations: 203.5 kB / 1.214 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006315/0.9477, allocations: 470.5 kB / 1.214 GB, free: 6.812 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006334/0.9484, allocations: 371 kB / 1.215 GB, free: 6.449 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003313/0.9487, allocations: 195.3 kB / 1.215 GB, free: 6.258 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000539/0.9492, allocations: 215.2 kB / 1.215 GB, free: 6.047 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.78e-05/0.9493, allocations: 28 kB / 1.215 GB, free: 6.02 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004895/0.9498, allocations: 247.4 kB / 1.215 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001535/0.95, allocations: 131.7 kB / 1.216 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.9502, allocations: 171.2 kB / 1.216 GB, free: 5.48 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007383/0.9509, allocations: 0.4984 MB / 1.216 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.951, allocations: 0 / 1.216 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.973e-06/0.951, allocations: 0 / 1.216 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.375e-05/0.951, allocations: 0 / 1.216 GB, free: 4.98 MB / 0.9356 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.001285/0.9523, allocations: 0.6315 MB / 1.217 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.9523, allocations: 12.03 kB / 1.217 GB, free: 4.285 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009731/0.9533, allocations: 132.4 kB / 1.217 GB, free: 4.156 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004721/0.9538, allocations: 295.6 kB / 1.217 GB, free: 3.828 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.512e-05/0.9538, allocations: 25.03 kB / 1.217 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.9539, allocations: 28.38 kB / 1.217 GB, free: 3.777 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007031/0.9546, allocations: 459.9 kB / 1.218 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.9546, allocations: 4 kB / 1.218 GB, free: 3.289 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.788e-05/0.9547, allocations: 15.98 kB / 1.218 GB, free: 3.273 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.195e-05/0.9547, allocations: 32.55 kB / 1.218 GB, free: 3.242 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005173/0.9552, allocations: 325.9 kB / 1.218 GB, free: 2.922 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.9576, allocations: 2.169 MB / 1.22 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.958, allocations: 251.8 kB / 1.221 GB, free: 272 kB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.9582, allocations: 108.8 kB / 1.221 GB, free: 160 kB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.9583, allocations: 4 kB / 1.221 GB, free: 156 kB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.641e-05/0.9583, allocations: 30.66 kB / 1.221 GB, free: 116 kB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.9583, allocations: 3.938 kB / 1.221 GB, free: 112 kB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0006283/0.9589, allocations: 306.5 kB / 1.221 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.896e-05/0.959, allocations: 55.41 kB / 1.221 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.9593, allocations: 274.5 kB / 1.221 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.9593, allocations: 29.7 kB / 1.221 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.9595, allocations: 199.9 kB / 1.221 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.237e-05/0.9595, allocations: 59.19 kB / 1.222 GB, free: 15.15 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.633e-05/0.9596, allocations: 41.95 kB / 1.222 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.9597, allocations: 338.8 kB / 1.222 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.813e-05/0.9598, allocations: 56.44 kB / 1.222 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001566/0.96, allocations: 144 kB / 1.222 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002675/0.9603, allocations: 221 kB / 1.222 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.9603, allocations: 4 kB / 1.222 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004268/0.9607, allocations: 270.1 kB / 1.223 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.9608, allocations: 8 kB / 1.223 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.9608, allocations: 0 / 1.223 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001729/0.961, allocations: 24.91 kB / 1.223 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.9612, allocations: 55.91 kB / 1.223 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.9623, allocations: 1.422 MB / 1.224 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001747/0.9625, allocations: 27.69 kB / 1.224 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.9626, allocations: 12.14 kB / 1.224 GB, free: 12.3 MB / 0.9512 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.0001767/0.9627, allocations: 173.7 kB / 1.224 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.981e-05/0.9628, allocations: 23.72 kB / 1.224 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.048e-05/0.9629, allocations: 29.83 kB / 1.224 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.9629, allocations: 0 / 1.224 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.9629, allocations: 0 / 1.224 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.9629, allocations: 0 / 1.224 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009647/0.9638, allocations: 0.7101 MB / 1.225 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.9639, allocations: 4 kB / 1.225 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.418e-05/0.964, allocations: 16 kB / 1.225 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.952e-05/0.964, allocations: 32.97 kB / 1.225 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.9641, allocations: 8 kB / 1.225 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.9651, allocations: 1.41 MB / 1.226 GB, free: 9.664 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.9652, allocations: 3.938 kB / 1.226 GB, free: 9.66 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003561/0.9655, allocations: 320 kB / 1.227 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.9657, allocations: 116.8 kB / 1.227 GB, free: 9.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.9657, allocations: 7.984 kB / 1.227 GB, free: 9.172 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.9659, allocations: 12 kB / 1.227 GB, free: 9.16 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.536e-05/0.9659, allocations: 19.91 kB / 1.227 GB, free: 9.141 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.9659, allocations: 12 kB / 1.227 GB, free: 9.129 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001882/0.9661, allocations: 190 kB / 1.227 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.8e-07/0.9661, allocations: 0 / 1.227 GB, free: 8.941 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000395/0.9665, allocations: 75.75 kB / 1.227 GB, free: 8.867 MB / 0.9512 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.0001454/0.9667, allocations: 107.1 kB / 1.227 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005175/0.9672, allocations: 282.4 kB / 1.228 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.9672, allocations: 4 kB / 1.228 GB, free: 8.457 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.9674, allocations: 175.7 kB / 1.228 GB, free: 8.273 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004757/0.9679, allocations: 58.25 kB / 1.228 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009242/0.9689, allocations: 0.5357 MB / 1.228 GB, free: 7.637 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.9693, allocations: 0.7909 MB / 1.229 GB, free: 6.82 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001337/0.9694, allocations: 46.27 kB / 1.229 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.134e-05/0.9695, allocations: 19.44 kB / 1.229 GB, free: 6.754 MB / 0.9512 GB Notification: Performance of SimCode: time 2.9e-07/0.9695, allocations: 0 / 1.229 GB, free: 6.754 MB / 0.9512 GB Notification: Performance of Templates: time 0.006796/0.9763, allocations: 2.778 MB / 1.232 GB, free: 4.004 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches