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.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: "" <> 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.001232/0.001232, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001177/0.001177, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.199/1.199, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.395/2.395, allocations: 461.8 MB / 0.7342 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 70.42 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2221/0.2232, allocations: 157.4 MB / 1.052 GB, free: 8.211 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.00205/0.2253, allocations: 1.131 MB / 1.053 GB, free: 7.074 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001067/0.2264, allocations: 0.9948 MB / 1.054 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.2265, allocations: 4 kB / 1.054 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001158/0.2266, allocations: 15.8 kB / 1.054 GB, free: 6.047 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.899e-05/0.2267, allocations: 11.94 kB / 1.054 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.2269, allocations: 67.88 kB / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001654/0.2271, allocations: 168 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.2272, allocations: 73.77 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.449e-05/0.2273, allocations: 59.78 kB / 1.055 GB, free: 5.676 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.235e-05/0.2274, allocations: 83.59 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.773e-05/0.2275, allocations: 12 kB / 1.055 GB, free: 5.582 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 2.089e-05/0.2275, allocations: 8 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.482e-05/0.2275, allocations: 35.84 kB / 1.055 GB, free: 5.539 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.236e-05/0.2276, allocations: 71.53 kB / 1.055 GB, free: 5.469 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.2278, allocations: 171.6 kB / 1.055 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.2278, allocations: 7.922 kB / 1.055 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.11e-07/0.2278, allocations: 0 / 1.055 GB, free: 5.293 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.2278, allocations: 0 / 1.055 GB, free: 5.293 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.0007044/0.2285, allocations: 471 kB / 1.055 GB, free: 4.781 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.2285, allocations: 11.97 kB / 1.056 GB, free: 4.77 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.361e-05/0.2286, allocations: 54.73 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.515e-05/0.2286, allocations: 20.66 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.2289, allocations: 220.6 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.2289, allocations: 16.38 kB / 1.056 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.173e-05/0.2289, allocations: 20.28 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.2292, allocations: 153.4 kB / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.2292, allocations: 0 / 1.056 GB, free: 4.242 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.2292, allocations: 8 kB / 1.056 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.2293, allocations: 4 kB / 1.056 GB, free: 4.23 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002593/0.2295, allocations: 107.9 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009792/0.2305, allocations: 0.5352 MB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.2308, allocations: 142.6 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.231, allocations: 80.86 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.2311, allocations: 4 kB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002408/0.2313, allocations: 124.7 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.413e-06/0.2313, allocations: 0 / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0004773/0.2318, allocations: 218.6 kB / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.2318, allocations: 59.39 kB / 1.057 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.2319, allocations: 160.2 kB / 1.057 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.232, allocations: 33.7 kB / 1.057 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/0.232, allocations: 124.4 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.764e-05/0.2321, allocations: 59.11 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.84e-05/0.2322, allocations: 37.7 kB / 1.058 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.751e-05/0.2323, allocations: 330.8 kB / 1.058 GB, free: 2.117 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.2324, allocations: 63.97 kB / 1.058 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001923/0.2326, allocations: 100.2 kB / 1.058 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000304/0.233, allocations: 141 kB / 1.058 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.233, allocations: 0 / 1.058 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004456/0.2334, allocations: 213.3 kB / 1.058 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.2334, allocations: 8.031 kB / 1.058 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.2334, allocations: 3.938 kB / 1.058 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.2335, allocations: 4 kB / 1.058 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.2337, allocations: 35.97 kB / 1.058 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.2337, allocations: 7.938 kB / 1.058 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.2338, allocations: 23.83 kB / 1.058 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.2338, allocations: 11.98 kB / 1.059 GB, free: 1.504 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 9.496e-05/0.2339, allocations: 133.8 kB / 1.059 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.402e-05/0.234, allocations: 15.81 kB / 1.059 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003733/0.2343, allocations: 200 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.2343, allocations: 4 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2344, allocations: 0 / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2344, allocations: 3.984 kB / 1.059 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007098/0.2351, allocations: 0.5882 MB / 1.059 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2351, allocations: 4 kB / 1.059 GB, free: 488 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.2353, allocations: 36.17 kB / 1.059 GB, free: 452 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/0.2353, allocations: 7.938 kB / 1.059 GB, free: 444 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.2353, allocations: 4 kB / 1.059 GB, free: 440 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.2353, allocations: 7.938 kB / 1.059 GB, free: 432 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2353, allocations: 3.984 kB / 1.059 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005017/0.2358, allocations: 381.7 kB / 1.06 GB, free: 12 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.204e-05/0.2359, allocations: 96.8 kB / 1.06 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.2359, allocations: 8 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.2361, allocations: 20.02 kB / 1.06 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.2361, allocations: 27.97 kB / 1.06 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.2361, allocations: 4 kB / 1.06 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.419e-05/0.2362, allocations: 127.1 kB / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2362, allocations: 0 / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002544/0.2365, allocations: 32 kB / 1.06 GB, free: 15.69 MB / 0.8262 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.0007519/0.2372, allocations: 0.9299 MB / 1.061 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003692/0.2376, allocations: 157.8 kB / 1.061 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2376, allocations: 0 / 1.061 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.2378, allocations: 88.28 kB / 1.061 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.2381, allocations: 34.11 kB / 1.061 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/0.2405, allocations: 2.149 MB / 1.063 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002175/0.2407, allocations: 0.7207 MB / 1.064 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.962e-05/0.2408, allocations: 25.36 kB / 1.064 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.89e-05/0.2409, allocations: 55.41 kB / 1.064 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of SimCode: time 3.01e-07/0.2409, allocations: 0 / 1.064 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01183/0.2527, allocations: 3.248 MB / 1.067 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.2529, allocations: 213.4 kB / 1.068 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/1.956, allocations: 1.875 kB / 1.068 GB, free: 7.945 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