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.01062/0.01062, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.002213/0.002213, allocations: 196.4 kB / 16.79 MB, free: 5.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.479/1.479, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.798/2.798, allocations: 461.9 MB / 0.7348 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001453, allocations: 63.48 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2865, allocations: 157.4 MB / 1.053 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002202/0.2888, allocations: 0.7326 MB / 1.053 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001372/0.2902, allocations: 1.084 MB / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.585e-05/0.2903, allocations: 0 / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.707e-05/0.2903, allocations: 0 / 1.055 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.107e-05/0.2904, allocations: 3.938 kB / 1.055 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002728/0.2907, allocations: 47.89 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.976e-05/0.2908, allocations: 51.91 kB / 1.055 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.915e-05/0.2909, allocations: 23.89 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.542e-05/0.291, allocations: 27.84 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.547e-05/0.291, allocations: 31.84 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.2911, allocations: 4 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.321e-05/0.2912, allocations: 19.98 kB / 1.055 GB, free: 6.246 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.352e-05/0.2912, allocations: 11.98 kB / 1.055 GB, free: 6.234 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.554e-05/0.2912, allocations: 27.84 kB / 1.055 GB, free: 6.207 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001098/0.2914, allocations: 51.91 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2914, allocations: 0 / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.72e-07/0.2914, allocations: 0 / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.2914, allocations: 0 / 1.055 GB, free: 6.156 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.000626/0.292, allocations: 387.6 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2921, allocations: 8.031 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.599e-05/0.2921, allocations: 8.844 kB / 1.055 GB, free: 5.711 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.2922, allocations: 176.3 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.2923, allocations: 384 / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.2923, allocations: 8.375 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002169/0.2925, allocations: 90.14 kB / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.2925, allocations: 192 / 1.055 GB, free: 5.398 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.2925, allocations: 7.875 kB / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.2925, allocations: 0 / 1.055 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.2928, allocations: 59.89 kB / 1.056 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000488/0.2933, allocations: 308.8 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001924/0.2935, allocations: 82.42 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.2936, allocations: 44.83 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.2936, allocations: 0 / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002371/0.2939, allocations: 91.36 kB / 1.056 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.2939, allocations: 4 kB / 1.056 GB, free: 4.738 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004886/0.2944, allocations: 165.8 kB / 1.056 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.2944, allocations: 63.28 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.92e-05/0.2945, allocations: 109.8 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.2945, allocations: 33.7 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.271e-05/0.2946, allocations: 88.38 kB / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.909e-05/0.2946, allocations: 31.62 kB / 1.057 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.2947, allocations: 33.7 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000115/0.2948, allocations: 314.8 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.2949, allocations: 35.97 kB / 1.057 GB, free: 3.824 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.2951, allocations: 62.55 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002417/0.2953, allocations: 106.4 kB / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2953, allocations: 0 / 1.057 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003157/0.2957, allocations: 145.4 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.2957, allocations: 8.062 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2957, allocations: 0 / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.2957, allocations: 4 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000136/0.2959, allocations: 23.97 kB / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.2959, allocations: 384 / 1.057 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.444e-05/0.296, allocations: 8.188 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.296, allocations: 12 kB / 1.057 GB, free: 3.438 MB / 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 9.717e-05/0.2961, allocations: 133.7 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.595e-05/0.2961, allocations: 11.84 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003505/0.2965, allocations: 145.9 kB / 1.058 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2965, allocations: 0 / 1.058 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.2965, allocations: 0 / 1.058 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2965, allocations: 0 / 1.058 GB, free: 3.137 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005489/0.2971, allocations: 410.3 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.2971, allocations: 4 kB / 1.058 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.024e-05/0.2971, allocations: 11.98 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2972, allocations: 0 / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.2972, allocations: 0 / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.2972, allocations: 0 / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.2972, allocations: 7.984 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.2975, allocations: 239.4 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.032e-05/0.2976, allocations: 84.95 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.2976, allocations: 4 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.2977, allocations: 7.984 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.2978, allocations: 11.98 kB / 1.058 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.2978, allocations: 7.938 kB / 1.058 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.223e-05/0.2979, allocations: 87.27 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.383e-06/0.2979, allocations: 0 / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002474/0.2981, allocations: 19.94 kB / 1.058 GB, free: 2.168 MB / 0.8106 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.0001339/0.2983, allocations: 107.2 kB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003066/0.2986, allocations: 104 kB / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2986, allocations: 0 / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.2987, allocations: 51.89 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.299, allocations: 17.09 kB / 1.059 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003648/0.2994, allocations: 190.2 kB / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.2996, allocations: 0.6887 MB / 1.059 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.329e-05/0.2997, allocations: 11.44 kB / 1.06 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.2997, allocations: 0 / 1.06 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of Templates: time 0.002659/0.3023, allocations: 1.087 MB / 1.061 GB, free: 15.86 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