Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1.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.SimpleHouse1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|walCap.T",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1") translateModel(Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|walCap.T",fileNamePrefix="Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001598/0.001598, allocations: 192.4 kB / 16.25 MB, free: 6.621 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.429/1.429, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.884/2.884, allocations: 482.3 MB / 0.7543 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 67.7 kB / 0.9233 GB, free: 29.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3117, allocations: 162.2 MB / 1.082 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1): time 0.008024/0.3198, allocations: 5.128 MB / 1.087 GB, free: 8.488 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1923/0.5121, allocations: 148.4 MB / 1.232 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008631/0.513, allocations: 19.88 kB / 1.232 GB, free: 3.488 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0006554/0.5136, allocations: 162.8 kB / 1.232 GB, free: 3.328 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001867/0.5156, allocations: 0.4894 MB / 1.232 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001916/0.5175, allocations: 0.7466 MB / 1.233 GB, free: 2.098 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001707/0.5192, allocations: 1.424 MB / 1.234 GB, free: 0.668 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009168/0.5201, allocations: 0.5835 MB / 1.235 GB, free: 68 kB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007195/0.5209, allocations: 498.4 kB / 1.235 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006548/0.5215, allocations: 0.5095 MB / 1.236 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001664/0.5217, allocations: 120 kB / 1.236 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009092/0.5226, allocations: 463.5 kB / 1.237 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003047/0.5229, allocations: 303 kB / 1.237 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.000571/0.5235, allocations: 0.579 MB / 1.237 GB, free: 13.62 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001976/0.5255, allocations: 1.62 MB / 1.239 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.5255, allocations: 3.984 kB / 1.239 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5255, allocations: 0 / 1.239 GB, free: 11.99 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.168e-05/0.5256, allocations: 0 / 1.239 GB, free: 11.99 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.00276/0.5283, allocations: 1.454 MB / 1.24 GB, free: 10.48 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.5284, allocations: 16.03 kB / 1.24 GB, free: 10.47 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000984/0.5294, allocations: 191.3 kB / 1.241 GB, free: 10.28 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.5306, allocations: 0.7508 MB / 1.241 GB, free: 9.488 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.387e-05/0.5306, allocations: 66 kB / 1.241 GB, free: 9.426 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.5308, allocations: 88 kB / 1.241 GB, free: 9.34 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.5325, allocations: 0.934 MB / 1.242 GB, free: 8.363 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.5326, allocations: 0 / 1.242 GB, free: 8.363 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.915e-05/0.5327, allocations: 36 kB / 1.242 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.221e-05/0.5327, allocations: 24 kB / 1.242 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.5347, allocations: 1.124 MB / 1.244 GB, free: 7.18 MB / 0.9981 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.004539/0.5392, allocations: 2.85 MB / 1.246 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/0.5409, allocations: 0.8105 MB / 1.247 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006258/0.5416, allocations: 306.7 kB / 1.247 GB, free: 3.066 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.826e-05/0.5417, allocations: 32.61 kB / 1.247 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/0.5428, allocations: 499.1 kB / 1.248 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=82): time 2.304e-06/0.5428, allocations: 0 / 1.248 GB, free: 2.527 MB / 0.9981 GB Notification: Performance of matching and sorting (n=82): time 0.003445/0.5463, allocations: 1.207 MB / 1.249 GB, free: 1.293 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.5465, allocations: 200.5 kB / 1.249 GB, free: 1.055 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008651/0.5473, allocations: 0.6449 MB / 1.25 GB, free: 416 kB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.48e-05/0.5474, allocations: 45.7 kB / 1.25 GB, free: 364 kB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.5186/1.066, allocations: 398.8 kB / 1.25 GB, free: 173.8 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003069/1.066, allocations: 269.7 kB / 1.251 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/1.067, allocations: 170.5 kB / 1.251 GB, free: 173.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001472/1.067, allocations: 387.2 kB / 1.251 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005812/1.067, allocations: 267.3 kB / 1.251 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006657/1.068, allocations: 367.7 kB / 1.252 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/1.069, allocations: 0.6106 MB / 1.252 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/1.069, allocations: 0.75 kB / 1.252 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002151/1.071, allocations: 0.8699 MB / 1.253 GB, free: 173 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/1.071, allocations: 5.281 kB / 1.253 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/1.071, allocations: 2.984 kB / 1.253 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006456/1.072, allocations: 82.67 kB / 1.253 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007269/1.073, allocations: 166.8 kB / 1.253 GB, free: 173 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001874/1.075, allocations: 1.63 MB / 1.255 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008191/1.076, allocations: 102.8 kB / 1.255 GB, free: 171.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.008e-05/1.076, allocations: 34.55 kB / 1.255 GB, free: 171.4 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 (97): * Single equations (assignments): 96 * 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.0004209/1.076, allocations: 275.6 kB / 1.255 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/1.076, allocations: 84.98 kB / 1.256 GB, free: 171.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002444/1.079, allocations: 1.074 MB / 1.257 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/1.079, allocations: 9.094 kB / 1.257 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/1.079, allocations: 1.594 kB / 1.257 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/1.079, allocations: 8.75 kB / 1.257 GB, free: 170.7 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/1.08, allocations: 0.904 MB / 1.257 GB, free: 170.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/1.08, allocations: 1.891 kB / 1.257 GB, free: 170.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006408/1.081, allocations: 149.6 kB / 1.258 GB, free: 170.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004636/1.081, allocations: 77.08 kB / 1.258 GB, free: 170.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.002e-05/1.081, allocations: 26.39 kB / 1.258 GB, free: 170.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/1.083, allocations: 1.657 MB / 1.259 GB, free: 168.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.083, allocations: 0.9688 kB / 1.259 GB, free: 168.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/1.085, allocations: 1.334 MB / 1.261 GB, free: 168.1 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003456/1.086, allocations: 279 kB / 1.261 GB, free: 167.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/1.086, allocations: 23.88 kB / 1.261 GB, free: 167.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006499/1.086, allocations: 63.84 kB / 1.261 GB, free: 167.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/1.087, allocations: 73.91 kB / 1.261 GB, free: 167.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.858e-05/1.087, allocations: 32.69 kB / 1.261 GB, free: 167.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006306/1.087, allocations: 468.4 kB / 1.262 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/1.087, allocations: 3.938 kB / 1.262 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009621/1.088, allocations: 328.5 kB / 1.262 GB, free: 167.6 MB / 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 (93): * Single equations (assignments): 87 * 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.001823/1.09, allocations: 0.5947 MB / 1.262 GB, free: 167.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002473/1.093, allocations: 1.05 MB / 1.263 GB, free: 167 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/1.093, allocations: 6.156 kB / 1.263 GB, free: 167 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008719/1.094, allocations: 0.5161 MB / 1.264 GB, free: 166.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/1.095, allocations: 316.6 kB / 1.264 GB, free: 166.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/1.098, allocations: 2.21 MB / 1.266 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/1.098, allocations: 1.033 MB / 1.267 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0008532/1.099, allocations: 257.1 kB / 1.268 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002668/1.099, allocations: 110.8 kB / 1.268 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of SimCode: time 6.21e-07/1.099, allocations: 0 / 1.268 GB, free: 164.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.02864/1.128, allocations: 15.13 MB / 1.283 GB, free: 161.6 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1.makefile (rm -f Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1.pipe ; mkfifo Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1.pipe >> ../files/Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1.sim & ./Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_Tutorial_SimpleHouse_SimpleHouse1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.Tutorial.SimpleHouse.SimpleHouse1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches