Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 106.5 kB / 15.99 MB, free: 5.914 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.001896/0.001896, allocations: 192.8 kB / 16.91 MB, free: 5.758 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.398/1.398, allocations: 222.9 MB / 240.6 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.544/2.544, allocations: 437 MB / 0.7107 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001415, allocations: 67.91 kB / 0.8694 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6114/0.6129, allocations: 151.6 MB / 1.017 GB, free: 2.715 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.003773/0.6167, allocations: 1.118 MB / 1.019 GB, free: 1.594 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002185/0.619, allocations: 1.01 MB / 1.02 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001785/0.6192, allocations: 0 / 1.02 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.6194, allocations: 15.86 kB / 1.02 GB, free: 0.5547 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.571e-05/0.6196, allocations: 7.875 kB / 1.02 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004161/0.62, allocations: 59.94 kB / 1.02 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0003114/0.6203, allocations: 172 kB / 1.02 GB, free: 328 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002544/0.6206, allocations: 84.03 kB / 1.02 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.6207, allocations: 75.7 kB / 1.02 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001379/0.6209, allocations: 75.62 kB / 1.02 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 4.805e-05/0.6209, allocations: 16 kB / 1.02 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 3.415e-05/0.621, allocations: 16 kB / 1.02 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.934e-05/0.6211, allocations: 39.89 kB / 1.02 GB, free: 16 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.6212, allocations: 75.66 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.6215, allocations: 141.5 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.6215, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.435e-06/0.6215, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.6215, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.001144/0.6227, allocations: 482.8 kB / 1.021 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/0.6227, allocations: 12.03 kB / 1.021 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.456e-05/0.6228, allocations: 16.75 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.6232, allocations: 220.5 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.6232, allocations: 20.31 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.263e-05/0.6233, allocations: 16.38 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005023/0.6238, allocations: 146.9 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.6238, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.6239, allocations: 4 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.6239, allocations: 4 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003885/0.6243, allocations: 119.7 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.6259, allocations: 0.5428 MB / 1.022 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005774/0.6265, allocations: 130.8 kB / 1.022 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.6268, allocations: 96.72 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.757e-05/0.6268, allocations: 4 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004195/0.6272, allocations: 120.5 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=19): time 2.385e-06/0.6273, allocations: 0 / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.0007901/0.6281, allocations: 227.2 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.6281, allocations: 59.34 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.6283, allocations: 159.7 kB / 1.023 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.352e-05/0.6284, allocations: 33.7 kB / 1.023 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.964e-05/0.6285, allocations: 120.4 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 8.028e-05/0.6286, allocations: 63.08 kB / 1.023 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.166e-05/0.6287, allocations: 41.7 kB / 1.023 GB, free: 13 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.6288, allocations: 326.8 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/0.6291, allocations: 71.81 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.6295, allocations: 91.5 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000473/0.6299, allocations: 140.2 kB / 1.023 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.63, allocations: 4 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000655/0.6306, allocations: 219.5 kB / 1.024 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.6307, allocations: 4 kB / 1.024 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.6307, allocations: 0 / 1.024 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.6307, allocations: 4 kB / 1.024 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002604/0.631, allocations: 35.92 kB / 1.024 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.631, allocations: 3.984 kB / 1.024 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.6312, allocations: 27.92 kB / 1.024 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.6312, allocations: 8 kB / 1.024 GB, free: 12.06 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001922/0.6314, allocations: 129.7 kB / 1.024 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.782e-05/0.6315, allocations: 19.75 kB / 1.024 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006116/0.6321, allocations: 190.7 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.6321, allocations: 4 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.918e-06/0.6321, allocations: 7.938 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.6321, allocations: 0 / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.6334, allocations: 0.5772 MB / 1.025 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.6334, allocations: 4 kB / 1.025 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002661/0.6337, allocations: 39.92 kB / 1.025 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-05/0.6337, allocations: 7.938 kB / 1.025 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.6337, allocations: 7.984 kB / 1.025 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.6337, allocations: 0 / 1.025 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.6337, allocations: 4 kB / 1.025 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008661/0.6346, allocations: 393.9 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.424e-05/0.6347, allocations: 96.89 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.213e-05/0.6348, allocations: 8 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.635, allocations: 11.98 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.041e-05/0.6351, allocations: 19.97 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.219e-05/0.6352, allocations: 12 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001255/0.6353, allocations: 119.2 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.01e-07/0.6353, allocations: 4 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005318/0.6358, allocations: 35.94 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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 Backend phase and start with SimCode phase: time 0.0002085/0.6361, allocations: 111.2 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0006546/0.6367, allocations: 171.7 kB / 1.026 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.6367, allocations: 0 / 1.026 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002708/0.637, allocations: 91.91 kB / 1.026 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005909/0.6376, allocations: 21.7 kB / 1.026 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.6387, allocations: 476.8 kB / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004441/0.6392, allocations: 0.7166 MB / 1.027 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.563e-05/0.6393, allocations: 23.42 kB / 1.027 GB, free: 8.574 MB / 0.7794 GB Notification: Performance of SimCode: time 5.81e-07/0.6393, allocations: 4 kB / 1.027 GB, free: 8.57 MB / 0.7794 GB Notification: Performance of Templates: time 0.005436/0.6447, allocations: 1.952 MB / 1.029 GB, free: 6.617 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches