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.001552/0.001558, allocations: 109.1 kB / 16.27 MB, free: 6.41 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.001859/0.001859, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.434/1.434, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.7/2.7, allocations: 469.4 MB / 0.7427 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 65.19 kB / 0.9088 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3402, allocations: 159.1 MB / 1.064 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.002092/0.3423, allocations: 0.6698 MB / 1.065 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001358/0.3437, allocations: 1.065 MB / 1.066 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.314e-05/0.3438, allocations: 3.938 kB / 1.066 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.217e-05/0.3438, allocations: 3.938 kB / 1.066 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.868e-05/0.3439, allocations: 11.91 kB / 1.066 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002869/0.3442, allocations: 47.84 kB / 1.066 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.822e-05/0.3443, allocations: 47.84 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.3444, allocations: 11.98 kB / 1.066 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.152e-05/0.3445, allocations: 27.92 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.298e-05/0.3446, allocations: 19.92 kB / 1.066 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.3446, allocations: 4 kB / 1.066 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.957e-05/0.3447, allocations: 19.98 kB / 1.066 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.372e-05/0.3447, allocations: 15.91 kB / 1.066 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.3447, allocations: 15.94 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001332/0.3449, allocations: 55.83 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3449, allocations: 0 / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3449, allocations: 0 / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.3449, allocations: 0 / 1.066 GB, free: 12.96 MB / 0.8419 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.0005858/0.3455, allocations: 371.7 kB / 1.067 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.3455, allocations: 11.97 kB / 1.067 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.3456, allocations: 4.938 kB / 1.067 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.3457, allocations: 176.2 kB / 1.067 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.3457, allocations: 12.38 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.3457, allocations: 4.312 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002117/0.3459, allocations: 70.2 kB / 1.067 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.346, allocations: 4.188 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.346, allocations: 3.938 kB / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.346, allocations: 0 / 1.067 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001994/0.3462, allocations: 43.95 kB / 1.067 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004276/0.3467, allocations: 276.9 kB / 1.067 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.3468, allocations: 66.42 kB / 1.067 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.347, allocations: 32.97 kB / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.347, allocations: 0 / 1.067 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/0.3472, allocations: 71.38 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.3472, allocations: 4 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004242/0.3476, allocations: 129.5 kB / 1.067 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.3477, allocations: 51.41 kB / 1.067 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.292e-05/0.3478, allocations: 105.8 kB / 1.068 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.3478, allocations: 29.7 kB / 1.068 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 3.875e-05/0.3478, allocations: 80.14 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.3479, allocations: 31.7 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.353e-05/0.3479, allocations: 25.72 kB / 1.068 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.559e-05/0.348, allocations: 318.8 kB / 1.068 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.3481, allocations: 23.98 kB / 1.068 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.3483, allocations: 60.27 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002243/0.3485, allocations: 100.1 kB / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3485, allocations: 0 / 1.068 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002863/0.3488, allocations: 113.6 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.3488, allocations: 8 kB / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.3488, allocations: 0 / 1.068 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.3489, allocations: 4 kB / 1.068 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.349, allocations: 19.92 kB / 1.068 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.349, allocations: 0 / 1.068 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.451e-05/0.3491, allocations: 11.89 kB / 1.068 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.3491, allocations: 4 kB / 1.068 GB, free: 10.48 MB / 0.8419 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.143e-05/0.3492, allocations: 125.8 kB / 1.068 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.451e-05/0.3492, allocations: 4 kB / 1.068 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002912/0.3495, allocations: 106 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.3495, allocations: 3.984 kB / 1.069 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3495, allocations: 4.188 kB / 1.069 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.3495, allocations: 0 / 1.069 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004999/0.35, allocations: 366.4 kB / 1.069 GB, free: 9.809 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.3501, allocations: 0 / 1.069 GB, free: 9.809 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.964e-05/0.3501, allocations: 16.17 kB / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.3501, allocations: 0 / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3502, allocations: 4 kB / 1.069 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3502, allocations: 0 / 1.069 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3502, allocations: 4 kB / 1.069 GB, free: 9.785 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003033/0.3505, allocations: 203.8 kB / 1.069 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.3505, allocations: 85.02 kB / 1.069 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.814e-05/0.3505, allocations: 0 / 1.069 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3507, allocations: 7.984 kB / 1.069 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.221e-05/0.3507, allocations: 11.98 kB / 1.069 GB, free: 9.449 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.3507, allocations: 7.938 kB / 1.069 GB, free: 9.441 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 5.802e-05/0.3508, allocations: 79.28 kB / 1.069 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3508, allocations: 4 kB / 1.069 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000264/0.3511, allocations: 16 kB / 1.069 GB, free: 9.344 MB / 0.8419 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.0001748/0.3513, allocations: 111.6 kB / 1.069 GB, free: 9.227 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002965/0.3516, allocations: 75.88 kB / 1.07 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3516, allocations: 0 / 1.07 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.3517, allocations: 40.28 kB / 1.07 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.352, allocations: 8 kB / 1.07 GB, free: 9.105 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003605/0.3524, allocations: 163.7 kB / 1.07 GB, free: 8.914 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002462/0.3526, allocations: 0.6807 MB / 1.07 GB, free: 8.207 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.591e-05/0.3527, allocations: 15.44 kB / 1.07 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.3527, allocations: 4 kB / 1.07 GB, free: 8.188 MB / 0.8419 GB Notification: Performance of Templates: time 0.002624/0.3553, allocations: 0.9047 MB / 1.071 GB, free: 7.289 MB / 0.8419 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/jenkins1/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