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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001677/0.001677, 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.002297/0.002296, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.444/1.444, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.766/2.766, allocations: 461.9 MB / 0.7342 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 64.17 kB / 0.8984 GB, free: 37.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3563, allocations: 157.4 MB / 1.052 GB, free: 8.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002146/0.3585, allocations: 0.7404 MB / 1.053 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3599, allocations: 1.081 MB / 1.054 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.468e-05/0.36, allocations: 3.938 kB / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.139e-05/0.36, allocations: 0 / 1.054 GB, free: 7 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.705e-05/0.3601, allocations: 7.875 kB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002469/0.3604, allocations: 47.89 kB / 1.054 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.358e-05/0.3605, allocations: 59.91 kB / 1.054 GB, free: 6.887 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.453e-05/0.3606, allocations: 15.89 kB / 1.054 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.245e-05/0.3606, allocations: 23.92 kB / 1.054 GB, free: 6.848 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.976e-05/0.3607, allocations: 39.83 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.3607, allocations: 0 / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.252e-05/0.3608, allocations: 19.92 kB / 1.054 GB, free: 6.789 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.358e-05/0.3608, allocations: 15.98 kB / 1.054 GB, free: 6.773 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.154e-05/0.3609, allocations: 23.84 kB / 1.054 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.361, allocations: 75.75 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3611, allocations: 8 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.11e-07/0.3611, allocations: 0 / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.3611, allocations: 0 / 1.054 GB, free: 6.668 MB / 0.8106 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.0006867/0.3618, allocations: 375.7 kB / 1.055 GB, free: 6.25 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.3618, allocations: 8.031 kB / 1.055 GB, free: 6.242 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.55e-05/0.3619, allocations: 8.844 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001253/0.362, allocations: 168.3 kB / 1.055 GB, free: 6.031 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.362, allocations: 12.38 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.882e-05/0.3621, allocations: 4.375 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/0.3623, allocations: 78.22 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.3623, allocations: 8.109 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.3623, allocations: 7.938 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/0.3623, allocations: 0 / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002163/0.3626, allocations: 55.89 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005365/0.3631, allocations: 304.8 kB / 1.055 GB, free: 5.516 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002184/0.3633, allocations: 90.41 kB / 1.055 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.3635, allocations: 40.83 kB / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.3635, allocations: 0 / 1.055 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002463/0.3638, allocations: 95.36 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 3.416e-06/0.3638, allocations: 3.984 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004929/0.3643, allocations: 169.7 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.3643, allocations: 59.41 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.61e-05/0.3644, allocations: 113.8 kB / 1.056 GB, free: 4.902 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.3644, allocations: 33.7 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.923e-05/0.3645, allocations: 84.36 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.3645, allocations: 31.64 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.3646, allocations: 29.72 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3647, allocations: 318.8 kB / 1.056 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.3648, allocations: 39.91 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001376/0.365, allocations: 66.55 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002363/0.3652, allocations: 98.47 kB / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3652, allocations: 0 / 1.056 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003127/0.3656, allocations: 145.5 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.3656, allocations: 4 kB / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3656, allocations: 0 / 1.057 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.3656, allocations: 7.938 kB / 1.057 GB, free: 4.008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.3657, allocations: 24.22 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.3658, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.521e-05/0.3658, allocations: 15.94 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.3659, allocations: 4 kB / 1.057 GB, free: 3.965 MB / 0.8106 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 9.514e-05/0.366, allocations: 137.8 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.366, allocations: 3.906 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003462/0.3663, allocations: 145.9 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3663, allocations: 0 / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.3664, allocations: 0 / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.3664, allocations: 0 / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005149/0.3669, allocations: 414.8 kB / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.3669, allocations: 0 / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.944e-05/0.367, allocations: 11.98 kB / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.367, allocations: 0 / 1.057 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.367, allocations: 4.094 kB / 1.057 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.367, allocations: 3.938 kB / 1.057 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.367, allocations: 3.938 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/0.3674, allocations: 239.4 kB / 1.058 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.77e-05/0.3674, allocations: 84.95 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.705e-05/0.3675, allocations: 8 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.3676, allocations: 7.984 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.3676, allocations: 7.984 kB / 1.058 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.3677, allocations: 7.938 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.236e-05/0.3677, allocations: 91.27 kB / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3677, allocations: 0 / 1.058 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002518/0.368, allocations: 20 kB / 1.058 GB, free: 2.691 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: 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.0001727/0.3682, allocations: 106.9 kB / 1.058 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003068/0.3685, allocations: 95.88 kB / 1.058 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3685, allocations: 0 / 1.058 GB, free: 2.488 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.3686, allocations: 52.09 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002748/0.3689, allocations: 9.344 kB / 1.058 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003864/0.3693, allocations: 168.7 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.3696, allocations: 0.6926 MB / 1.059 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.776e-05/0.3696, allocations: 8.375 kB / 1.059 GB, free: 1.512 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.166e-05/0.3697, allocations: 15.44 kB / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of SimCode: time 2e-07/0.3697, allocations: 0 / 1.059 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of Templates: time 0.003289/0.373, allocations: 0.9291 MB / 1.06 GB, free: 0.5742 MB / 0.8106 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=480 -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