Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.352/1.352, allocations: 251.9 MB / 266.9 MB, free: 11.06 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 184.5 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.929/1.929, allocations: 205.4 MB / 0.5775 GB, free: 20.23 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008567/0.0008567, allocations: 88.33 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003529/0.0003529, allocations: 9.531 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2505, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1911/0.4417, allocations: 131.7 MB / 1.029 GB, free: 12.08 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/0.442, allocations: 75.95 kB / 1.029 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003152/0.4452, allocations: 0.8956 MB / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.346e-06/0.4453, allocations: 0 / 1.03 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.375e-05/0.4453, allocations: 0 / 1.03 GB, free: 11.11 MB / 0.6823 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.0006493/0.446, allocations: 371.2 kB / 1.03 GB, free: 10.7 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 7.016e-05/0.446, allocations: 8.031 kB / 1.03 GB, free: 10.69 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.456e-05/0.4461, allocations: 7.906 kB / 1.03 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.4463, allocations: 175 kB / 1.03 GB, free: 10.47 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.4463, allocations: 0 / 1.03 GB, free: 10.47 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.293e-05/0.4463, allocations: 8 kB / 1.03 GB, free: 10.46 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.4466, allocations: 73.59 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.4466, allocations: 4 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.4467, allocations: 0 / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.4467, allocations: 0 / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002144/0.4469, allocations: 51.95 kB / 1.03 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006698/0.4476, allocations: 300.7 kB / 1.031 GB, free: 9.984 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001986/0.4478, allocations: 62.48 kB / 1.031 GB, free: 9.914 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.839e-05/0.4478, allocations: 4 kB / 1.031 GB, free: 9.91 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.4481, allocations: 79.5 kB / 1.031 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.823e-06/0.4481, allocations: 0 / 1.031 GB, free: 9.82 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0005044/0.4486, allocations: 141.6 kB / 1.031 GB, free: 9.676 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.4487, allocations: 55.34 kB / 1.031 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.907e-05/0.4488, allocations: 100.9 kB / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.4488, allocations: 33.7 kB / 1.031 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.101e-05/0.4489, allocations: 88.11 kB / 1.031 GB, free: 9.375 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.93e-05/0.4489, allocations: 27.73 kB / 1.031 GB, free: 9.348 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.449, allocations: 0 / 1.031 GB, free: 9.348 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001775/0.4491, allocations: 314.8 kB / 1.031 GB, free: 9.031 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.4493, allocations: 31.97 kB / 1.031 GB, free: 9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.4494, allocations: 68.27 kB / 1.032 GB, free: 8.918 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/0.4495, allocations: 31.98 kB / 1.032 GB, free: 8.887 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.4495, allocations: 0 / 1.032 GB, free: 8.887 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002858/0.4498, allocations: 129.4 kB / 1.032 GB, free: 8.754 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.4498, allocations: 8 kB / 1.032 GB, free: 8.746 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.4498, allocations: 0 / 1.032 GB, free: 8.746 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.4499, allocations: 4.125 kB / 1.032 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.45, allocations: 24.11 kB / 1.032 GB, free: 8.719 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.45, allocations: 4 kB / 1.032 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.268e-05/0.4501, allocations: 23.86 kB / 1.032 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.4501, allocations: 3.953 kB / 1.032 GB, free: 8.688 MB / 0.6823 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.0001156/0.4502, allocations: 117.8 kB / 1.032 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.4503, allocations: 256 / 1.032 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003166/0.4506, allocations: 122 kB / 1.032 GB, free: 8.441 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.4506, allocations: 0 / 1.032 GB, free: 8.441 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4506, allocations: 4 kB / 1.032 GB, free: 8.438 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.4506, allocations: 0 / 1.032 GB, free: 8.438 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004829/0.4511, allocations: 378.4 kB / 1.032 GB, free: 8.012 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4511, allocations: 0 / 1.032 GB, free: 8.012 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.978e-05/0.4512, allocations: 15.92 kB / 1.032 GB, free: 7.996 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.4512, allocations: 0 / 1.032 GB, free: 7.996 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.4512, allocations: 8 kB / 1.032 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.4512, allocations: 4 kB / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.4512, allocations: 0 / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003185/0.4516, allocations: 200.1 kB / 1.033 GB, free: 7.773 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.562e-05/0.4516, allocations: 93.02 kB / 1.033 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.4516, allocations: 0 / 1.033 GB, free: 7.664 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.4518, allocations: 11.98 kB / 1.033 GB, free: 7.652 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.86e-05/0.4518, allocations: 4 kB / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.4518, allocations: 0 / 1.033 GB, free: 7.648 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.991e-05/0.4519, allocations: 91.22 kB / 1.033 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4519, allocations: 0 / 1.033 GB, free: 7.559 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002214/0.4521, allocations: 12 kB / 1.033 GB, free: 7.547 MB / 0.6823 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.0001567/0.4523, allocations: 111.1 kB / 1.033 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002788/0.4526, allocations: 79.86 kB / 1.033 GB, free: 7.348 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.4526, allocations: 256 / 1.033 GB, free: 7.348 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.4527, allocations: 43.98 kB / 1.033 GB, free: 7.305 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.4529, allocations: 9.359 kB / 1.033 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003768/0.4533, allocations: 140.8 kB / 1.033 GB, free: 7.125 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.4536, allocations: 0.6926 MB / 1.034 GB, free: 6.406 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 3.622e-05/0.4537, allocations: 4.188 kB / 1.034 GB, free: 6.402 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.541e-05/0.4537, allocations: 11.44 kB / 1.034 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of SimCode: time 3.2e-07/0.4537, allocations: 0 / 1.034 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of Templates: time 0.002803/0.4565, allocations: 0.5787 MB / 1.034 GB, free: 5.82 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches