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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007731/0.007731, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001753/0.001753, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.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.254/2.254, allocations: 390.3 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 65.34 kB / 0.9505 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.227, allocations: 140.4 MB / 1.088 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.002079/0.2291, allocations: 1.047 MB / 1.089 GB, free: 1.012 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001192/0.2304, allocations: 0.9908 MB / 1.09 GB, free: 8 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.2305, allocations: 4 kB / 1.09 GB, free: 4 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001366/0.2306, allocations: 19.84 kB / 1.09 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.033e-05/0.2307, allocations: 23.81 kB / 1.09 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.231, allocations: 67.84 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001883/0.2312, allocations: 175.5 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001728/0.2314, allocations: 70.5 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.2315, allocations: 67.78 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.652e-05/0.2316, allocations: 79.66 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.2316, allocations: 16 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 2.073e-05/0.2316, allocations: 12 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.902e-05/0.2317, allocations: 43.84 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.2318, allocations: 63.61 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002022/0.232, allocations: 186.1 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.232, allocations: 0 / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.393e-06/0.232, allocations: 3.938 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.232, allocations: 0 / 1.09 GB, free: 15.19 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.000709/0.2327, allocations: 472 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.2328, allocations: 8.031 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.369e-05/0.2328, allocations: 54.66 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.191e-05/0.2329, allocations: 20.75 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.2331, allocations: 216.1 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.2332, allocations: 16.59 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.2332, allocations: 24.31 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.2335, allocations: 144.4 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-06/0.2335, allocations: 3.938 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.2335, allocations: 4 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.2335, allocations: 4 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002516/0.2338, allocations: 100.8 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009574/0.2348, allocations: 0.5276 MB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003388/0.2351, allocations: 138.7 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.2353, allocations: 88.72 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.2353, allocations: 7.984 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.2355, allocations: 120.5 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=19): time 1.432e-06/0.2356, allocations: 0 / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.0005006/0.2361, allocations: 223.3 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.2361, allocations: 55.41 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.2362, allocations: 158.8 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.2363, allocations: 29.7 kB / 1.093 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.565e-05/0.2363, allocations: 116.4 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.251e-05/0.2364, allocations: 55.17 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.464e-05/0.2364, allocations: 37.7 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.2365, allocations: 330.8 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.2367, allocations: 67.95 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000198/0.2369, allocations: 87.09 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003218/0.2373, allocations: 161.8 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2373, allocations: 0 / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004456/0.2377, allocations: 201.5 kB / 1.094 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.2378, allocations: 5.25 kB / 1.094 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2378, allocations: 4 kB / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.2378, allocations: 0 / 1.094 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001861/0.238, allocations: 43.91 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.238, allocations: 15.91 kB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.2381, allocations: 23.73 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.2381, allocations: 8 kB / 1.094 GB, free: 11.44 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.149e-05/0.2382, allocations: 130.8 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.2383, allocations: 15.89 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003842/0.2387, allocations: 194.7 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.2387, allocations: 4 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2387, allocations: 0 / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2387, allocations: 3.984 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007469/0.2394, allocations: 0.5773 MB / 1.095 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2395, allocations: 0 / 1.095 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001636/0.2396, allocations: 35.92 kB / 1.095 GB, free: 10.4 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.73e-06/0.2396, allocations: 7.984 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.2397, allocations: 8 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.2397, allocations: 7.938 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2397, allocations: 4 kB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005378/0.2402, allocations: 382.6 kB / 1.095 GB, free: 9.965 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.504e-05/0.2403, allocations: 100.9 kB / 1.095 GB, free: 9.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.2403, allocations: 11.94 kB / 1.095 GB, free: 9.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.2405, allocations: 11.98 kB / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/0.2406, allocations: 23.91 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.2406, allocations: 8.094 kB / 1.095 GB, free: 9.793 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 8.105e-05/0.2407, allocations: 126.5 kB / 1.095 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2407, allocations: 0 / 1.095 GB, free: 9.672 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002686/0.2409, allocations: 35.94 kB / 1.095 GB, free: 9.637 MB / 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.0008561/0.2418, allocations: 0.9253 MB / 1.096 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004111/0.2422, allocations: 159.8 kB / 1.096 GB, free: 8.512 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.2422, allocations: 4 kB / 1.096 GB, free: 8.508 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.2424, allocations: 83.89 kB / 1.097 GB, free: 8.426 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.2427, allocations: 26.23 kB / 1.097 GB, free: 8.402 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.2454, allocations: 2.115 MB / 1.099 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002958/0.2458, allocations: 0.7205 MB / 1.099 GB, free: 5.418 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.742e-05/0.2458, allocations: 13.42 kB / 1.099 GB, free: 5.406 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.246, allocations: 51.42 kB / 1.099 GB, free: 5.355 MB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.246, allocations: 4 kB / 1.099 GB, free: 5.352 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02353/0.2695, allocations: 3.632 MB / 1.103 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.004/8.274, allocations: 14.33 kB / 1.103 GB, free: 1.816 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.fmu > 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) "" Variables in the reference:time,der1.y,intWitRes.u,der2.y,der1.T Variables in the result:T.k,T.y,abs.u,abs.y,assMes.u,booSig.k,booSig.y,con.k,con.y,con2.k,con2.y,cos.u,cos.y,der(der1.x),der(der2.x),der(intWitRes.y),der1.T,der1.k,der1.u,der1.x,der1.y,der1.y_start,der2.T,der2.k,der2.u,der2.x,der2.y,der2.y_start,intWitRes.k,intWitRes.trigger,intWitRes.u,intWitRes.y,intWitRes.y_reset_in,intWitRes.y_start,lesThr.h,lesThr.pre_y_start,lesThr.t,lesThr.u,lesThr.y,modTim.y,ram.duration,ram.height,ram.offset,ram.startTime,ram.y,sub.u1,sub.u2,sub.y,time