Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.43/2.43, allocations: 393.5 MB / 408.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 179.9 kB / 0.4902 GB, free: 2.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.604/1.604, allocations: 223.1 MB / 0.7992 GB, free: 14.74 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009504/0.0009503, allocations: 103.1 kB / 0.9396 GB, free: 1.934 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004285/0.0004282, allocations: 10.47 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.303, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2074/0.5104, allocations: 150 MB / 1.376 GB, free: 3.562 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002896/0.5108, allocations: 67.97 kB / 1.376 GB, free: 3.496 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003668/0.5145, allocations: 1.111 MB / 1.377 GB, free: 2.383 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.993e-06/0.5145, allocations: 0 / 1.377 GB, free: 2.383 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.5145, allocations: 0 / 1.377 GB, free: 2.383 MB / 0.8698 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.0005441/0.5151, allocations: 375.2 kB / 1.377 GB, free: 1.969 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.131e-05/0.5151, allocations: 12.55 kB / 1.377 GB, free: 1.957 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.844e-05/0.5152, allocations: 11.94 kB / 1.377 GB, free: 1.945 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.5153, allocations: 166.9 kB / 1.377 GB, free: 1.742 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.5153, allocations: 4 kB / 1.377 GB, free: 1.738 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.5153, allocations: 4 kB / 1.377 GB, free: 1.734 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.5156, allocations: 73.66 kB / 1.378 GB, free: 1.656 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.5156, allocations: 0 / 1.378 GB, free: 1.656 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.5156, allocations: 3.938 kB / 1.378 GB, free: 1.652 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.5156, allocations: 0 / 1.378 GB, free: 1.652 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.5159, allocations: 55.95 kB / 1.378 GB, free: 1.598 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006277/0.5165, allocations: 300.8 kB / 1.378 GB, free: 1.254 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001839/0.5167, allocations: 62.55 kB / 1.378 GB, free: 1.184 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.5167, allocations: 4 kB / 1.378 GB, free: 1.18 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00026/0.517, allocations: 75.5 kB / 1.378 GB, free: 1.094 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 4.369e-06/0.517, allocations: 11.92 kB / 1.378 GB, free: 1.082 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004608/0.5175, allocations: 145.5 kB / 1.378 GB, free: 0.9336 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.5176, allocations: 59.36 kB / 1.378 GB, free: 0.8633 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.945e-05/0.5176, allocations: 100.9 kB / 1.378 GB, free: 0.7578 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.5177, allocations: 29.7 kB / 1.378 GB, free: 0.7227 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.5177, allocations: 88.14 kB / 1.378 GB, free: 0.6328 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.355e-05/0.5178, allocations: 15.88 kB / 1.378 GB, free: 0.6172 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-06/0.5178, allocations: 4 kB / 1.378 GB, free: 0.6133 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001248/0.5179, allocations: 318.8 kB / 1.379 GB, free: 300 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.518, allocations: 31.97 kB / 1.379 GB, free: 268 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.5182, allocations: 64.22 kB / 1.379 GB, free: 188 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.5183, allocations: 41.69 kB / 1.379 GB, free: 148 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.5183, allocations: 4 kB / 1.379 GB, free: 144 kB / 0.8698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002838/0.5186, allocations: 125.4 kB / 1.379 GB, free: 12 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.5186, allocations: 8 kB / 1.379 GB, free: 4 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.513e-05/0.5187, allocations: 128 / 1.379 GB, free: 4 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.692e-05/0.5187, allocations: 8.047 kB / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.5188, allocations: 15.94 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.5189, allocations: 4 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.905e-05/0.519, allocations: 15.94 kB / 1.379 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.519, allocations: 8 kB / 1.379 GB, free: 15.95 MB / 0.8855 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 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.5191, allocations: 119.7 kB / 1.379 GB, free: 15.83 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.305e-05/0.5191, allocations: 7.906 kB / 1.379 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003267/0.5194, allocations: 118 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.5195, allocations: 0 / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.5195, allocations: 0 / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.5195, allocations: 3.984 kB / 1.379 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004689/0.52, allocations: 374.4 kB / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.52, allocations: 0 / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.916e-05/0.52, allocations: 12.17 kB / 1.38 GB, free: 15.26 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.5201, allocations: 8 kB / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.5201, allocations: 4.188 kB / 1.38 GB, free: 15.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.5201, allocations: 4 kB / 1.38 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.5201, allocations: 3.953 kB / 1.38 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003029/0.5204, allocations: 211.3 kB / 1.38 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.5204, allocations: 81.11 kB / 1.38 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.5205, allocations: 3.938 kB / 1.38 GB, free: 14.91 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.5206, allocations: 15.98 kB / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.5206, allocations: 7.953 kB / 1.38 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.5207, allocations: 3.984 kB / 1.38 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.728e-05/0.5207, allocations: 79.28 kB / 1.38 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5207, allocations: 4 kB / 1.38 GB, free: 14.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002616/0.521, allocations: 24 kB / 1.38 GB, free: 14.78 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001892/0.5212, allocations: 108 kB / 1.38 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002817/0.5215, allocations: 88.06 kB / 1.38 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.5215, allocations: 0 / 1.38 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.5216, allocations: 39.91 kB / 1.38 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.5218, allocations: 11.94 kB / 1.38 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003866/0.5222, allocations: 140.9 kB / 1.38 GB, free: 14.36 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.5225, allocations: 0.6848 MB / 1.381 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.923e-05/0.5226, allocations: 8.172 kB / 1.381 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.651e-05/0.5226, allocations: 11.44 kB / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of SimCode: time 3.2e-07/0.5226, allocations: 0 / 1.381 GB, free: 13.63 MB / 0.8855 GB Notification: Performance of Templates: time 0.00324/0.5259, allocations: 0.7001 MB / 1.382 GB, free: 12.94 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches