Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.001216/0.001216, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001183/0.001183, allocations: 195 kB / 16.26 MB, free: 6.621 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.233/1.233, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.469/2.469, allocations: 461.9 MB / 0.7344 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 68.05 kB / 0.8987 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2335/0.2347, allocations: 157.4 MB / 1.052 GB, free: 8.645 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002058/0.2368, allocations: 1.133 MB / 1.054 GB, free: 7.512 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009515/0.2378, allocations: 0.9987 MB / 1.055 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.901e-05/0.2379, allocations: 7.938 kB / 1.055 GB, free: 6.492 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.238, allocations: 11.86 kB / 1.055 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.59e-05/0.2381, allocations: 7.938 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002227/0.2383, allocations: 63.88 kB / 1.055 GB, free: 6.41 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001581/0.2384, allocations: 172 kB / 1.055 GB, free: 6.238 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001444/0.2386, allocations: 92.02 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.979e-05/0.2387, allocations: 67.77 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.623e-05/0.2388, allocations: 79.61 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.2388, allocations: 19.94 kB / 1.055 GB, free: 5.984 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.065e-05/0.2388, allocations: 16 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.552e-05/0.2389, allocations: 43.84 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.647e-05/0.2389, allocations: 71.59 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001568/0.2391, allocations: 179.6 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.2391, allocations: 0 / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.643e-06/0.2391, allocations: 4 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.2391, allocations: 4 kB / 1.055 GB, free: 5.672 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0006713/0.2398, allocations: 470.9 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.2398, allocations: 8.625 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.511e-05/0.2399, allocations: 50.73 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.2399, allocations: 24.66 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001946/0.2401, allocations: 220.6 kB / 1.056 GB, free: 4.816 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.2402, allocations: 16.38 kB / 1.056 GB, free: 4.801 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.2402, allocations: 16.28 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.2405, allocations: 161.8 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.2405, allocations: 0 / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.2405, allocations: 4 kB / 1.056 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.2405, allocations: 4 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.2408, allocations: 111.9 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009238/0.2417, allocations: 0.5313 MB / 1.057 GB, free: 3.922 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003134/0.242, allocations: 138.7 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.2422, allocations: 88.81 kB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.2422, allocations: 7.922 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000223/0.2425, allocations: 121.1 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.453e-06/0.2425, allocations: 0 / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0004599/0.2429, allocations: 222.8 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.243, allocations: 63.34 kB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/0.2431, allocations: 155.3 kB / 1.058 GB, free: 3.094 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.432e-05/0.2431, allocations: 33.7 kB / 1.058 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.693e-05/0.2432, allocations: 124.4 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.257e-05/0.2432, allocations: 59.11 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.519e-05/0.2433, allocations: 41.7 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.541e-05/0.2434, allocations: 326.8 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001802/0.2436, allocations: 67.95 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.2438, allocations: 85.67 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00029/0.2441, allocations: 147.3 kB / 1.058 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2441, allocations: 4 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004173/0.2445, allocations: 211.4 kB / 1.059 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.2445, allocations: 8 kB / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.2445, allocations: 0 / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/0.2445, allocations: 0 / 1.059 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.2447, allocations: 47.91 kB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.87e-06/0.2447, allocations: 0 / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.2449, allocations: 27.86 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.2449, allocations: 8 kB / 1.059 GB, free: 1.883 MB / 0.8106 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 8.724e-05/0.245, allocations: 125.8 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.141e-05/0.245, allocations: 15.8 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00036/0.2454, allocations: 194.7 kB / 1.059 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2454, allocations: 4 kB / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.2454, allocations: 0 / 1.059 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2454, allocations: 3.984 kB / 1.059 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006849/0.2461, allocations: 0.5889 MB / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2461, allocations: 0 / 1.06 GB, free: 0.8672 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.2463, allocations: 43.91 kB / 1.06 GB, free: 0.8242 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.2463, allocations: 7.938 kB / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.2463, allocations: 0 / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.2463, allocations: 4 kB / 1.06 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2463, allocations: 4 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/0.2468, allocations: 386.7 kB / 1.06 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.2469, allocations: 100.8 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.2469, allocations: 8 kB / 1.06 GB, free: 280 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.247, allocations: 12.12 kB / 1.06 GB, free: 268 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.2471, allocations: 27.89 kB / 1.06 GB, free: 240 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.2471, allocations: 16 kB / 1.06 GB, free: 224 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.625e-05/0.2472, allocations: 117.4 kB / 1.06 GB, free: 108 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2472, allocations: 0 / 1.06 GB, free: 108 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002456/0.2474, allocations: 32 kB / 1.06 GB, free: 76 kB / 0.8106 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.0007525/0.2482, allocations: 0.9279 MB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003831/0.2486, allocations: 173.9 kB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.2486, allocations: 4.062 kB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.2488, allocations: 79.91 kB / 1.062 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.2491, allocations: 37.39 kB / 1.062 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.2514, allocations: 2.164 MB / 1.064 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.2516, allocations: 0.7243 MB / 1.064 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.221e-05/0.2517, allocations: 17.42 kB / 1.064 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.045e-05/0.2518, allocations: 51.42 kB / 1.064 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of SimCode: time 2.81e-07/0.2518, allocations: 0 / 1.064 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4345/0.6863, allocations: 3.377 MB / 1.068 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/0.6865, allocations: 214.8 kB / 1.068 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.643/2.33, allocations: 0 / 1.068 GB, free: 8.207 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-07 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches