Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der1.y|intWitRes.u|der2.y|der1.T",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001465, allocations: 106.7 kB / 16.41 MB, free: 6.465 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.001629/0.001629, allocations: 187 kB / 17.34 MB, free: 5.723 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.442/1.442, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.297/2.297, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 63.91 kB / 0.9516 GB, free: 7.539 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9107/0.9122, allocations: 140.4 MB / 1.089 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.002369/0.9146, allocations: 1.036 MB / 1.09 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00134/0.9159, allocations: 0.9812 MB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.9161, allocations: 6.844 kB / 1.091 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.9162, allocations: 19.5 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.59e-05/0.9163, allocations: 19.06 kB / 1.091 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.9166, allocations: 69.77 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.000219/0.9168, allocations: 172.9 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.917, allocations: 75.81 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.9171, allocations: 72.09 kB / 1.091 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.9172, allocations: 77.06 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.838e-05/0.9173, allocations: 16.62 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.942e-05/0.9173, allocations: 15.44 kB / 1.091 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.484e-05/0.9174, allocations: 32.64 kB / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.634e-05/0.9174, allocations: 78.38 kB / 1.091 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.9177, allocations: 174.4 kB / 1.091 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.9177, allocations: 1.062 kB / 1.091 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.212e-06/0.9177, allocations: 0 / 1.091 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.698e-06/0.9177, allocations: 4 kB / 1.091 GB, free: 3.633 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.000777/0.9185, allocations: 473.4 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.9186, allocations: 10.19 kB / 1.092 GB, free: 3.211 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.091e-05/0.9186, allocations: 17.28 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.9189, allocations: 224.8 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.9189, allocations: 15.28 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.302e-05/0.919, allocations: 14.59 kB / 1.092 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003436/0.9193, allocations: 143.5 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.9193, allocations: 0.7031 kB / 1.092 GB, free: 2.895 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.9194, allocations: 9.438 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.9194, allocations: 3.781 kB / 1.092 GB, free: 2.887 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003104/0.9197, allocations: 103.8 kB / 1.092 GB, free: 2.859 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001101/0.9208, allocations: 0.5249 MB / 1.093 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004358/0.9212, allocations: 140.9 kB / 1.093 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.9214, allocations: 82.11 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.9215, allocations: 6.469 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.9218, allocations: 121.2 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=19): time 1.533e-06/0.9218, allocations: 0 / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.0005997/0.9224, allocations: 225.8 kB / 1.093 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.402e-05/0.9224, allocations: 62.61 kB / 1.094 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.9225, allocations: 160.2 kB / 1.094 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.9226, allocations: 31.95 kB / 1.094 GB, free: 1.984 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.299e-05/0.9226, allocations: 110.5 kB / 1.094 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.415e-05/0.9227, allocations: 64.89 kB / 1.094 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-05/0.9228, allocations: 47.55 kB / 1.094 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.101e-05/0.9228, allocations: 322.2 kB / 1.094 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.923, allocations: 69.5 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002213/0.9233, allocations: 93.3 kB / 1.094 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003545/0.9236, allocations: 154.6 kB / 1.095 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.9236, allocations: 0 / 1.095 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005037/0.9242, allocations: 209.7 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.9242, allocations: 5.219 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.9242, allocations: 0.9375 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.9242, allocations: 1.469 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.9244, allocations: 45.31 kB / 1.095 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.9245, allocations: 1.531 kB / 1.095 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.9246, allocations: 27.39 kB / 1.095 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.9246, allocations: 4.656 kB / 1.095 GB, free: 1.227 MB / 0.8575 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 9.674e-05/0.9247, allocations: 137.3 kB / 1.095 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.758e-05/0.9248, allocations: 15.33 kB / 1.095 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004594/0.9252, allocations: 193.2 kB / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.9252, allocations: 2.875 kB / 1.095 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.9253, allocations: 3.938 kB / 1.095 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.9253, allocations: 1.359 kB / 1.095 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008281/0.9261, allocations: 0.5842 MB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.9261, allocations: 3.172 kB / 1.096 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.9263, allocations: 36.19 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.9263, allocations: 3.047 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.9263, allocations: 3.891 kB / 1.096 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.9263, allocations: 7 kB / 1.096 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.9264, allocations: 9.75 kB / 1.096 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006099/0.927, allocations: 377.9 kB / 1.096 GB, free: 264 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.405e-05/0.927, allocations: 91.59 kB / 1.096 GB, free: 160 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.9271, allocations: 13.11 kB / 1.096 GB, free: 152 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.9272, allocations: 12.08 kB / 1.096 GB, free: 152 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.9273, allocations: 25.23 kB / 1.096 GB, free: 144 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.9273, allocations: 15.34 kB / 1.096 GB, free: 136 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.118e-05/0.9274, allocations: 122.4 kB / 1.096 GB, free: 44 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.9274, allocations: 0 / 1.096 GB, free: 44 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002815/0.9277, allocations: 31.73 kB / 1.096 GB, free: 36 kB / 0.8575 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.0001815/0.9279, allocations: 118 kB / 1.097 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004886/0.9284, allocations: 169.7 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.9284, allocations: 0 / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002068/0.9286, allocations: 87.5 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003613/0.929, allocations: 31.11 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007357/0.9297, allocations: 387.4 kB / 1.097 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.9301, allocations: 0.7238 MB / 1.098 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.339e-05/0.9301, allocations: 23.39 kB / 1.098 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of SimCode: time 2.01e-07/0.9302, allocations: 1.594 kB / 1.098 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of Templates: time 0.004398/0.9346, allocations: 1.916 MB / 1.1 GB, free: 14.66 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches