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.001659/0.001665, allocations: 104.2 kB / 16.4 MB, free: 6.465 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.001828/0.001829, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.423/1.423, 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 11.0.1-master/package.mo): time 2.886/2.886, allocations: 461.9 MB / 0.7354 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001419, allocations: 67.89 kB / 1.055 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7864/0.7878, allocations: 157.4 MB / 1.208 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006106/0.794, allocations: 3.841 MB / 1.212 GB, free: 9.934 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003144/0.7972, allocations: 1.729 MB / 1.214 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00034/0.7975, allocations: 8 kB / 1.214 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001567/0.7992, allocations: 494.1 kB / 1.214 GB, free: 7.703 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000706/0.7999, allocations: 226.9 kB / 1.215 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006716/0.8006, allocations: 211.5 kB / 1.215 GB, free: 7.273 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007061/0.8013, allocations: 466.5 kB / 1.215 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006726/0.802, allocations: 366.9 kB / 1.216 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.8023, allocations: 199.3 kB / 1.216 GB, free: 6.262 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005241/0.8029, allocations: 207.2 kB / 1.216 GB, free: 6.059 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.258e-05/0.803, allocations: 31.94 kB / 1.216 GB, free: 6.027 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000542/0.8035, allocations: 251.4 kB / 1.216 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.8037, allocations: 127.7 kB / 1.216 GB, free: 5.656 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002348/0.8039, allocations: 171.2 kB / 1.216 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0008284/0.8048, allocations: 0.4984 MB / 1.217 GB, free: 4.988 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.8048, allocations: 4 kB / 1.217 GB, free: 4.984 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8048, allocations: 0 / 1.217 GB, free: 4.984 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.485e-05/0.8048, allocations: 0 / 1.217 GB, free: 4.984 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.00126/0.8061, allocations: 0.6354 MB / 1.218 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.8061, allocations: 12.03 kB / 1.218 GB, free: 4.285 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009935/0.8071, allocations: 128.4 kB / 1.218 GB, free: 4.16 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004277/0.8076, allocations: 295.6 kB / 1.218 GB, free: 3.832 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.8076, allocations: 21.02 kB / 1.218 GB, free: 3.812 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.107e-05/0.8077, allocations: 32.38 kB / 1.218 GB, free: 3.781 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007237/0.8084, allocations: 463.9 kB / 1.218 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.8084, allocations: 4 kB / 1.218 GB, free: 3.289 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.853e-05/0.8085, allocations: 12 kB / 1.219 GB, free: 3.277 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.836e-05/0.8085, allocations: 28.55 kB / 1.219 GB, free: 3.25 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005056/0.809, allocations: 325.9 kB / 1.219 GB, free: 2.93 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00229/0.8113, allocations: 2.173 MB / 1.221 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/0.8118, allocations: 255.8 kB / 1.221 GB, free: 272 kB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002247/0.812, allocations: 112.8 kB / 1.221 GB, free: 156 kB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.812, allocations: 0 / 1.221 GB, free: 156 kB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.8121, allocations: 34.56 kB / 1.221 GB, free: 112 kB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.8121, allocations: 0 / 1.221 GB, free: 112 kB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0006764/0.8127, allocations: 303 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.8128, allocations: 59.41 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003027/0.8131, allocations: 274.5 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.8131, allocations: 25.7 kB / 1.222 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.8133, allocations: 203.9 kB / 1.222 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.324e-05/0.8133, allocations: 51.2 kB / 1.222 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.649e-05/0.8134, allocations: 49.89 kB / 1.222 GB, free: 15.1 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.8136, allocations: 334.8 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.673e-05/0.8137, allocations: 56.44 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.8138, allocations: 140.1 kB / 1.223 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.8141, allocations: 225.8 kB / 1.223 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.8141, allocations: 0 / 1.223 GB, free: 14.27 MB / 0.9512 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004318/0.8146, allocations: 266.2 kB / 1.223 GB, free: 14 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.8146, allocations: 11.97 kB / 1.223 GB, free: 13.99 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.8146, allocations: 8.062 kB / 1.223 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000181/0.8148, allocations: 24.84 kB / 1.223 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.815, allocations: 51.92 kB / 1.223 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.8161, allocations: 1.418 MB / 1.225 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001964/0.8163, allocations: 27.69 kB / 1.225 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.729e-05/0.8164, allocations: 8 kB / 1.225 GB, free: 12.32 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.0001865/0.8165, allocations: 173.8 kB / 1.225 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.645e-05/0.8166, allocations: 23.72 kB / 1.225 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.382e-05/0.8167, allocations: 29.83 kB / 1.225 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.8167, allocations: 0 / 1.225 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.8167, allocations: 4 kB / 1.225 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.8167, allocations: 0 / 1.225 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009563/0.8177, allocations: 0.7101 MB / 1.226 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.8177, allocations: 0 / 1.226 GB, free: 11.28 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.603e-05/0.8178, allocations: 23.98 kB / 1.226 GB, free: 11.26 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.232e-05/0.8179, allocations: 32.97 kB / 1.226 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.8179, allocations: 4 kB / 1.226 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/0.8189, allocations: 1.406 MB / 1.227 GB, free: 9.676 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.819, allocations: 11.97 kB / 1.227 GB, free: 9.664 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003481/0.8193, allocations: 317.1 kB / 1.227 GB, free: 9.316 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.8194, allocations: 112.8 kB / 1.228 GB, free: 9.188 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.009e-05/0.8195, allocations: 4 kB / 1.228 GB, free: 9.184 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.8196, allocations: 11.98 kB / 1.228 GB, free: 9.172 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.615e-05/0.8197, allocations: 19.92 kB / 1.228 GB, free: 9.152 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.8197, allocations: 8 kB / 1.228 GB, free: 9.145 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001918/0.8199, allocations: 190 kB / 1.228 GB, free: 8.957 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8199, allocations: 3.938 kB / 1.228 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0004157/0.8203, allocations: 79.75 kB / 1.228 GB, free: 8.875 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.0001427/0.8205, allocations: 107.1 kB / 1.228 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0004801/0.821, allocations: 277.1 kB / 1.228 GB, free: 8.477 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.821, allocations: 0 / 1.228 GB, free: 8.477 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.8212, allocations: 186.6 kB / 1.228 GB, free: 8.281 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004949/0.8217, allocations: 62.95 kB / 1.228 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009742/0.8227, allocations: 0.5864 MB / 1.229 GB, free: 7.586 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004194/0.8231, allocations: 0.787 MB / 1.23 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.183e-05/0.8232, allocations: 23.44 kB / 1.23 GB, free: 6.75 MB / 0.9512 GB Notification: Performance of SimCode: time 3.81e-07/0.8232, allocations: 0 / 1.23 GB, free: 6.75 MB / 0.9512 GB Notification: Performance of Templates: time 0.00779/0.831, allocations: 4.401 MB / 1.234 GB, free: 2.359 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/jenkins1/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