Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 106.8 kB / 15.99 MB, free: 6.359 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.001237/0.001238, allocations: 196.8 kB / 16.91 MB, free: 6.191 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.317/1.317, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.546/2.546, allocations: 469.8 MB / 0.7427 GB, free: 3.637 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 69.52 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3049, allocations: 159.1 MB / 1.064 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001908/0.3068, allocations: 0.7577 MB / 1.065 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001351/0.3082, allocations: 1.081 MB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.8e-05/0.3083, allocations: 0 / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.967e-05/0.3083, allocations: 3.938 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.476e-05/0.3084, allocations: 4 kB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002418/0.3086, allocations: 43.89 kB / 1.066 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.33e-05/0.3087, allocations: 63.84 kB / 1.066 GB, free: 13.16 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.3088, allocations: 8 kB / 1.066 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 7.112e-05/0.3089, allocations: 31.91 kB / 1.066 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.678e-05/0.309, allocations: 31.84 kB / 1.066 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.607e-05/0.309, allocations: 8 kB / 1.066 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.127e-05/0.3091, allocations: 19.98 kB / 1.066 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.08e-05/0.3091, allocations: 15.98 kB / 1.066 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.447e-05/0.3091, allocations: 35.84 kB / 1.066 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 9.891e-05/0.3092, allocations: 47.91 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.3092, allocations: 4 kB / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.022e-06/0.3093, allocations: 0 / 1.066 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.3093, 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006054/0.3099, allocations: 379.6 kB / 1.067 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.3099, allocations: 12.62 kB / 1.067 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.843e-05/0.31, allocations: 8.844 kB / 1.067 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.3101, allocations: 176.2 kB / 1.067 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.3101, allocations: 8.312 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.3101, allocations: 4.375 kB / 1.067 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.3104, allocations: 82.2 kB / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.3104, allocations: 192 / 1.067 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.3104, allocations: 7.938 kB / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.3104, allocations: 0 / 1.067 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001934/0.3106, allocations: 55.95 kB / 1.067 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005068/0.3111, allocations: 308.7 kB / 1.067 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.3113, allocations: 86.47 kB / 1.067 GB, free: 11.7 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.3115, allocations: 40.84 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.3115, allocations: 3.984 kB / 1.067 GB, free: 11.66 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002181/0.3117, allocations: 91.5 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.3117, allocations: 4 kB / 1.067 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0004741/0.3122, allocations: 177.4 kB / 1.068 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.3122, allocations: 55.41 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.457e-05/0.3123, allocations: 105.8 kB / 1.068 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.3124, allocations: 33.7 kB / 1.068 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.596e-05/0.3124, allocations: 88.36 kB / 1.068 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.3125, allocations: 27.64 kB / 1.068 GB, free: 11.03 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.502e-05/0.3125, allocations: 33.81 kB / 1.068 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.3127, allocations: 322.8 kB / 1.068 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.3128, allocations: 39.97 kB / 1.068 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.3129, allocations: 62.55 kB / 1.068 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002299/0.3132, allocations: 106.4 kB / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3132, allocations: 0 / 1.068 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003086/0.3135, allocations: 141.4 kB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.3135, allocations: 4 kB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.3135, allocations: 0 / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.3135, allocations: 4 kB / 1.069 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001264/0.3137, allocations: 27.92 kB / 1.069 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.3137, allocations: 0 / 1.069 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.11e-05/0.3138, allocations: 23.83 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.3138, allocations: 4 kB / 1.069 GB, free: 10.24 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001039/0.3139, allocations: 129.8 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.398e-05/0.3139, allocations: 3.984 kB / 1.069 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003299/0.3142, allocations: 145.9 kB / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3142, allocations: 0 / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3143, allocations: 4.25 kB / 1.069 GB, free: 9.945 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3143, allocations: 3.984 kB / 1.069 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005476/0.3148, allocations: 414.7 kB / 1.069 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3148, allocations: 0 / 1.069 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.219e-05/0.3149, allocations: 15.98 kB / 1.069 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.3149, allocations: 3.938 kB / 1.069 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.3149, allocations: 0 / 1.069 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3149, allocations: 0 / 1.069 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.315, allocations: 8 kB / 1.069 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003462/0.3153, allocations: 227.4 kB / 1.07 GB, free: 9.215 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/0.3154, allocations: 92.94 kB / 1.07 GB, free: 9.105 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.3154, allocations: 4 kB / 1.07 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.3155, allocations: 7.984 kB / 1.07 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.133e-05/0.3155, allocations: 8 kB / 1.07 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.3156, allocations: 15.92 kB / 1.07 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.405e-05/0.3156, allocations: 79.28 kB / 1.07 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3156, allocations: 0 / 1.07 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002365/0.3159, allocations: 20 kB / 1.07 GB, free: 8.973 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000138/0.316, allocations: 103.2 kB / 1.07 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003095/0.3163, allocations: 115.8 kB / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3163, allocations: 0 / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.3165, allocations: 47.95 kB / 1.07 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002435/0.3167, allocations: 10.41 kB / 1.07 GB, free: 8.695 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003805/0.3171, allocations: 200.8 kB / 1.07 GB, free: 8.469 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.3175, allocations: 0.6846 MB / 1.071 GB, free: 7.758 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.746e-05/0.3176, allocations: 23.36 kB / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/0.3176, allocations: 0 / 1.071 GB, free: 7.734 MB / 0.8419 GB Notification: Performance of Templates: time 0.002796/0.3204, allocations: 1.084 MB / 1.072 GB, free: 6.656 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches