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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001002/0.001002, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 180.5 kB / 16.92 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.422/1.422, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.37/2.37, allocations: 390.9 MB / 0.667 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000409/0.0004093, allocations: 12 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7629/0.7634, allocations: 142.4 MB / 0.9557 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.0008055/0.7642, allocations: 406 kB / 0.9561 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001165/0.7654, allocations: 1.049 MB / 0.9571 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.909e-05/0.7655, allocations: 0 / 0.9571 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.648e-05/0.7655, allocations: 5.031 kB / 0.9571 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.143e-05/0.7655, allocations: 0 / 0.9571 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002375/0.7658, allocations: 49.95 kB / 0.9572 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.755e-05/0.7659, allocations: 43.86 kB / 0.9572 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.518e-05/0.766, allocations: 16.91 kB / 0.9572 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.71e-05/0.766, allocations: 10.88 kB / 0.9572 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.605e-05/0.7661, allocations: 26.09 kB / 0.9573 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.7661, allocations: 2.562 kB / 0.9573 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.316e-05/0.7662, allocations: 15.64 kB / 0.9573 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.753e-05/0.7662, allocations: 6.812 kB / 0.9573 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.244e-05/0.7663, allocations: 50.95 kB / 0.9573 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.784e-05/0.7664, allocations: 37.95 kB / 0.9574 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.7664, allocations: 0 / 0.9574 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.814e-06/0.7664, allocations: 0 / 0.9574 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.208e-06/0.7664, allocations: 0 / 0.9574 GB, free: 6.449 MB / 0.7169 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.0004809/0.7669, allocations: 366.5 kB / 0.9577 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.7669, allocations: 13 kB / 0.9577 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.767, allocations: 8 kB / 0.9578 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.001e-05/0.767, allocations: 162.7 kB / 0.9579 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.7671, allocations: 5.422 kB / 0.9579 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.472e-05/0.7671, allocations: 7.594 kB / 0.9579 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001996/0.7673, allocations: 73.19 kB / 0.958 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-06/0.7673, allocations: 1.438 kB / 0.958 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.7673, allocations: 11.92 kB / 0.958 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.7673, allocations: 1.062 kB / 0.958 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.7675, allocations: 49.69 kB / 0.9581 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003664/0.7679, allocations: 279.9 kB / 0.9583 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.7681, allocations: 66.33 kB / 0.9584 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.7682, allocations: 36.67 kB / 0.9584 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.7682, allocations: 9.281 kB / 0.9584 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002079/0.7685, allocations: 75.47 kB / 0.9585 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.7685, allocations: 0 / 0.9585 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004171/0.7689, allocations: 147.4 kB / 0.9586 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.985e-05/0.7689, allocations: 53.56 kB / 0.9587 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.614e-05/0.769, allocations: 105.4 kB / 0.9588 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.769, allocations: 26.92 kB / 0.9588 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.827e-05/0.769, allocations: 92.95 kB / 0.9589 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.997e-05/0.7691, allocations: 23.05 kB / 0.9589 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.395e-05/0.7691, allocations: 15.78 kB / 0.9589 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.416e-05/0.7691, allocations: 317.1 kB / 0.9592 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.7693, allocations: 31.5 kB / 0.9593 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.7694, allocations: 70.64 kB / 0.9593 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.7696, allocations: 109.3 kB / 0.9594 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.7696, allocations: 0 / 0.9594 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002674/0.7699, allocations: 132.6 kB / 0.9596 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.7699, allocations: 4.688 kB / 0.9596 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.7699, allocations: 1.219 kB / 0.9596 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.7699, allocations: 2.094 kB / 0.9596 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.77, allocations: 22.05 kB / 0.9596 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.7701, allocations: 3.156 kB / 0.9596 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.975e-05/0.7701, allocations: 11.77 kB / 0.9596 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.7701, allocations: 6.875 kB / 0.9596 GB, free: 4.359 MB / 0.7169 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 6.461e-05/0.7702, allocations: 123.4 kB / 0.9597 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.099e-05/0.7702, allocations: 2.625 kB / 0.9597 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002819/0.7705, allocations: 132.8 kB / 0.9599 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.7705, allocations: 1.094 kB / 0.9599 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.7705, allocations: 0 / 0.9599 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.7705, allocations: 0 / 0.9599 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003715/0.7709, allocations: 374.3 kB / 0.9602 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.7709, allocations: 4 kB / 0.9602 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.313e-05/0.771, allocations: 10.72 kB / 0.9602 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.771, allocations: 3.938 kB / 0.9602 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.398e-06/0.771, allocations: 5.359 kB / 0.9602 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.771, allocations: 0 / 0.9602 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.771, allocations: 1.375 kB / 0.9602 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.7713, allocations: 211.8 kB / 0.9605 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.359e-05/0.7713, allocations: 87.75 kB / 0.9605 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.755e-05/0.7714, allocations: 0 / 0.9605 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.585e-05/0.7715, allocations: 12.23 kB / 0.9605 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.474e-05/0.7715, allocations: 6.75 kB / 0.9606 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.7715, allocations: 10.69 kB / 0.9606 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.617e-05/0.7715, allocations: 83.39 kB / 0.9606 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7716, allocations: 1.375 kB / 0.9606 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002408/0.7718, allocations: 15 kB / 0.9607 GB, free: 3.406 MB / 0.7169 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.0001331/0.7719, allocations: 110.4 kB / 0.9608 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002817/0.7722, allocations: 86.75 kB / 0.9608 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.7722, allocations: 0 / 0.9608 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000119/0.7724, allocations: 32.73 kB / 0.9609 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.7726, allocations: 13.58 kB / 0.9609 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002913/0.7729, allocations: 175.2 kB / 0.9611 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.7731, allocations: 0.6864 MB / 0.9617 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.666e-05/0.7731, allocations: 10.19 kB / 0.9617 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.7731, allocations: 0 / 0.9617 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of Templates: time 0.00228/0.7754, allocations: 0.894 MB / 0.9626 GB, free: 1.914 MB / 0.7169 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/jenkins1/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