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.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.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.001033/0.001033, allocations: 96.78 kB / 15.36 MB, free: 0.7344 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.007542/0.007542, allocations: 169.5 kB / 16.26 MB, free: 6.652 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.561/1.561, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.953/2.953, allocations: 462.6 MB / 0.7364 GB, free: 272 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004101/0.0004102, allocations: 12.5 kB / 0.9028 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4255/0.4259, allocations: 159.6 MB / 1.059 GB, free: 5.457 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.0009912/0.4269, allocations: 411.1 kB / 1.059 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001517/0.4285, allocations: 1.065 MB / 1.06 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.677e-05/0.4285, allocations: 0 / 1.06 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.764e-05/0.4285, allocations: 0 / 1.06 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.784e-05/0.4286, allocations: 7.922 kB / 1.06 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.4289, allocations: 35.92 kB / 1.06 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.815e-05/0.429, allocations: 43.91 kB / 1.06 GB, free: 3.895 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.4291, allocations: 15.98 kB / 1.06 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.501e-05/0.4292, allocations: 15.92 kB / 1.06 GB, free: 3.863 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.863e-05/0.4292, allocations: 15.92 kB / 1.06 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.385e-05/0.4293, allocations: 4 kB / 1.06 GB, free: 3.844 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.048e-05/0.4293, allocations: 19.92 kB / 1.06 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.716e-05/0.4294, allocations: 19.91 kB / 1.06 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.714e-05/0.4294, allocations: 41.62 kB / 1.06 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.4296, allocations: 51.84 kB / 1.06 GB, free: 3.707 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.4296, allocations: 4 kB / 1.06 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.854e-06/0.4296, allocations: 0 / 1.06 GB, free: 3.703 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.4296, allocations: 0 / 1.06 GB, free: 3.703 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000605/0.4302, allocations: 383.5 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.4302, allocations: 8.031 kB / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.414e-05/0.4303, allocations: 4.938 kB / 1.061 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.4304, allocations: 168.2 kB / 1.061 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.4304, allocations: 8.375 kB / 1.061 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.4305, allocations: 4.375 kB / 1.061 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002094/0.4307, allocations: 66.22 kB / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.4307, allocations: 192 / 1.061 GB, free: 2.98 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.4307, allocations: 15.92 kB / 1.061 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.4307, allocations: 3.938 kB / 1.061 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.4309, allocations: 51.95 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004648/0.4314, allocations: 272.9 kB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.4316, allocations: 70.48 kB / 1.061 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.4317, allocations: 32.97 kB / 1.061 GB, free: 2.48 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.4318, allocations: 3.984 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.432, allocations: 91.38 kB / 1.061 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.432, allocations: 0 / 1.061 GB, free: 2.375 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004572/0.4325, allocations: 141.5 kB / 1.062 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.4325, allocations: 59.39 kB / 1.062 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.552e-05/0.4326, allocations: 101.9 kB / 1.062 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.4327, allocations: 25.7 kB / 1.062 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.826e-05/0.4327, allocations: 88.12 kB / 1.062 GB, free: 1.93 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/0.4327, allocations: 15.75 kB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.773e-05/0.4328, allocations: 21.66 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.4329, allocations: 322.8 kB / 1.062 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.433, allocations: 27.98 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.4331, allocations: 64.27 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002334/0.4334, allocations: 104.1 kB / 1.062 GB, free: 1.34 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4334, allocations: 4 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002921/0.4337, allocations: 129.4 kB / 1.063 GB, free: 1.203 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.4337, allocations: 5.406 kB / 1.063 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.4337, allocations: 8.125 kB / 1.063 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.4338, allocations: 0 / 1.063 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.4339, allocations: 23.98 kB / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.4339, allocations: 0 / 1.063 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.091e-05/0.434, allocations: 16.17 kB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.434, allocations: 4.188 kB / 1.063 GB, free: 1.148 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 9.897e-05/0.4341, allocations: 121.7 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.4341, allocations: 19.83 kB / 1.063 GB, free: 1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003006/0.4344, allocations: 118 kB / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.4344, allocations: 4 kB / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4345, allocations: 0 / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.4345, allocations: 0 / 1.063 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004583/0.4349, allocations: 374.4 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4349, allocations: 0 / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.579e-05/0.435, allocations: 15.98 kB / 1.063 GB, free: 448 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.435, allocations: 4 kB / 1.063 GB, free: 444 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.435, allocations: 4 kB / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.435, allocations: 0 / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.435, allocations: 0 / 1.063 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003472/0.4354, allocations: 215.3 kB / 1.063 GB, free: 208 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.4355, allocations: 81.11 kB / 1.064 GB, free: 108 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.4355, allocations: 0 / 1.064 GB, free: 108 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.884e-05/0.4356, allocations: 12.03 kB / 1.064 GB, free: 96 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.4356, allocations: 11.97 kB / 1.064 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.4357, allocations: 3.938 kB / 1.064 GB, free: 80 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.755e-05/0.4357, allocations: 83.28 kB / 1.064 GB, free: 16 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4357, allocations: 0 / 1.064 GB, free: 16 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002479/0.436, allocations: 16 kB / 1.064 GB, free: 15.98 MB / 0.8262 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.0001781/0.4362, allocations: 111.2 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002905/0.4365, allocations: 80.08 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.4365, allocations: 4.062 kB / 1.064 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001252/0.4366, allocations: 43.89 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.4369, allocations: 5.547 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003943/0.4373, allocations: 170.5 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.4376, allocations: 0.6809 MB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.327e-05/0.4376, allocations: 4 kB / 1.065 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.537e-05/0.4377, allocations: 11.44 kB / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of SimCode: time 3.11e-07/0.4377, allocations: 0 / 1.065 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of Templates: time 0.003324/0.441, allocations: 0.7423 MB / 1.065 GB, free: 14.07 MB / 0.8262 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 -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