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.001429/0.001429, allocations: 101.2 kB / 16.37 MB, free: 6.469 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.001354/0.001354, allocations: 191.8 kB / 17.31 MB, free: 5.824 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.391/1.391, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.612/2.612, allocations: 442.6 MB / 0.7165 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 67.91 kB / 0.8774 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3089, allocations: 153 MB / 1.027 GB, free: 2.113 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001983/0.311, allocations: 0.6792 MB / 1.027 GB, free: 1.438 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.3122, allocations: 1.076 MB / 1.028 GB, free: 356 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.611e-05/0.3123, allocations: 3.938 kB / 1.028 GB, free: 352 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.722e-05/0.3123, allocations: 3.938 kB / 1.028 GB, free: 348 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.135e-05/0.3124, allocations: 11.92 kB / 1.028 GB, free: 336 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003237/0.3127, allocations: 51.83 kB / 1.029 GB, free: 284 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.3128, allocations: 63.89 kB / 1.029 GB, free: 220 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.889e-05/0.313, allocations: 11.98 kB / 1.029 GB, free: 208 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.921e-05/0.313, allocations: 27.92 kB / 1.029 GB, free: 180 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.207e-05/0.3131, allocations: 31.84 kB / 1.029 GB, free: 148 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.3131, allocations: 8 kB / 1.029 GB, free: 140 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 6.86e-05/0.3132, allocations: 23.92 kB / 1.029 GB, free: 116 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.661e-05/0.3132, allocations: 19.97 kB / 1.029 GB, free: 96 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.924e-05/0.3133, allocations: 23.86 kB / 1.029 GB, free: 72 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.3134, allocations: 79.81 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3135, allocations: 4 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3135, allocations: 0 / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.3135, allocations: 0 / 1.029 GB, free: 15.98 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.0006133/0.3141, allocations: 379.3 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.3141, allocations: 8.031 kB / 1.029 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.427e-05/0.3142, allocations: 12.83 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.3143, allocations: 172.3 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.3143, allocations: 384 / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.971e-05/0.3144, allocations: 8.375 kB / 1.029 GB, free: 15.33 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002156/0.3146, allocations: 86.14 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.3146, allocations: 192 / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.3146, allocations: 11.81 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.3146, allocations: 4 kB / 1.029 GB, free: 15.23 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001939/0.3148, allocations: 55.95 kB / 1.03 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004941/0.3153, allocations: 312.7 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.3155, allocations: 82.42 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.3157, allocations: 44.83 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.3157, allocations: 0 / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.3159, allocations: 95.34 kB / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.3159, allocations: 0 / 1.03 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0004696/0.3164, allocations: 173.6 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.3165, allocations: 59.34 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.373e-05/0.3166, allocations: 109.8 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.3166, allocations: 33.7 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.071e-05/0.3166, allocations: 84.38 kB / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.62e-05/0.3167, allocations: 27.64 kB / 1.03 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.93e-05/0.3168, allocations: 33.7 kB / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3169, allocations: 314.8 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.317, allocations: 35.97 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.3171, allocations: 70.53 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.3174, allocations: 106.3 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3174, allocations: 0 / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003121/0.3177, allocations: 149.5 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.3177, allocations: 4 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.3177, allocations: 0 / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3178, allocations: 4 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.3179, allocations: 19.98 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.3179, allocations: 384 / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.255e-05/0.318, allocations: 11.92 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.318, allocations: 8 kB / 1.031 GB, free: 13.27 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 0.0001019/0.3181, allocations: 134.5 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.355e-05/0.3181, allocations: 7.844 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003399/0.3185, allocations: 145.9 kB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.3185, allocations: 0 / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.3185, allocations: 0 / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.3185, allocations: 0 / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005139/0.319, allocations: 418.3 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.319, allocations: 3.984 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.669e-05/0.3191, allocations: 8 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3191, allocations: 0 / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.3191, allocations: 7.922 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3192, allocations: 4.234 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3192, allocations: 4 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003365/0.3195, allocations: 239.4 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.177e-05/0.3196, allocations: 84.95 kB / 1.032 GB, free: 12.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.3196, allocations: 7.984 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.3197, allocations: 7.984 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.3197, allocations: 8 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.3198, allocations: 7.938 kB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.907e-05/0.3198, allocations: 87.27 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3198, allocations: 4 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002505/0.3201, allocations: 16 kB / 1.032 GB, free: 12 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.0001558/0.3202, allocations: 111.2 kB / 1.032 GB, free: 11.88 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002907/0.3205, allocations: 100.1 kB / 1.033 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3205, allocations: 0 / 1.033 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001404/0.3207, allocations: 48.03 kB / 1.033 GB, free: 11.73 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.321, allocations: 12 kB / 1.033 GB, free: 11.72 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003567/0.3213, allocations: 158.1 kB / 1.033 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.3216, allocations: 0.6885 MB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.396e-05/0.3216, allocations: 4.438 kB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.418e-05/0.3217, allocations: 19.42 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of SimCode: time 4.11e-07/0.3217, allocations: 4 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of Templates: time 0.003355/0.325, allocations: 1.023 MB / 1.034 GB, free: 9.781 MB / 0.8106 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 -s gbode -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