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 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.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.001123/0.001123, allocations: 98.8 kB / 16.02 MB, free: 76 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.001405/0.001404, allocations: 186.9 kB / 16.92 MB, free: 6.75 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.486/1.486, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.769/2.769, allocations: 462.6 MB / 0.737 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003729, allocations: 12.38 kB / 0.9034 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3159, allocations: 159.6 MB / 1.059 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.0009962/0.3169, allocations: 419 kB / 1.06 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001602/0.3185, allocations: 1.065 MB / 1.061 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.735e-05/0.3186, allocations: 0 / 1.061 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.504e-05/0.3187, allocations: 7.922 kB / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.208e-05/0.3188, allocations: 3.984 kB / 1.061 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.3191, allocations: 47.89 kB / 1.061 GB, free: 3.438 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001089/0.3192, allocations: 63.84 kB / 1.061 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.3193, allocations: 11.91 kB / 1.061 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.48e-05/0.3194, allocations: 19.92 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.9e-05/0.3195, allocations: 35.83 kB / 1.061 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.3195, allocations: 4 kB / 1.061 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.693e-05/0.3196, allocations: 19.92 kB / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.299e-05/0.3196, allocations: 7.984 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.457e-05/0.3197, allocations: 53.56 kB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001279/0.3198, allocations: 55.88 kB / 1.061 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3199, allocations: 0 / 1.061 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3199, allocations: 0 / 1.061 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.3199, allocations: 0 / 1.061 GB, free: 3.164 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006144/0.3205, allocations: 375.7 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.3205, allocations: 12.03 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.901e-05/0.3206, allocations: 12.83 kB / 1.061 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.3207, allocations: 172.3 kB / 1.062 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.3208, allocations: 384 / 1.062 GB, free: 2.516 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.3208, allocations: 12.38 kB / 1.062 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/0.321, allocations: 90.14 kB / 1.062 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.3211, allocations: 192 / 1.062 GB, free: 2.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.3211, allocations: 7.938 kB / 1.062 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.3211, allocations: 4 kB / 1.062 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.3213, allocations: 59.95 kB / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005757/0.3219, allocations: 320.7 kB / 1.062 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.3221, allocations: 86.47 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.3223, allocations: 56.83 kB / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.3223, allocations: 0 / 1.062 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/0.3226, allocations: 95.48 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.773e-06/0.3226, allocations: 0 / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0005434/0.3232, allocations: 189.5 kB / 1.063 GB, free: 1.527 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.384e-05/0.3232, allocations: 55.41 kB / 1.063 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.762e-05/0.3233, allocations: 106.2 kB / 1.063 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.3233, allocations: 29.7 kB / 1.063 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.833e-05/0.3234, allocations: 96.28 kB / 1.063 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.149e-05/0.3234, allocations: 27.64 kB / 1.063 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.601e-05/0.3235, allocations: 25.64 kB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3236, allocations: 314.8 kB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.3237, allocations: 43.97 kB / 1.063 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.3239, allocations: 70.64 kB / 1.063 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.3241, allocations: 118.4 kB / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3241, allocations: 0 / 1.063 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003384/0.3245, allocations: 145.5 kB / 1.063 GB, free: 452 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.3245, allocations: 8 kB / 1.064 GB, free: 444 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3245, allocations: 4.062 kB / 1.064 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.3246, allocations: 3.984 kB / 1.064 GB, free: 436 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.3247, allocations: 28.23 kB / 1.064 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.3247, allocations: 3.938 kB / 1.064 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.552e-05/0.3248, allocations: 15.94 kB / 1.064 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.779e-05/0.3248, allocations: 8 kB / 1.064 GB, free: 380 kB / 0.8106 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.0001001/0.3249, allocations: 125.8 kB / 1.064 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.789e-05/0.325, allocations: 7.906 kB / 1.064 GB, free: 236 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003657/0.3253, allocations: 157.9 kB / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.237e-06/0.3253, allocations: 0 / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.3254, allocations: 4 kB / 1.064 GB, free: 68 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3254, allocations: 4 kB / 1.064 GB, free: 64 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005767/0.3259, allocations: 414.4 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.326, allocations: 0 / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.462e-05/0.326, allocations: 19.98 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.3261, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.3261, allocations: 3.938 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3261, allocations: 4 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.3261, allocations: 3.984 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003599/0.3264, allocations: 255.4 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.475e-05/0.3265, allocations: 84.95 kB / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.3265, allocations: 0 / 1.065 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.3267, allocations: 15.98 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.274e-05/0.3267, allocations: 7.984 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.3267, allocations: 7.938 kB / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.472e-05/0.3268, allocations: 83.27 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3268, allocations: 4 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002594/0.3271, allocations: 20 kB / 1.065 GB, free: 15.07 MB / 0.8262 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.0001807/0.3272, allocations: 104.8 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003177/0.3276, allocations: 107.9 kB / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3276, allocations: 0 / 1.065 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.3277, allocations: 55.91 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.328, allocations: 15.98 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004065/0.3284, allocations: 205.1 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.3287, allocations: 0.6809 MB / 1.066 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.354e-05/0.3287, allocations: 15.44 kB / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3287, allocations: 0 / 1.066 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of Templates: time 0.003421/0.3322, allocations: 1.087 MB / 1.067 GB, free: 12.74 MB / 0.8262 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=480 -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