Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Examples.Tutorial.SimpleHouse.SimpleHouse2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|walCap.T",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2") translateModel(Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|walCap.T",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001453/0.001453, allocations: 190.2 kB / 16.25 MB, free: 6.645 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.375/1.375, allocations: 222.9 MB / 239.9 MB, free: 4.477 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.895/2.895, allocations: 472.6 MB / 0.7448 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 68.34 kB / 0.9116 GB, free: 33.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3394, allocations: 159.9 MB / 1.068 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2): time 0.007149/0.3466, allocations: 5.244 MB / 1.073 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1783/0.5249, allocations: 148.4 MB / 1.218 GB, free: 0.4961 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.5261, allocations: 15.94 kB / 1.218 GB, free: 492 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0009072/0.527, allocations: 162.8 kB / 1.218 GB, free: 328 kB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002285/0.5293, allocations: 0.4919 MB / 1.218 GB, free: 15.83 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002283/0.5316, allocations: 0.7653 MB / 1.219 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.002036/0.5337, allocations: 1.443 MB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.5348, allocations: 0.6035 MB / 1.221 GB, free: 12.99 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008641/0.5357, allocations: 0.5061 MB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008126/0.5365, allocations: 0.529 MB / 1.222 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0003036/0.5369, allocations: 123.9 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.538, allocations: 463.6 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003794/0.5384, allocations: 307 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000838/0.5392, allocations: 0.5869 MB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00237/0.5416, allocations: 1.643 MB / 1.225 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.5416, allocations: 0 / 1.225 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.303e-06/0.5416, allocations: 0 / 1.225 GB, free: 8.84 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.923e-05/0.5417, allocations: 4 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.003532/0.5452, allocations: 1.489 MB / 1.227 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.5453, allocations: 8.031 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.5464, allocations: 195.3 kB / 1.227 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/0.5477, allocations: 0.7623 MB / 1.228 GB, free: 6.289 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.953e-05/0.5477, allocations: 70 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.5479, allocations: 84 kB / 1.228 GB, free: 6.141 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002036/0.55, allocations: 0.9574 MB / 1.229 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.55, allocations: 0 / 1.229 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.5502, allocations: 39.94 kB / 1.229 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.118e-05/0.5502, allocations: 20 kB / 1.229 GB, free: 5.082 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001907/0.5521, allocations: 1.143 MB / 1.23 GB, free: 3.941 MB / 0.9825 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004973/0.5571, allocations: 2.802 MB / 1.233 GB, free: 1.016 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/0.5588, allocations: 0.8515 MB / 1.233 GB, free: 160 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006187/0.5594, allocations: 318.7 kB / 1.234 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.713e-05/0.5595, allocations: 32.69 kB / 1.234 GB, free: 15.81 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001096/0.5606, allocations: 0.5062 MB / 1.234 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=85): time 2.986e-06/0.5606, allocations: 0 / 1.234 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of matching and sorting (n=85): time 0.003492/0.5641, allocations: 1.247 MB / 1.236 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.5643, allocations: 192.9 kB / 1.236 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001097/0.5654, allocations: 0.6489 MB / 1.236 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.906e-05/0.5655, allocations: 45.7 kB / 1.236 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004178/0.5659, allocations: 408.4 kB / 1.237 GB, free: 12.67 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003159/0.5662, allocations: 284 kB / 1.237 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000312/0.5666, allocations: 166.5 kB / 1.237 GB, free: 12.22 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001955/0.5668, allocations: 390.8 kB / 1.238 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005996/0.5674, allocations: 281.8 kB / 1.238 GB, free: 11.55 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006702/0.5681, allocations: 379.1 kB / 1.238 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001202/0.5693, allocations: 0.6242 MB / 1.239 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.5693, allocations: 0 / 1.239 GB, free: 10.54 MB / 0.9981 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002197/0.5715, allocations: 0.8877 MB / 1.24 GB, free: 9.637 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.5715, allocations: 4.094 kB / 1.24 GB, free: 9.633 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.5715, allocations: 8 kB / 1.24 GB, free: 9.625 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005822/0.5721, allocations: 80.78 kB / 1.24 GB, free: 9.543 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007261/0.5729, allocations: 175.7 kB / 1.24 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002371/0.5753, allocations: 1.634 MB / 1.242 GB, free: 7.594 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000983/0.5762, allocations: 100.4 kB / 1.242 GB, free: 7.496 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001406/0.5764, allocations: 40.05 kB / 1.242 GB, free: 7.457 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 99 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0007255/0.5771, allocations: 272.9 kB / 1.242 GB, free: 7.184 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003013/0.5774, allocations: 86.91 kB / 1.242 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002916/0.5804, allocations: 1.105 MB / 1.243 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.5804, allocations: 8 kB / 1.243 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.5804, allocations: 0 / 1.243 GB, free: 5.969 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.5804, allocations: 12.02 kB / 1.243 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001532/0.582, allocations: 0.9191 MB / 1.244 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.337e-05/0.582, allocations: 0 / 1.244 GB, free: 4.988 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007014/0.5827, allocations: 167.7 kB / 1.244 GB, free: 4.824 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004825/0.5832, allocations: 68.8 kB / 1.244 GB, free: 4.754 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.675e-05/0.5833, allocations: 31.97 kB / 1.244 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002145/0.5855, allocations: 1.662 MB / 1.246 GB, free: 2.914 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5855, allocations: 4.062 kB / 1.246 GB, free: 2.91 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003041/0.5885, allocations: 1.367 MB / 1.247 GB, free: 1.523 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004954/0.589, allocations: 271.8 kB / 1.247 GB, free: 1.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000193/0.5892, allocations: 23.94 kB / 1.247 GB, free: 1.215 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007514/0.59, allocations: 71.98 kB / 1.248 GB, free: 1.145 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.5902, allocations: 68.89 kB / 1.248 GB, free: 1.078 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-05/0.5903, allocations: 35.98 kB / 1.248 GB, free: 1.043 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007412/0.591, allocations: 475 kB / 1.248 GB, free: 0.5859 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5.81e-07/0.591, allocations: 0 / 1.248 GB, free: 0.5859 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001091/0.5921, allocations: 335.1 kB / 1.248 GB, free: 264 kB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (walCap.T) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.5837/1.176, allocations: 0.5984 MB / 1.249 GB, free: 183.9 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003407/1.179, allocations: 1.069 MB / 1.25 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/1.179, allocations: 1 kB / 1.25 GB, free: 183.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001118/1.18, allocations: 0.5297 MB / 1.251 GB, free: 183.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001609/1.182, allocations: 311.7 kB / 1.251 GB, free: 183.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004129/1.186, allocations: 2.287 MB / 1.253 GB, free: 182.5 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007112/1.187, allocations: 1.041 MB / 1.254 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009816/1.188, allocations: 268 kB / 1.254 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003093/1.188, allocations: 109.3 kB / 1.254 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of SimCode: time 4.81e-07/1.188, allocations: 0 / 1.254 GB, free: 181.8 MB / 0.9981 GB Notification: Performance of Templates: time 0.03734/1.226, allocations: 15.32 MB / 1.269 GB, free: 179.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2.makefile (rm -f Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2.sim & ./Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_SimpleHouse_SimpleHouse2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches