Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.Integers.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pul.y|pul1.y|pul2.y|pul3.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse") translateModel(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pul.y|pul1.y|pul2.y|pul3.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 100.1 kB / 15.88 MB, free: 12 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.001746/0.001746, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.378/1.378, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.654/2.654, allocations: 461.8 MB / 0.7348 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 65.86 kB / 0.8991 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.3043, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.002206/0.3065, allocations: 1.015 MB / 1.054 GB, free: 7.312 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001804/0.3084, allocations: 1.498 MB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.15e-05/0.3085, allocations: 8 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.97e-05/0.3085, allocations: 7.875 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.3087, allocations: 43.62 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009179/0.3096, allocations: 409.7 kB / 1.056 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004124/0.31, allocations: 419.1 kB / 1.056 GB, free: 4.941 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.3102, allocations: 45.66 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002014/0.3104, allocations: 155.5 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.3106, allocations: 123.5 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 6.717e-05/0.3106, allocations: 24 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.3107, allocations: 31.98 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.563e-05/0.3108, allocations: 35.78 kB / 1.056 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.311, allocations: 135.5 kB / 1.057 GB, free: 4.402 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003221/0.3113, allocations: 383.3 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3113, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3113, allocations: 7.875 kB / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.3113, allocations: 0 / 1.057 GB, free: 4.02 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007877/0.3121, allocations: 0.6301 MB / 1.058 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.3122, allocations: 16.03 kB / 1.058 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.797e-05/0.3123, allocations: 28.66 kB / 1.058 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001788/0.3124, allocations: 223 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.3125, allocations: 20.36 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.683e-05/0.3125, allocations: 24.38 kB / 1.058 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001856/0.3127, allocations: 117.6 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.3127, allocations: 4.188 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.3128, allocations: 3.938 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.3128, allocations: 7.984 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001109/0.3129, allocations: 59.91 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008962/0.3138, allocations: 0.8756 MB / 1.059 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.314, allocations: 114.4 kB / 1.059 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.084e-05/0.3141, allocations: 51.48 kB / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.3141, allocations: 4 kB / 1.059 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002817/0.3144, allocations: 172.5 kB / 1.059 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.3144, allocations: 3.938 kB / 1.059 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16): time 0.0004498/0.3148, allocations: 225.3 kB / 1.059 GB, free: 1.191 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.037e-05/0.3149, allocations: 140.4 kB / 1.06 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002336/0.3151, allocations: 244.9 kB / 1.06 GB, free: 0.7734 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.708e-05/0.3152, allocations: 37.7 kB / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.3153, allocations: 132.4 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.3154, allocations: 35.61 kB / 1.06 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001703/0.3155, allocations: 85.66 kB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.3156, allocations: 342.8 kB / 1.06 GB, free: 132 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003077/0.316, allocations: 140.2 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003259/0.3163, allocations: 226.7 kB / 1.061 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004292/0.3167, allocations: 368.9 kB / 1.061 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.3167, allocations: 0 / 1.061 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009085/0.3177, allocations: 0.5506 MB / 1.062 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.331e-05/0.3178, allocations: 140.4 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3178, allocations: 4 kB / 1.062 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.3178, allocations: 4 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.27e-05/0.3179, allocations: 19.92 kB / 1.062 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.3179, allocations: 4 kB / 1.062 GB, free: 14.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006538/0.3186, allocations: 123.6 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.697e-05/0.3186, allocations: 23.98 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,pul3.booPul.y,$PRE.pul3.booPul.y,pul3.y,$whenCondition5,$whenCondition6,pul1.booPul.y,$PRE.pul1.booPul.y,pul1.y,$whenCondition3,$whenCondition4,pul2.booPul.y,$PRE.pul2.booPul.y,pul2.y,$whenCondition1,$whenCondition2,pul.booPul.y,$PRE.pul.booPul.y,pul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 4 * 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.0001568/0.3188, allocations: 153.7 kB / 1.062 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/0.3188, allocations: 19.8 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.282e-05/0.3189, allocations: 21.25 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3189, allocations: 0 / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.3189, allocations: 8.938 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3189, allocations: 7.922 kB / 1.062 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002305/0.3191, allocations: 257.4 kB / 1.062 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.3192, allocations: 0 / 1.062 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.088e-05/0.3192, allocations: 12 kB / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.3192, allocations: 0 / 1.062 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.3192, allocations: 7.984 kB / 1.062 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.165e-06/0.3192, allocations: 0 / 1.062 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3192, allocations: 7.938 kB / 1.062 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002798/0.3195, allocations: 227.3 kB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.032e-05/0.3196, allocations: 100.8 kB / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.3196, allocations: 0 / 1.063 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.352e-05/0.3197, allocations: 15.92 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/0.3197, allocations: 15.92 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.3198, allocations: 8 kB / 1.063 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000144/0.3199, allocations: 172.4 kB / 1.063 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3199, allocations: 4 kB / 1.063 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003264/0.3203, allocations: 64 kB / 1.063 GB, free: 13.2 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition7,$whenCondition8,pul3.y,pul3.booPul.y,$whenCondition5,$whenCondition6,pul1.y,pul1.booPul.y,$whenCondition3,$whenCondition4,pul2.y,pul2.booPul.y,$whenCondition1,$whenCondition2,pul.y,pul.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001465/0.3204, allocations: 111.2 kB / 1.063 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006621/0.3211, allocations: 0.5276 MB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3211, allocations: 4.125 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.3212, allocations: 87.84 kB / 1.064 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000413/0.3216, allocations: 64.31 kB / 1.064 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005939/0.3223, allocations: 409.7 kB / 1.064 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.3225, allocations: 0.7284 MB / 1.065 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.21e-05/0.3226, allocations: 23.42 kB / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of SimCode: time 5.01e-07/0.3226, allocations: 0 / 1.065 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of Templates: time 0.005518/0.3281, allocations: 3.478 MB / 1.068 GB, free: 7.695 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches