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.0009351/0.0009351, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006899/0.006899, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.267/1.267, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.503/2.503, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0002953/0.0002954, allocations: 11.41 kB / 0.9029 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2356, allocations: 159.6 MB / 1.059 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.001099/0.2367, allocations: 0.7802 MB / 1.06 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009942/0.2377, allocations: 0.9909 MB / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.029e-05/0.2378, allocations: 0 / 1.061 GB, free: 3.07 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 9.525e-05/0.2379, allocations: 11.88 kB / 1.061 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.143e-05/0.238, allocations: 19.84 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002223/0.2382, allocations: 55.95 kB / 1.061 GB, free: 2.984 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.2384, allocations: 168 kB / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.2386, allocations: 72.05 kB / 1.061 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.296e-05/0.2386, allocations: 59.7 kB / 1.061 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.872e-05/0.2387, allocations: 63.62 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.2388, allocations: 11.94 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.795e-05/0.2388, allocations: 4 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.743e-05/0.2388, allocations: 19.92 kB / 1.061 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.694e-05/0.2389, allocations: 93.22 kB / 1.061 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001538/0.239, allocations: 167.6 kB / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2391, allocations: 0 / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2391, allocations: 0 / 1.061 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.2391, allocations: 0 / 1.061 GB, free: 2.328 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.0006591/0.2397, allocations: 458.9 kB / 1.062 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.2398, allocations: 15.97 kB / 1.062 GB, free: 1.812 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.108e-05/0.2398, allocations: 50.73 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.079e-05/0.2399, allocations: 16.75 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.2401, allocations: 232.5 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.2401, allocations: 8.375 kB / 1.062 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/0.2401, allocations: 16.38 kB / 1.062 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003038/0.2405, allocations: 165.3 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.2405, allocations: 0 / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.2405, allocations: 8 kB / 1.062 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.2405, allocations: 4 kB / 1.062 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002769/0.2408, allocations: 119.9 kB / 1.062 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009771/0.2418, allocations: 0.543 MB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.2421, allocations: 146.7 kB / 1.063 GB, free: 416 kB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.2423, allocations: 92.81 kB / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.2423, allocations: 4 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.2426, allocations: 120.5 kB / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=19): time 1.463e-06/0.2426, allocations: 0 / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of matching and sorting (n=19): time 0.0005227/0.2431, allocations: 242.7 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.949e-05/0.2432, allocations: 59.39 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.2433, allocations: 160.2 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.2433, allocations: 29.7 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.345e-05/0.2434, allocations: 120.4 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.571e-05/0.2434, allocations: 63.09 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.2435, allocations: 29.64 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.323e-05/0.2436, allocations: 326.8 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000198/0.2438, allocations: 75.95 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.244, allocations: 91.09 kB / 1.064 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003334/0.2443, allocations: 168.1 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2443, allocations: 3.938 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000467/0.2448, allocations: 215.6 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2448, allocations: 12 kB / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2448, allocations: 0 / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.2448, allocations: 0 / 1.065 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.245, allocations: 43.91 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.2451, allocations: 4 kB / 1.065 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.2452, allocations: 31.73 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.2452, allocations: 8 kB / 1.065 GB, free: 14.46 MB / 0.8262 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.687e-05/0.2453, allocations: 137.7 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.2453, allocations: 11.91 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003931/0.2457, allocations: 200.6 kB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2458, allocations: 0 / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2458, allocations: 0 / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.2458, allocations: 3.984 kB / 1.065 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000738/0.2465, allocations: 0.6034 MB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2465, allocations: 0 / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.2467, allocations: 44.09 kB / 1.066 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.151e-06/0.2467, allocations: 7.938 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.2467, allocations: 8 kB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.2467, allocations: 4 kB / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2468, allocations: 0 / 1.066 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005371/0.2473, allocations: 396.3 kB / 1.066 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.525e-05/0.2473, allocations: 104.8 kB / 1.066 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.653e-05/0.2474, allocations: 8 kB / 1.066 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.2475, allocations: 20.03 kB / 1.066 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.214e-05/0.2476, allocations: 23.91 kB / 1.066 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.2476, allocations: 8 kB / 1.066 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.242e-05/0.2477, allocations: 127.2 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.643e-06/0.2477, allocations: 0 / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002525/0.248, allocations: 35.84 kB / 1.066 GB, free: 12.61 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.0007872/0.2488, allocations: 0.9368 MB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003839/0.2491, allocations: 167.9 kB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.2492, allocations: 4.062 kB / 1.068 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001779/0.2493, allocations: 87.84 kB / 1.068 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.2497, allocations: 37.66 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.2521, allocations: 2.205 MB / 1.07 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.2523, allocations: 0.7285 MB / 1.071 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.526e-05/0.2524, allocations: 13.42 kB / 1.071 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.386e-05/0.2525, allocations: 55.41 kB / 1.071 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.2525, allocations: 0 / 1.071 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.515/1.767, allocations: 3.17 MB / 1.074 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/1.768, allocations: 210.2 kB / 1.074 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.144/4.912, allocations: 3.938 kB / 1.074 GB, free: 4.902 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