Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conWin.TClear|conWin.TDark|conWin.T|conWin.HClear|conWin.HDark|conWin.H|conWin.y",fileNamePrefix="Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow") translateModel(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|conWin.TClear|conWin.TDark|conWin.T|conWin.HClear|conWin.HDark|conWin.H|conWin.y",fileNamePrefix="Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001816/0.001816, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.456/2.456, allocations: 390.9 MB / 0.666 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003356, allocations: 8 kB / 0.8154 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7504/0.7508, allocations: 142.4 MB / 0.9544 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow): time 0.0018/0.7526, allocations: 1.653 MB / 0.9561 GB, free: 6.461 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008502/0.7535, allocations: 0.6103 MB / 0.9567 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.7536, allocations: 2.281 kB / 0.9567 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.062e-05/0.7536, allocations: 15.84 kB / 0.9567 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.7538, allocations: 40.16 kB / 0.9567 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.7541, allocations: 108.4 kB / 0.9568 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000247/0.7544, allocations: 246.4 kB / 0.957 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001468/0.7546, allocations: 64.42 kB / 0.9571 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.7547, allocations: 85.69 kB / 0.9572 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.7548, allocations: 100.4 kB / 0.9573 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.486e-05/0.7549, allocations: 8.938 kB / 0.9573 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.01e-05/0.7549, allocations: 9.812 kB / 0.9573 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.397e-05/0.7549, allocations: 34.3 kB / 0.9573 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.851e-05/0.755, allocations: 58.45 kB / 0.9574 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.7552, allocations: 184.3 kB / 0.9576 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.7552, allocations: 0 / 0.9576 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.704e-06/0.7552, allocations: 5.781 kB / 0.9576 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.7552, allocations: 0 / 0.9576 GB, free: 5.316 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001085/0.7563, allocations: 0.6231 MB / 0.9582 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.7564, allocations: 9.375 kB / 0.9582 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.367e-05/0.7564, allocations: 31.25 kB / 0.9582 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.7568, allocations: 258 kB / 0.9585 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.7568, allocations: 9.875 kB / 0.9585 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.225e-05/0.7568, allocations: 17.44 kB / 0.9585 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005753/0.7574, allocations: 259.2 kB / 0.9587 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.7574, allocations: 0 / 0.9587 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.7575, allocations: 9.578 kB / 0.9588 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.7575, allocations: 3.688 kB / 0.9588 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007778/0.7582, allocations: 275.6 kB / 0.959 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006269/0.7589, allocations: 0.521 MB / 0.9595 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009003/0.7598, allocations: 315.7 kB / 0.9598 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004126/0.7602, allocations: 139.2 kB / 0.96 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.7603, allocations: 2.031 kB / 0.96 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005719/0.7608, allocations: 219.7 kB / 0.9602 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.7609, allocations: 0 / 0.9602 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.001368/0.7622, allocations: 453.3 kB / 0.9606 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.7623, allocations: 62.38 kB / 0.9607 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.7625, allocations: 209.8 kB / 0.9609 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.7625, allocations: 32.45 kB / 0.9609 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.732e-05/0.7626, allocations: 137 kB / 0.961 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.142e-05/0.7626, allocations: 37.08 kB / 0.9611 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.392e-05/0.7626, allocations: 5.969 kB / 0.9611 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.036e-05/0.7627, allocations: 330.8 kB / 0.9614 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004144/0.7631, allocations: 136 kB / 0.9615 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004005/0.7635, allocations: 145.3 kB / 0.9617 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004097/0.7639, allocations: 179.2 kB / 0.9618 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.7639, allocations: 5.125 kB / 0.9618 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009142/0.7649, allocations: 406.7 kB / 0.9622 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.918e-05/0.7649, allocations: 152.1 kB / 0.9624 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.7649, allocations: 1.219 kB / 0.9624 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.765, allocations: 0 / 0.9624 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.7652, allocations: 64.12 kB / 0.9624 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.7653, allocations: 9.203 kB / 0.9624 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.7655, allocations: 61.44 kB / 0.9625 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.237e-05/0.7656, allocations: 7.562 kB / 0.9625 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/0.7656, allocations: 5.125 kB / 0.9625 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008023/0.7664, allocations: 361.9 kB / 0.9628 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-06/0.7664, allocations: 0 / 0.9628 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.587e-06/0.7664, allocations: 5.484 kB / 0.9629 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002199/0.7666, allocations: 57.83 kB / 0.9629 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.627e-06/0.7666, allocations: 0.9688 kB / 0.9629 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002417/0.7669, allocations: 67.25 kB / 0.963 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.59e-05/0.7669, allocations: 3.969 kB / 0.963 GB, free: 1.496 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.TMea.T_start,TMea.T_start,$PRE.TMea.count,TMea.count,$PRE.HMea.T_start,HMea.T_start,$PRE.HMea.count,HMea.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00011/0.767, allocations: 207.5 kB / 0.9632 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.12e-05/0.7671, allocations: 16.75 kB / 0.9632 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.518e-05/0.7671, allocations: 22.44 kB / 0.9632 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.7671, allocations: 5.391 kB / 0.9632 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.7671, allocations: 1.031 kB / 0.9632 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.7672, allocations: 11.95 kB / 0.9632 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001946/0.7674, allocations: 273.9 kB / 0.9635 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.7674, allocations: 0 / 0.9635 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002544/0.7676, allocations: 55.19 kB / 0.9635 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.838e-06/0.7676, allocations: 1.406 kB / 0.9635 GB, free: 0.957 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.7677, allocations: 13.09 kB / 0.9636 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.7677, allocations: 0 / 0.9636 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.7677, allocations: 1.406 kB / 0.9636 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009065/0.7686, allocations: 355.6 kB / 0.9639 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.442e-05/0.7686, allocations: 93.95 kB / 0.964 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.825e-05/0.7687, allocations: 9.312 kB / 0.964 GB, free: 0.6445 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002511/0.7689, allocations: 54.72 kB / 0.964 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.369e-05/0.769, allocations: 26.58 kB / 0.9641 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.7691, allocations: 7.266 kB / 0.9641 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001132/0.7692, allocations: 155.1 kB / 0.9642 GB, free: 500 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7692, allocations: 6.812 kB / 0.9642 GB, free: 496 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003462/0.7695, allocations: 72.47 kB / 0.9643 GB, free: 480 kB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,TMea.T_start,TMea.count,HMea.T_start,HMea.count) * Number of discrete states: 2 (TMea.count,HMea.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001133/0.7697, allocations: 107.4 kB / 0.9644 GB, free: 384 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001413/0.7711, allocations: 0.6575 MB / 0.965 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.7711, allocations: 0 / 0.965 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004943/0.7716, allocations: 156.5 kB / 0.9652 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003389/0.772, allocations: 35.12 kB / 0.9652 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009548/0.7729, allocations: 411.2 kB / 0.9656 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.7732, allocations: 0.7281 MB / 0.9663 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001429/0.7734, allocations: 25.91 kB / 0.9664 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.523e-05/0.7735, allocations: 17.91 kB / 0.9664 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of SimCode: time 4.01e-07/0.7735, allocations: 0 / 0.9664 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of Templates: time 0.006408/0.7799, allocations: 2.767 MB / 0.9691 GB, free: 13.45 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.makefile (rm -f Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; mkfifo Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; head -c 1048576 < Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe >> ../files/Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.sim & ./Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches