Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 108 kB / 15.61 MB, free: 152 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.002386/0.002386, allocations: 194.4 kB / 16.53 MB, free: 6.699 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.564/1.564, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.175/3.175, allocations: 482.6 MB / 0.7548 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002094/0.002095, allocations: 66 kB / 0.9241 GB, free: 29.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4547/0.4568, allocations: 162.3 MB / 1.083 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002321/0.4592, allocations: 0.6736 MB / 1.083 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001665/0.4609, allocations: 1.077 MB / 1.084 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.387e-05/0.461, allocations: 3.938 kB / 1.084 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.531e-05/0.461, allocations: 7.938 kB / 1.084 GB, free: 11.18 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.204e-05/0.4611, allocations: 3.938 kB / 1.084 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.4615, allocations: 51.81 kB / 1.084 GB, free: 11.12 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001273/0.4616, allocations: 59.91 kB / 1.084 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.4618, allocations: 23.95 kB / 1.084 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 9.455e-05/0.4619, allocations: 27.92 kB / 1.084 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.411e-05/0.4619, allocations: 31.84 kB / 1.084 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.462, allocations: 8 kB / 1.084 GB, free: 10.97 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.256e-05/0.4621, allocations: 27.92 kB / 1.085 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.919e-05/0.4621, allocations: 15.98 kB / 1.085 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 6.814e-05/0.4622, allocations: 27.86 kB / 1.085 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.4624, allocations: 75.73 kB / 1.085 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.4624, allocations: 0 / 1.085 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.364e-06/0.4624, allocations: 3.938 kB / 1.085 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.685e-06/0.4624, allocations: 0 / 1.085 GB, free: 10.82 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007552/0.4632, allocations: 387.6 kB / 1.085 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.4632, allocations: 8.031 kB / 1.085 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.146e-05/0.4633, allocations: 4.938 kB / 1.085 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.4634, allocations: 172.2 kB / 1.085 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.4635, allocations: 384 / 1.085 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.32e-05/0.4635, allocations: 16.36 kB / 1.085 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.4638, allocations: 78.22 kB / 1.085 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.4638, allocations: 4.125 kB / 1.085 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.767e-05/0.4638, allocations: 7.922 kB / 1.085 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.4638, allocations: 4 kB / 1.085 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002121/0.464, allocations: 55.94 kB / 1.085 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.4647, allocations: 308.8 kB / 1.086 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002202/0.4649, allocations: 86.41 kB / 1.086 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.465, allocations: 44.83 kB / 1.086 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.4651, allocations: 4 kB / 1.086 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002693/0.4653, allocations: 87.38 kB / 1.086 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.4653, allocations: 0 / 1.086 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0005482/0.4659, allocations: 173.6 kB / 1.086 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.466, allocations: 55.39 kB / 1.086 GB, free: 9.172 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.4661, allocations: 109.9 kB / 1.086 GB, free: 9.055 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.4661, allocations: 33.69 kB / 1.086 GB, free: 9.016 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.082e-05/0.4662, allocations: 84.38 kB / 1.086 GB, free: 8.926 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.4662, allocations: 27.66 kB / 1.086 GB, free: 8.898 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.694e-05/0.4663, allocations: 33.7 kB / 1.086 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001836/0.4665, allocations: 319.2 kB / 1.087 GB, free: 8.539 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.4666, allocations: 43.91 kB / 1.087 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.4668, allocations: 58.55 kB / 1.087 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002654/0.467, allocations: 102.5 kB / 1.087 GB, free: 8.32 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4671, allocations: 3.938 kB / 1.087 GB, free: 8.316 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003372/0.4674, allocations: 145.5 kB / 1.087 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.4674, allocations: 5.719 kB / 1.087 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.4674, allocations: 8.062 kB / 1.087 GB, free: 8.156 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.4675, allocations: 3.938 kB / 1.087 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.4676, allocations: 19.98 kB / 1.087 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.4676, allocations: 0 / 1.087 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.064e-05/0.4677, allocations: 19.83 kB / 1.087 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.4677, allocations: 4 kB / 1.087 GB, free: 8.109 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * 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.0001408/0.4679, allocations: 130.2 kB / 1.087 GB, free: 7.973 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.4679, allocations: 4 kB / 1.087 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004048/0.4683, allocations: 149.8 kB / 1.087 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4683, allocations: 0 / 1.087 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4683, allocations: 7.984 kB / 1.087 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.4683, allocations: 0 / 1.087 GB, free: 7.809 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006256/0.469, allocations: 406.4 kB / 1.088 GB, free: 7.355 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.469, allocations: 4 kB / 1.088 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.557e-05/0.4691, allocations: 11.98 kB / 1.088 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.4691, allocations: 0 / 1.088 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.4691, allocations: 0 / 1.088 GB, free: 7.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.4691, allocations: 4 kB / 1.088 GB, free: 7.336 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4691, allocations: 3.984 kB / 1.088 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003969/0.4695, allocations: 243.5 kB / 1.088 GB, free: 7.078 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.513e-05/0.4696, allocations: 85.05 kB / 1.088 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.182e-05/0.4696, allocations: 96 / 1.088 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.4697, allocations: 15.92 kB / 1.088 GB, free: 6.961 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.4698, allocations: 7.984 kB / 1.088 GB, free: 6.953 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.4698, allocations: 8.188 kB / 1.088 GB, free: 6.945 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.659e-05/0.4699, allocations: 87.28 kB / 1.088 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.518e-06/0.4699, allocations: 0 / 1.088 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000255/0.4702, allocations: 19.94 kB / 1.088 GB, free: 6.84 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002119/0.4704, allocations: 123.2 kB / 1.088 GB, free: 6.711 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003476/0.4707, allocations: 103.9 kB / 1.088 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4707, allocations: 0 / 1.088 GB, free: 6.609 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.4709, allocations: 51.91 kB / 1.088 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.4712, allocations: 7.984 kB / 1.088 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004685/0.4717, allocations: 158.7 kB / 1.089 GB, free: 6.371 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.4721, allocations: 0.6924 MB / 1.089 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.78e-05/0.4721, allocations: 4.438 kB / 1.089 GB, free: 5.648 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.213e-05/0.4721, allocations: 15.44 kB / 1.089 GB, free: 5.633 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.4722, allocations: 4 kB / 1.089 GB, free: 5.629 MB / 0.8419 GB Notification: Performance of Templates: time 0.004277/0.4764, allocations: 1.023 MB / 1.09 GB, free: 4.613 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches