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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0011/0.0011, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 182 kB / 16.92 MB, free: 6.922 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.482/1.482, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.696/2.696, allocations: 437.8 MB / 0.7128 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003555, allocations: 8 kB / 0.8735 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6861/0.6865, allocations: 153.8 MB / 1.024 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004885/0.6914, allocations: 3.494 MB / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002861/0.6943, allocations: 1.703 MB / 1.029 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003044/0.6947, allocations: 15.94 kB / 1.029 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.695, allocations: 55.56 kB / 1.029 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007675/0.6958, allocations: 211.1 kB / 1.029 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006302/0.6964, allocations: 203 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007777/0.6972, allocations: 0.6583 MB / 1.03 GB, free: 9.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004757/0.6977, allocations: 314.3 kB / 1.03 GB, free: 9.238 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002604/0.6979, allocations: 159.3 kB / 1.03 GB, free: 9.082 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004269/0.6984, allocations: 199.2 kB / 1.031 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.556e-05/0.6984, allocations: 16 kB / 1.031 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005271/0.699, allocations: 307.3 kB / 1.031 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001477/0.6991, allocations: 111.7 kB / 1.031 GB, free: 8.461 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.6993, allocations: 176.8 kB / 1.031 GB, free: 8.281 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004512/0.6998, allocations: 385 kB / 1.031 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.6998, allocations: 4 kB / 1.031 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.934e-06/0.6998, allocations: 0 / 1.031 GB, free: 7.902 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.125e-05/0.6998, allocations: 0 / 1.031 GB, free: 7.902 MB / 0.7794 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.000906/0.7007, allocations: 0.5809 MB / 1.032 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.7008, allocations: 8.031 kB / 1.032 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009458/0.7017, allocations: 140.3 kB / 1.032 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/0.7021, allocations: 292.2 kB / 1.032 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.7021, allocations: 21.03 kB / 1.032 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/0.7022, allocations: 32.36 kB / 1.033 GB, free: 6.754 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006538/0.7029, allocations: 459.9 kB / 1.033 GB, free: 6.266 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.7029, allocations: 4 kB / 1.033 GB, free: 6.262 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.84e-05/0.7029, allocations: 15.98 kB / 1.033 GB, free: 6.246 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.672e-05/0.703, allocations: 28.55 kB / 1.033 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004979/0.7035, allocations: 325.9 kB / 1.033 GB, free: 5.902 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.7057, allocations: 2.193 MB / 1.035 GB, free: 3.496 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003642/0.7061, allocations: 247.8 kB / 1.036 GB, free: 3.227 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.7063, allocations: 116.8 kB / 1.036 GB, free: 3.109 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.7064, allocations: 0 / 1.036 GB, free: 3.109 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.7064, allocations: 34.56 kB / 1.036 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.793e-06/0.7064, allocations: 0 / 1.036 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0006066/0.707, allocations: 307.6 kB / 1.036 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.236e-05/0.7071, allocations: 51.41 kB / 1.036 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.7073, allocations: 266.5 kB / 1.036 GB, free: 2.41 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.7074, allocations: 25.7 kB / 1.036 GB, free: 2.379 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001442/0.7075, allocations: 215.7 kB / 1.037 GB, free: 2.164 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.778e-05/0.7076, allocations: 47.36 kB / 1.037 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.7076, allocations: 25.7 kB / 1.037 GB, free: 2.086 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.7078, allocations: 338.9 kB / 1.037 GB, free: 1.746 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.314e-05/0.7079, allocations: 56.38 kB / 1.037 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.708, allocations: 141.2 kB / 1.037 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.7083, allocations: 222.9 kB / 1.037 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.7083, allocations: 0 / 1.037 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004144/0.7087, allocations: 272.4 kB / 1.038 GB, free: 0.9805 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.7087, allocations: 8 kB / 1.038 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.7088, allocations: 0 / 1.038 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001571/0.7089, allocations: 28.84 kB / 1.038 GB, free: 0.9414 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001907/0.7091, allocations: 51.91 kB / 1.038 GB, free: 0.8906 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.7102, allocations: 1.316 MB / 1.039 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.7103, allocations: 27.69 kB / 1.039 GB, free: 15.42 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.7104, allocations: 12.16 kB / 1.039 GB, free: 15.41 MB / 0.795 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.0001753/0.7106, allocations: 173.7 kB / 1.039 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.047e-05/0.7106, allocations: 27.66 kB / 1.039 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.359e-05/0.7107, allocations: 29.83 kB / 1.039 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.7107, allocations: 0 / 1.039 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.7107, allocations: 0 / 1.039 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.7107, allocations: 7.984 kB / 1.039 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008882/0.7116, allocations: 0.7025 MB / 1.04 GB, free: 14.36 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.7116, allocations: 4 kB / 1.04 GB, free: 14.36 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.456e-05/0.7117, allocations: 28.17 kB / 1.04 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.978e-05/0.7118, allocations: 24.84 kB / 1.04 GB, free: 14.3 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.7118, allocations: 4 kB / 1.04 GB, free: 14.3 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009256/0.7127, allocations: 1.323 MB / 1.041 GB, free: 12.84 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.7128, allocations: 3.938 kB / 1.041 GB, free: 12.84 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003285/0.7131, allocations: 309.2 kB / 1.042 GB, free: 12.5 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.7132, allocations: 112.8 kB / 1.042 GB, free: 12.37 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.7132, allocations: 4 kB / 1.042 GB, free: 12.37 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.7134, allocations: 15.98 kB / 1.042 GB, free: 12.35 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.748e-05/0.7135, allocations: 15.98 kB / 1.042 GB, free: 12.34 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.7135, allocations: 8 kB / 1.042 GB, free: 12.33 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001849/0.7137, allocations: 190 kB / 1.042 GB, free: 12.14 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7137, allocations: 0 / 1.042 GB, free: 12.14 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003916/0.7141, allocations: 79.69 kB / 1.042 GB, free: 12.07 MB / 0.795 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.0001149/0.7142, allocations: 107.3 kB / 1.042 GB, free: 11.95 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004431/0.7146, allocations: 274.3 kB / 1.042 GB, free: 11.67 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.7147, allocations: 0 / 1.042 GB, free: 11.67 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002187/0.7149, allocations: 183.5 kB / 1.043 GB, free: 11.48 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00057/0.7155, allocations: 63.45 kB / 1.043 GB, free: 11.42 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.7165, allocations: 0.715 MB / 1.043 GB, free: 10.65 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003977/0.7169, allocations: 0.7872 MB / 1.044 GB, free: 9.84 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.058e-05/0.717, allocations: 19.44 kB / 1.044 GB, free: 9.824 MB / 0.795 GB Notification: Performance of SimCode: time 4.91e-07/0.717, allocations: 0 / 1.044 GB, free: 9.824 MB / 0.795 GB Notification: Performance of Templates: time 0.00714/0.7242, allocations: 4.348 MB / 1.048 GB, free: 5.488 MB / 0.795 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/jenkins1/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