Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001898/0.001898, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002134/0.002134, allocations: 194 kB / 16.14 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.545/1.545, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.231/3.231, allocations: 482.4 MB / 0.7542 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.003199/0.003199, allocations: 67.52 kB / 0.9231 GB, free: 29.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4703/0.4735, allocations: 162.2 MB / 1.082 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002316/0.4759, allocations: 0.7221 MB / 1.082 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.4775, allocations: 1.069 MB / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.206e-05/0.4776, allocations: 0 / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.887e-05/0.4776, allocations: 0 / 1.083 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.528e-05/0.4777, allocations: 11.91 kB / 1.083 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.478, allocations: 31.92 kB / 1.083 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.177e-05/0.4781, allocations: 47.91 kB / 1.083 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.4782, allocations: 11.98 kB / 1.083 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.959e-05/0.4783, allocations: 19.92 kB / 1.083 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.354e-05/0.4784, allocations: 19.92 kB / 1.083 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.4784, allocations: 0 / 1.083 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.747e-05/0.4785, allocations: 19.92 kB / 1.083 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.168e-05/0.4786, allocations: 19.91 kB / 1.084 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.82e-05/0.4786, allocations: 19.92 kB / 1.084 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.4788, allocations: 63.72 kB / 1.084 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.4788, allocations: 0 / 1.084 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.052e-06/0.4788, allocations: 0 / 1.084 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.592e-06/0.4788, allocations: 0 / 1.084 GB, free: 11.66 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008004/0.4796, allocations: 367.7 kB / 1.084 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.4797, allocations: 12.03 kB / 1.084 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.635e-05/0.4797, allocations: 8.828 kB / 1.084 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.4799, allocations: 168.3 kB / 1.084 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.4799, allocations: 384 / 1.084 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.48, allocations: 4.375 kB / 1.084 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002454/0.4802, allocations: 70.22 kB / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.4802, allocations: 4.172 kB / 1.084 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.81e-05/0.4803, allocations: 11.88 kB / 1.084 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.4803, allocations: 4 kB / 1.084 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.4805, allocations: 39.95 kB / 1.084 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006509/0.4811, allocations: 280.8 kB / 1.085 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.4813, allocations: 62.48 kB / 1.085 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.4815, allocations: 24.97 kB / 1.085 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.4815, allocations: 7.938 kB / 1.085 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002429/0.4818, allocations: 83.42 kB / 1.085 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.4818, allocations: 0 / 1.085 GB, free: 10.37 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004749/0.4822, allocations: 117.6 kB / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.4823, allocations: 59.41 kB / 1.085 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.4824, allocations: 105.8 kB / 1.085 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.4825, allocations: 25.7 kB / 1.085 GB, free: 10.04 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.132e-05/0.4825, allocations: 84.05 kB / 1.085 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.229e-05/0.4826, allocations: 31.67 kB / 1.085 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.338e-05/0.4826, allocations: 25.72 kB / 1.085 GB, free: 9.887 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.4828, allocations: 314.8 kB / 1.085 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.4829, allocations: 27.97 kB / 1.085 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.4831, allocations: 52.28 kB / 1.085 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.4833, allocations: 100.1 kB / 1.086 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4833, allocations: 3.938 kB / 1.086 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002876/0.4836, allocations: 121.4 kB / 1.086 GB, free: 9.234 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4836, allocations: 8 kB / 1.086 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.4836, allocations: 0 / 1.086 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.4837, allocations: 192 / 1.086 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.4838, allocations: 15.98 kB / 1.086 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.4838, allocations: 11.92 kB / 1.086 GB, free: 9.199 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.077e-05/0.4839, allocations: 8 kB / 1.086 GB, free: 9.191 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.4839, allocations: 8.125 kB / 1.086 GB, free: 9.184 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001204/0.484, allocations: 123.6 kB / 1.086 GB, free: 9.055 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.521e-05/0.4841, allocations: 7.984 kB / 1.086 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003182/0.4844, allocations: 106 kB / 1.086 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.4844, allocations: 0 / 1.086 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4844, allocations: 0 / 1.086 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4844, allocations: 0 / 1.086 GB, free: 8.934 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005155/0.4849, allocations: 370.3 kB / 1.086 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.485, allocations: 0 / 1.086 GB, free: 8.516 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.562e-05/0.485, allocations: 11.98 kB / 1.086 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.485, allocations: 0 / 1.086 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.485, allocations: 0 / 1.086 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.4851, allocations: 256 / 1.086 GB, free: 8.504 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4851, allocations: 4 kB / 1.086 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.4854, allocations: 203.4 kB / 1.087 GB, free: 8.285 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.862e-05/0.4855, allocations: 89.05 kB / 1.087 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.4855, allocations: 0 / 1.087 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.4856, allocations: 11.98 kB / 1.087 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/0.4857, allocations: 7.984 kB / 1.087 GB, free: 8.16 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.4857, allocations: 3.938 kB / 1.087 GB, free: 8.156 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.767e-05/0.4857, allocations: 91.28 kB / 1.087 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4858, allocations: 0 / 1.087 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002429/0.486, allocations: 12 kB / 1.087 GB, free: 8.055 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000178/0.4862, allocations: 111.1 kB / 1.087 GB, free: 7.938 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002976/0.4865, allocations: 67.89 kB / 1.087 GB, free: 7.871 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4865, allocations: 256 / 1.087 GB, free: 7.871 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.4866, allocations: 47.89 kB / 1.087 GB, free: 7.824 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.4869, allocations: 7.938 kB / 1.087 GB, free: 7.816 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003893/0.4873, allocations: 150.8 kB / 1.087 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.4876, allocations: 0.6809 MB / 1.088 GB, free: 6.938 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.776e-05/0.4877, allocations: 11.98 kB / 1.088 GB, free: 6.926 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.63e-05/0.4877, allocations: 11.44 kB / 1.088 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of SimCode: time 3.81e-07/0.4877, allocations: 0 / 1.088 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of Templates: time 0.004036/0.4918, allocations: 0.7397 MB / 1.089 GB, free: 6.184 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches