Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_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_latest_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.001313/0.001313, allocations: 101.5 kB / 16.27 MB, free: 5.969 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.001457/0.001457, allocations: 189.2 kB / 17.2 MB, free: 5.594 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.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.01 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.597/2.597, allocations: 482.4 MB / 0.7553 GB, free: 6.988 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 67.39 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7007/0.7026, allocations: 162.2 MB / 1.083 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.00218/0.7048, allocations: 0.687 MB / 1.084 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001156/0.706, allocations: 1.062 MB / 1.085 GB, free: 444 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.688e-05/0.7061, allocations: 1.281 kB / 1.085 GB, free: 444 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.379e-05/0.7061, allocations: 4.641 kB / 1.085 GB, free: 440 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.81e-05/0.7062, allocations: 9.906 kB / 1.085 GB, free: 432 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002403/0.7064, allocations: 55.8 kB / 1.085 GB, free: 396 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.56e-05/0.7065, allocations: 63.28 kB / 1.085 GB, free: 368 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.212e-05/0.7066, allocations: 15.83 kB / 1.085 GB, free: 360 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.418e-05/0.7067, allocations: 26.8 kB / 1.085 GB, free: 348 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.707e-05/0.7067, allocations: 37.47 kB / 1.085 GB, free: 328 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.852e-05/0.7068, allocations: 6.812 kB / 1.085 GB, free: 328 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.242e-05/0.7068, allocations: 24.53 kB / 1.085 GB, free: 320 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.948e-05/0.7069, allocations: 12.69 kB / 1.085 GB, free: 312 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.567e-05/0.7069, allocations: 30.62 kB / 1.085 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001276/0.707, allocations: 72.7 kB / 1.085 GB, free: 264 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.707, allocations: 0 / 1.085 GB, free: 264 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.012e-06/0.707, allocations: 1.031 kB / 1.085 GB, free: 264 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.7071, allocations: 0 / 1.085 GB, free: 264 kB / 0.8262 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.0005663/0.7076, allocations: 382.8 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.7077, allocations: 9.531 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.761e-05/0.7077, allocations: 13.09 kB / 1.085 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.7078, allocations: 170.7 kB / 1.086 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.7079, allocations: 5.078 kB / 1.086 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.173e-05/0.7079, allocations: 10.17 kB / 1.086 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.7081, allocations: 77.22 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.7081, allocations: 192 / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.7082, allocations: 5.906 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.7082, allocations: 1.594 kB / 1.086 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002043/0.7084, allocations: 57.47 kB / 1.086 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005146/0.7089, allocations: 319.8 kB / 1.086 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.7091, allocations: 81.81 kB / 1.086 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.7093, allocations: 48 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.7093, allocations: 1.312 kB / 1.086 GB, free: 15.23 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002212/0.7095, allocations: 91.39 kB / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.7095, allocations: 0 / 1.086 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0005076/0.71, allocations: 175.8 kB / 1.086 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.7101, allocations: 59.86 kB / 1.086 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.048e-05/0.7102, allocations: 108.6 kB / 1.087 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.439e-05/0.7102, allocations: 33.3 kB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.197e-05/0.7103, allocations: 86.94 kB / 1.087 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.7103, allocations: 30.58 kB / 1.087 GB, free: 14.78 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.498e-05/0.7104, allocations: 31.66 kB / 1.087 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.7105, allocations: 318 kB / 1.087 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.7106, allocations: 40.59 kB / 1.087 GB, free: 14.43 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001379/0.7108, allocations: 62.91 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002458/0.711, allocations: 102.6 kB / 1.087 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.711, allocations: 5.062 kB / 1.087 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003278/0.7114, allocations: 145 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.7114, allocations: 5.516 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.177e-06/0.7114, allocations: 1.219 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.7114, allocations: 1.125 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.7116, allocations: 23.94 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.7116, allocations: 1.906 kB / 1.087 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/0.7117, allocations: 16.41 kB / 1.087 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.7117, allocations: 8.531 kB / 1.087 GB, free: 14.25 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.0001002/0.7118, allocations: 125.5 kB / 1.088 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.7118, allocations: 2.812 kB / 1.088 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003511/0.7122, allocations: 152.1 kB / 1.088 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.7122, allocations: 1.062 kB / 1.088 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.7122, allocations: 0 / 1.088 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.7122, allocations: 5.781 kB / 1.088 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005559/0.7127, allocations: 408.9 kB / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.7128, allocations: 0 / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.363e-05/0.7128, allocations: 11.66 kB / 1.088 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.7128, allocations: 3.938 kB / 1.088 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.7129, allocations: 2.266 kB / 1.088 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.7129, allocations: 0 / 1.088 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.7129, allocations: 6.047 kB / 1.088 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000356/0.7132, allocations: 236 kB / 1.088 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.702e-05/0.7133, allocations: 83.91 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.7133, allocations: 3.234 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.7134, allocations: 8.734 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.7135, allocations: 8.484 kB / 1.088 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.7135, allocations: 16.05 kB / 1.088 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.855e-05/0.7135, allocations: 89.66 kB / 1.089 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7136, allocations: 1.781 kB / 1.089 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002478/0.7138, allocations: 15.83 kB / 1.089 GB, free: 13.33 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.0001514/0.714, allocations: 109.3 kB / 1.089 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003135/0.7143, allocations: 103.1 kB / 1.089 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.7143, allocations: 4.062 kB / 1.089 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.7144, allocations: 52.06 kB / 1.089 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002458/0.7147, allocations: 10.14 kB / 1.089 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003672/0.7151, allocations: 196.5 kB / 1.089 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.7154, allocations: 0.6942 MB / 1.09 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.308e-05/0.7154, allocations: 12.38 kB / 1.09 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of SimCode: time 2.41e-07/0.7154, allocations: 0 / 1.09 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of Templates: time 0.002685/0.7181, allocations: 1.1 MB / 1.091 GB, free: 12.21 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches