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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.386/2.386, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001124/0.001124, allocations: 186.7 kB / 498.1 MB, free: 5.695 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.748/1.748, allocations: 223.2 MB / 0.7949 GB, free: 17.75 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.0008888/0.0008889, allocations: 92.31 kB / 0.9346 GB, free: 6.082 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003878/0.0003879, allocations: 14.34 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3278, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1879/0.5158, allocations: 149.2 MB / 1.369 GB, free: 12.71 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.516, allocations: 71.95 kB / 1.369 GB, free: 12.64 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00338/0.5194, allocations: 1.121 MB / 1.37 GB, free: 11.52 MB / 0.8698 GB Notification: Performance of FrontEnd: time 6.752e-06/0.5195, allocations: 4 kB / 1.37 GB, free: 11.51 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.5195, allocations: 0 / 1.37 GB, free: 11.51 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.0004892/0.52, allocations: 367.2 kB / 1.37 GB, free: 11.11 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.52, allocations: 12.02 kB / 1.37 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.818e-05/0.5201, allocations: 7.906 kB / 1.37 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001245/0.5202, allocations: 170.9 kB / 1.37 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.561e-05/0.5202, allocations: 4 kB / 1.37 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.5202, allocations: 8 kB / 1.37 GB, free: 10.87 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002021/0.5205, allocations: 77.58 kB / 1.37 GB, free: 10.79 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.5205, allocations: 3.938 kB / 1.37 GB, free: 10.78 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.5205, allocations: 4 kB / 1.37 GB, free: 10.78 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.5205, allocations: 0 / 1.37 GB, free: 10.78 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.5207, allocations: 47.95 kB / 1.37 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005397/0.5212, allocations: 304.8 kB / 1.371 GB, free: 10.38 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001631/0.5214, allocations: 66.48 kB / 1.371 GB, free: 10.31 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.5214, allocations: 0 / 1.371 GB, free: 10.31 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002365/0.5217, allocations: 79.5 kB / 1.371 GB, free: 10.22 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.5217, allocations: 0 / 1.371 GB, free: 10.22 MB / 0.8698 GB Notification: Performance of matching and sorting (n=7): time 0.0004375/0.5221, allocations: 141.5 kB / 1.371 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/0.5222, allocations: 59.36 kB / 1.371 GB, free: 10 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.685e-05/0.5223, allocations: 101 kB / 1.371 GB, free: 9.898 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.5223, allocations: 33.7 kB / 1.371 GB, free: 9.859 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.008e-05/0.5224, allocations: 84.14 kB / 1.371 GB, free: 9.773 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/0.5224, allocations: 19.88 kB / 1.371 GB, free: 9.754 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-06/0.5224, allocations: 0 / 1.371 GB, free: 9.754 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.5225, allocations: 318.8 kB / 1.372 GB, free: 9.434 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.5226, allocations: 31.97 kB / 1.372 GB, free: 9.402 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.5228, allocations: 64.28 kB / 1.372 GB, free: 9.324 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001178/0.5229, allocations: 39.91 kB / 1.372 GB, free: 9.285 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5229, allocations: 4 kB / 1.372 GB, free: 9.281 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002856/0.5232, allocations: 129.5 kB / 1.372 GB, free: 9.148 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.5232, allocations: 4 kB / 1.372 GB, free: 9.145 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.5233, allocations: 4 kB / 1.372 GB, free: 9.141 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.5233, allocations: 4.125 kB / 1.372 GB, free: 9.137 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001273/0.5234, allocations: 23.92 kB / 1.372 GB, free: 9.113 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.5234, allocations: 0 / 1.372 GB, free: 9.113 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.5235, allocations: 19.88 kB / 1.372 GB, free: 9.094 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.5236, allocations: 4 kB / 1.372 GB, free: 9.09 MB / 0.8698 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 9.916e-05/0.5237, allocations: 113.8 kB / 1.372 GB, free: 8.969 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.29e-05/0.5237, allocations: 11.91 kB / 1.372 GB, free: 8.957 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003023/0.524, allocations: 114 kB / 1.372 GB, free: 8.836 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.524, allocations: 0 / 1.372 GB, free: 8.836 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.524, allocations: 4 kB / 1.372 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.524, allocations: 3.984 kB / 1.372 GB, free: 8.828 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004765/0.5245, allocations: 374.6 kB / 1.373 GB, free: 8.406 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.5245, allocations: 3.938 kB / 1.373 GB, free: 8.402 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.471e-05/0.5246, allocations: 19.92 kB / 1.373 GB, free: 8.383 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.5246, allocations: 0 / 1.373 GB, free: 8.383 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.5246, allocations: 4 kB / 1.373 GB, free: 8.379 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.5246, allocations: 0 / 1.373 GB, free: 8.379 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.5246, allocations: 3.953 kB / 1.373 GB, free: 8.375 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.5249, allocations: 211.4 kB / 1.373 GB, free: 8.152 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.69e-05/0.525, allocations: 77.11 kB / 1.373 GB, free: 8.059 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.525, allocations: 0 / 1.373 GB, free: 8.059 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.5251, allocations: 11.98 kB / 1.373 GB, free: 8.047 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.5252, allocations: 11.95 kB / 1.373 GB, free: 8.035 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.132e-05/0.5252, allocations: 7.984 kB / 1.373 GB, free: 8.027 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.9e-05/0.5253, allocations: 83.47 kB / 1.373 GB, free: 7.945 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1e-07/0.5253, allocations: 0 / 1.373 GB, free: 7.945 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002439/0.5255, allocations: 24 kB / 1.373 GB, free: 7.922 MB / 0.8698 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.000199/0.5257, allocations: 118.9 kB / 1.373 GB, free: 7.797 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002712/0.526, allocations: 84.06 kB / 1.373 GB, free: 7.715 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.526, allocations: 4.062 kB / 1.373 GB, free: 7.711 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.5261, allocations: 36.52 kB / 1.373 GB, free: 7.676 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001815/0.5263, allocations: 9.094 kB / 1.373 GB, free: 7.668 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003547/0.5267, allocations: 148.8 kB / 1.373 GB, free: 7.492 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.527, allocations: 0.6887 MB / 1.374 GB, free: 6.777 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.551e-05/0.527, allocations: 4.359 kB / 1.374 GB, free: 6.773 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.376e-05/0.5271, allocations: 11.44 kB / 1.374 GB, free: 6.762 MB / 0.8698 GB Notification: Performance of SimCode: time 9.71e-07/0.5271, allocations: 0 / 1.374 GB, free: 6.762 MB / 0.8698 GB Notification: Performance of Templates: time 0.002894/0.53, allocations: 0.701 MB / 1.375 GB, free: 6.066 MB / 0.8698 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches