Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008833/0.008834, allocations: 98.52 kB / 15.73 MB, free: 6.055 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.002107/0.002107, allocations: 196 kB / 16.68 MB, free: 5.969 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.28/2.28, allocations: 390.2 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001614/0.001614, allocations: 67.91 kB / 0.9508 GB, free: 7.695 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.042/1.044, allocations: 140.4 MB / 1.088 GB, free: 5.559 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002036/1.046, allocations: 0.6801 MB / 1.089 GB, free: 5.129 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001312/1.047, allocations: 1.057 MB / 1.09 GB, free: 4.348 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.419e-05/1.047, allocations: 5.125 kB / 1.09 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.898e-05/1.047, allocations: 4.453 kB / 1.09 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.048e-05/1.047, allocations: 10.41 kB / 1.09 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002853/1.048, allocations: 42.7 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001036/1.048, allocations: 46.34 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/1.048, allocations: 11.47 kB / 1.09 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.651e-05/1.048, allocations: 21.69 kB / 1.09 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.114e-05/1.048, allocations: 25.23 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/1.048, allocations: 8.594 kB / 1.09 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.961e-05/1.048, allocations: 18.16 kB / 1.09 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.097e-05/1.048, allocations: 12.33 kB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.906e-05/1.048, allocations: 20.2 kB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001693/1.048, allocations: 62.31 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/1.048, allocations: 0.5156 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.195e-06/1.048, allocations: 1 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.019e-05/1.048, allocations: 0 / 1.09 GB, free: 4.211 MB / 0.8575 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.0006044/1.049, allocations: 368.3 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/1.049, allocations: 9 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.524e-05/1.049, allocations: 7.984 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.603e-05/1.049, allocations: 167.9 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/1.049, allocations: 10.17 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/1.049, allocations: 3.469 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/1.05, allocations: 68.78 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/1.05, allocations: 192 / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.66e-05/1.05, allocations: 8.781 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-06/1.05, allocations: 5.547 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/1.05, allocations: 39 kB / 1.091 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004453/1.05, allocations: 282.9 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/1.05, allocations: 61.47 kB / 1.091 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/1.051, allocations: 34.2 kB / 1.091 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/1.051, allocations: 6.016 kB / 1.091 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002174/1.051, allocations: 72.53 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/1.051, allocations: 3.938 kB / 1.091 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004309/1.051, allocations: 134.3 kB / 1.091 GB, free: 3.102 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/1.051, allocations: 53.28 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.104e-05/1.051, allocations: 104.5 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/1.051, allocations: 27.66 kB / 1.091 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.885e-05/1.051, allocations: 90.34 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.125e-05/1.051, allocations: 15.72 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.521e-05/1.051, allocations: 26.19 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.836e-05/1.052, allocations: 315.1 kB / 1.092 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/1.052, allocations: 33.45 kB / 1.092 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000115/1.052, allocations: 53.81 kB / 1.092 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002118/1.052, allocations: 97.97 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/1.052, allocations: 3.938 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003129/1.052, allocations: 114.3 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/1.052, allocations: 5.344 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/1.052, allocations: 6.016 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/1.052, allocations: 1.625 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/1.053, allocations: 20.75 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/1.053, allocations: 2.125 kB / 1.092 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.667e-05/1.053, allocations: 11.3 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/1.053, allocations: 4.453 kB / 1.092 GB, free: 2.277 MB / 0.8575 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 7.42e-05/1.053, allocations: 119.2 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/1.053, allocations: 6.359 kB / 1.092 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003079/1.053, allocations: 116.2 kB / 1.092 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/1.053, allocations: 1.344 kB / 1.092 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/1.053, allocations: 0 / 1.092 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/1.053, allocations: 1.219 kB / 1.092 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004147/1.053, allocations: 356.4 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.054, allocations: 0 / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.199e-05/1.054, allocations: 18.89 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/1.054, allocations: 0.8125 kB / 1.093 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/1.054, allocations: 5.766 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/1.054, allocations: 1.312 kB / 1.093 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/1.054, allocations: 4.547 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00029/1.054, allocations: 205.3 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.521e-05/1.054, allocations: 87.44 kB / 1.093 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/1.054, allocations: 6.906 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/1.054, allocations: 8.141 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.82e-05/1.054, allocations: 4.734 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/1.054, allocations: 6.438 kB / 1.093 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.615e-05/1.054, allocations: 85.55 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.11e-07/1.054, allocations: 0.875 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002743/1.054, allocations: 10.97 kB / 1.093 GB, free: 1.402 MB / 0.8575 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.0001534/1.055, allocations: 118 kB / 1.093 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000294/1.055, allocations: 66.7 kB / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/1.055, allocations: 0 / 1.093 GB, free: 1.289 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001226/1.055, allocations: 34.67 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/1.055, allocations: 5.578 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003302/1.056, allocations: 153.1 kB / 1.093 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/1.056, allocations: 0.6832 MB / 1.094 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.233e-05/1.056, allocations: 4.703 kB / 1.094 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.033e-05/1.056, allocations: 11.77 kB / 1.094 GB, free: 444 kB / 0.8575 GB Notification: Performance of SimCode: time 3.71e-07/1.056, allocations: 3.938 kB / 1.094 GB, free: 440 kB / 0.8575 GB Notification: Performance of Templates: time 0.005589/1.062, allocations: 0.8434 MB / 1.095 GB, free: 336 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches