Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.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_10_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_10_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.001012/0.001012, 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.001223/0.001223, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.398/1.398, 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.626/2.626, allocations: 437.8 MB / 0.7128 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000457/0.0004572, allocations: 8 kB / 0.8735 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7883/0.7888, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow): time 0.002413/0.7912, allocations: 1.707 MB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.7924, allocations: 0.6314 MB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.729e-05/0.7925, allocations: 4 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.476e-05/0.7925, allocations: 11.86 kB / 1.026 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001656/0.7927, allocations: 43.64 kB / 1.026 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004161/0.7931, allocations: 139.8 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003046/0.7934, allocations: 267.2 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.7936, allocations: 52.3 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.7937, allocations: 99.53 kB / 1.027 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.7939, allocations: 99.52 kB / 1.027 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.7939, allocations: 12 kB / 1.027 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 2.985e-05/0.7939, allocations: 8 kB / 1.027 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.944e-05/0.794, allocations: 35.83 kB / 1.027 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.7941, allocations: 113.2 kB / 1.027 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002142/0.7944, allocations: 193.5 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.7944, allocations: 0 / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.793e-06/0.7944, allocations: 0 / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.7944, allocations: 0 / 1.027 GB, free: 12.48 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001284/0.7957, allocations: 0.6307 MB / 1.028 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.7957, allocations: 8.031 kB / 1.028 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.957e-05/0.7958, allocations: 24.66 kB / 1.028 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.7962, allocations: 263.8 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.7962, allocations: 8.375 kB / 1.028 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.346e-05/0.7963, allocations: 20.36 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007167/0.797, allocations: 264.2 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.797, allocations: 0 / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.656e-05/0.7971, allocations: 4 kB / 1.028 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.7971, allocations: 4 kB / 1.028 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009397/0.798, allocations: 267.8 kB / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000794/0.7988, allocations: 0.5235 MB / 1.029 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.7999, allocations: 318.5 kB / 1.029 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.8004, allocations: 144.7 kB / 1.029 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.8005, allocations: 11.94 kB / 1.029 GB, free: 9.836 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006541/0.8011, allocations: 215.2 kB / 1.03 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.8012, allocations: 0 / 1.03 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.001641/0.8028, allocations: 455.3 kB / 1.03 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.8029, allocations: 67.33 kB / 1.03 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.8031, allocations: 211 kB / 1.03 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.195e-05/0.8031, allocations: 33.7 kB / 1.03 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.28e-05/0.8032, allocations: 128.3 kB / 1.03 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.419e-05/0.8033, allocations: 43.36 kB / 1.031 GB, free: 8.652 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.931e-05/0.8033, allocations: 25.64 kB / 1.031 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.8035, allocations: 330.8 kB / 1.031 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004794/0.804, allocations: 135.9 kB / 1.031 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000524/0.8045, allocations: 143.9 kB / 1.031 GB, free: 8.016 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009467/0.8054, allocations: 325.5 kB / 1.031 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.8055, allocations: 0 / 1.031 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001128/0.8066, allocations: 413.8 kB / 1.032 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001126/0.8067, allocations: 153.1 kB / 1.032 GB, free: 7.094 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.8067, allocations: 4 kB / 1.032 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.8067, allocations: 0 / 1.032 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.807, allocations: 59.88 kB / 1.032 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.8071, allocations: 7.984 kB / 1.032 GB, free: 7.023 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003349/0.8074, allocations: 51.95 kB / 1.032 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.8074, allocations: 4 kB / 1.032 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.243e-06/0.8074, allocations: 4 kB / 1.032 GB, free: 6.965 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009496/0.8084, allocations: 369 kB / 1.032 GB, free: 6.594 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.8084, allocations: 7.938 kB / 1.032 GB, free: 6.586 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-06/0.8084, allocations: 4 kB / 1.032 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002453/0.8087, allocations: 55.89 kB / 1.033 GB, free: 6.527 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.8087, allocations: 4 kB / 1.033 GB, free: 6.523 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002766/0.809, allocations: 59.8 kB / 1.033 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.809, allocations: 11.98 kB / 1.033 GB, free: 6.453 MB / 0.7794 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 (HMea.count,$PRE.HMea.count,HMea.T_start,$PRE.HMea.T_start,TMea.count,$PRE.TMea.count,TMea.T_start,$PRE.TMea.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001727/0.8092, allocations: 201.7 kB / 1.033 GB, free: 6.246 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.568e-05/0.8092, allocations: 19.75 kB / 1.033 GB, free: 6.227 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.94e-05/0.8093, allocations: 25.52 kB / 1.033 GB, free: 6.207 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.8093, allocations: 4 kB / 1.033 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.8093, allocations: 0 / 1.033 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.8093, allocations: 0 / 1.033 GB, free: 6.203 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000266/0.8096, allocations: 273.4 kB / 1.033 GB, free: 5.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.8096, allocations: 0 / 1.033 GB, free: 5.887 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002785/0.8099, allocations: 71.75 kB / 1.033 GB, free: 5.816 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.8099, allocations: 3.938 kB / 1.033 GB, free: 5.812 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.8099, allocations: 4 kB / 1.033 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.8099, allocations: 0 / 1.033 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.8099, allocations: 0 / 1.033 GB, free: 5.809 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.811, allocations: 360.6 kB / 1.034 GB, free: 5.438 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.039e-05/0.8111, allocations: 96.8 kB / 1.034 GB, free: 5.324 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.623e-05/0.8111, allocations: 7.984 kB / 1.034 GB, free: 5.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002855/0.8114, allocations: 43.95 kB / 1.034 GB, free: 5.273 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.8115, allocations: 39.89 kB / 1.034 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.21e-05/0.8115, allocations: 0 / 1.034 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001434/0.8117, allocations: 152.6 kB / 1.034 GB, free: 5.086 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8117, allocations: 4 kB / 1.034 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003226/0.812, allocations: 67.84 kB / 1.034 GB, free: 5.016 MB / 0.7794 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001335/0.8122, allocations: 107.2 kB / 1.034 GB, free: 4.902 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001655/0.8138, allocations: 0.6632 MB / 1.035 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.8138, allocations: 0 / 1.035 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0004905/0.8143, allocations: 157.2 kB / 1.035 GB, free: 4.039 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003429/0.8147, allocations: 36.47 kB / 1.035 GB, free: 4.004 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008846/0.8156, allocations: 444.5 kB / 1.035 GB, free: 3.531 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.8159, allocations: 0.7287 MB / 1.036 GB, free: 2.777 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.742e-05/0.816, allocations: 27.42 kB / 1.036 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.816, allocations: 3.938 kB / 1.036 GB, free: 2.75 MB / 0.7794 GB Notification: Performance of Templates: time 0.004614/0.8206, allocations: 2.737 MB / 1.039 GB, free: 28 kB / 0.7794 GB make -j1 -f Buildings_10_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.makefile (rm -f Buildings_10_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; mkfifo Buildings_10_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe ; head -c 1048576 < Buildings_10_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe >> ../files/Buildings_10_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.sim & ./Buildings_10_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_ThermalZones_Detailed_Examples_Controls_Validation_ElectrochromicWindow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.ThermalZones.Detailed.Examples.Controls.Validation.ElectrochromicWindow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches