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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001392/0.001392, allocations: 119.8 kB / 16.37 MB, free: 6.016 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.001515/0.001515, allocations: 193 kB / 17.31 MB, free: 5.613 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.41/1.41, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.593/2.593, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 63.66 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4045/0.406, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002521/0.4086, allocations: 0.6839 MB / 1.027 GB, free: 1.406 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001499/0.4101, allocations: 1.07 MB / 1.028 GB, free: 328 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.232e-05/0.4102, allocations: 0 / 1.028 GB, free: 328 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.611e-05/0.4102, allocations: 3.938 kB / 1.028 GB, free: 324 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 6.917e-05/0.4103, allocations: 11.94 kB / 1.028 GB, free: 312 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003129/0.4106, allocations: 39.83 kB / 1.028 GB, free: 272 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.4108, allocations: 47.91 kB / 1.029 GB, free: 224 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.4109, allocations: 8 kB / 1.029 GB, free: 216 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.372e-05/0.411, allocations: 27.84 kB / 1.029 GB, free: 188 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.599e-05/0.411, allocations: 27.91 kB / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.4111, allocations: 7.938 kB / 1.029 GB, free: 152 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.05e-05/0.4111, allocations: 15.98 kB / 1.029 GB, free: 136 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.242e-05/0.4112, allocations: 8 kB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.231e-05/0.4112, allocations: 31.84 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.4114, allocations: 51.86 kB / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.4114, allocations: 0 / 1.029 GB, free: 44 kB / 0.795 GB Notification: Performance of FrontEnd: time 2.074e-06/0.4114, allocations: 4 kB / 1.029 GB, free: 40 kB / 0.795 GB Notification: Performance of Transformations before backend: time 5.431e-06/0.4114, allocations: 0 / 1.029 GB, free: 40 kB / 0.795 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.0006878/0.4121, allocations: 367.4 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.4122, allocations: 8.031 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.139e-05/0.4122, allocations: 8.938 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.4124, allocations: 172.2 kB / 1.029 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.354e-05/0.4124, allocations: 4.312 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.4124, allocations: 8.375 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.4126, allocations: 62.22 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.567e-06/0.4126, allocations: 192 / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.4126, allocations: 11.92 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.4127, allocations: 0 / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001783/0.4128, allocations: 47.95 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005327/0.4134, allocations: 272.8 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.4136, allocations: 62.42 kB / 1.03 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.911e-05/0.4137, allocations: 36.89 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.4137, allocations: 8 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/0.4139, allocations: 79.44 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.414, allocations: 0 / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004505/0.4144, allocations: 129.5 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/0.4145, allocations: 51.41 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.788e-05/0.4146, allocations: 113.8 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.4146, allocations: 25.7 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.815e-05/0.4147, allocations: 88.14 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.959e-05/0.4147, allocations: 23.66 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.477e-05/0.4148, allocations: 21.7 kB / 1.03 GB, free: 14.26 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.4149, allocations: 318.8 kB / 1.031 GB, free: 13.94 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.782e-05/0.415, allocations: 23.97 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.4152, allocations: 64.27 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000237/0.4154, allocations: 96.12 kB / 1.031 GB, free: 13.73 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.4154, allocations: 3.938 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002613/0.4157, allocations: 109.6 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.4157, allocations: 4 kB / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.4157, allocations: 0 / 1.031 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.4157, allocations: 4 kB / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001238/0.4159, allocations: 28.05 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.4159, allocations: 0 / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.544e-05/0.416, allocations: 11.98 kB / 1.031 GB, free: 13.56 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.416, allocations: 4 kB / 1.031 GB, free: 13.56 MB / 0.8106 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.0001139/0.4161, allocations: 121.7 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.366e-05/0.4161, allocations: 3.906 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003052/0.4164, allocations: 118.2 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.4164, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.4165, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.4165, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004764/0.4169, allocations: 362.5 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.417, allocations: 0 / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.257e-05/0.417, allocations: 15.94 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.417, allocations: 0 / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.4171, allocations: 12.17 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4171, allocations: 3.938 kB / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.4171, allocations: 3.938 kB / 1.032 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002991/0.4174, allocations: 195.4 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.76e-05/0.4174, allocations: 81.09 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.4175, allocations: 4.297 kB / 1.032 GB, free: 12.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.849e-05/0.4176, allocations: 15.97 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.4176, allocations: 4 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.4177, allocations: 7.938 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.94e-05/0.4177, allocations: 87.27 kB / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4177, allocations: 0 / 1.032 GB, free: 12.44 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002522/0.418, allocations: 23.84 kB / 1.032 GB, free: 12.41 MB / 0.8106 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.00019/0.4182, allocations: 103.2 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002827/0.4185, allocations: 75.88 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.4185, allocations: 0 / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.4186, allocations: 27.98 kB / 1.032 GB, free: 12.2 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002685/0.4189, allocations: 11.98 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000363/0.4192, allocations: 138.1 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.4196, allocations: 0.6848 MB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.271e-05/0.4196, allocations: 7.938 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.604e-05/0.4196, allocations: 11.44 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of SimCode: time 3.8e-07/0.4196, allocations: 0 / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of Templates: time 0.003514/0.4232, allocations: 0.8258 MB / 1.034 GB, free: 10.48 MB / 0.8106 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=480 -s cvode -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/jenkins1/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