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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000835/0.000835, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008569/0.0008569, allocations: 165.9 kB / 22.46 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.849/0.849, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.707/1.707, allocations: 389 MB / 0.633 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.404e-06/2.404e-06, allocations: 0 / 0.9997 GB, free: 13.42 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.663e-05/1.903e-05, allocations: 5.094 kB / 0.9997 GB, free: 13.41 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.001494/0.001513, allocations: 1.007 MB / 1.001 GB, free: 12.41 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001012/0.002525, allocations: 1.026 MB / 1.002 GB, free: 11.37 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.793e-05/0.002613, allocations: 7.938 kB / 1.002 GB, free: 11.36 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.002723, allocations: 15.8 kB / 1.002 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 4.609e-05/0.002769, allocations: 27.69 kB / 1.002 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002477/0.003017, allocations: 71.78 kB / 1.002 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.003155, allocations: 180.1 kB / 1.002 GB, free: 11.07 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.003285, allocations: 56.52 kB / 1.002 GB, free: 11.01 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.00339, allocations: 103.8 kB / 1.002 GB, free: 10.91 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 7.177e-05/0.003462, allocations: 63.78 kB / 1.002 GB, free: 10.85 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.219e-05/0.003484, allocations: 16 kB / 1.002 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.452e-05/0.003528, allocations: 20 kB / 1.002 GB, free: 10.81 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.001e-05/0.003558, allocations: 35.89 kB / 1.002 GB, free: 10.78 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.003598, allocations: 51.83 kB / 1.002 GB, free: 10.73 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.003789, allocations: 199.2 kB / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.003791, allocations: 0 / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.182e-06/0.003792, allocations: 0 / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.008e-06/0.003796, allocations: 4 kB / 1.003 GB, free: 10.53 MB / 0.9636 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.0005463/0.004343, allocations: 426.4 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.004378, allocations: 8.75 kB / 1.003 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.406e-05/0.004412, allocations: 46.73 kB / 1.003 GB, free: 10.01 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.943e-05/0.004481, allocations: 28.8 kB / 1.003 GB, free: 9.984 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.004685, allocations: 162 kB / 1.003 GB, free: 9.801 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.004699, allocations: 16.23 kB / 1.003 GB, free: 9.785 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.5e-05/0.004724, allocations: 20.38 kB / 1.003 GB, free: 9.766 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.004938, allocations: 177.4 kB / 1.003 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.004946, allocations: 192 / 1.003 GB, free: 9.582 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/0.005087, allocations: 11.94 kB / 1.003 GB, free: 9.57 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.034e-06/0.005094, allocations: 4 kB / 1.003 GB, free: 9.566 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.005252, allocations: 108.5 kB / 1.004 GB, free: 9.461 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006371/0.005889, allocations: 483.2 kB / 1.004 GB, free: 8.945 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000255/0.006144, allocations: 130.8 kB / 1.004 GB, free: 8.809 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.258e-05/0.006237, allocations: 76.72 kB / 1.004 GB, free: 8.73 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.00626, allocations: 7.938 kB / 1.004 GB, free: 8.723 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.006414, allocations: 152.9 kB / 1.004 GB, free: 8.555 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=19): time 1.312e-06/0.006415, allocations: 4 kB / 1.004 GB, free: 8.551 MB / 0.9636 GB Notification: Performance of matching and sorting (n=19): time 0.0003229/0.006738, allocations: 227.9 kB / 1.005 GB, free: 8.324 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.006762, allocations: 51.41 kB / 1.005 GB, free: 8.262 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.74e-05/0.00685, allocations: 158.3 kB / 1.005 GB, free: 8.098 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.006865, allocations: 29.7 kB / 1.005 GB, free: 8.062 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.217e-05/0.006917, allocations: 116.5 kB / 1.005 GB, free: 7.945 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.00696, allocations: 75.31 kB / 1.005 GB, free: 7.871 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.362e-05/0.007004, allocations: 37.7 kB / 1.005 GB, free: 7.828 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.156e-05/0.007076, allocations: 334.8 kB / 1.005 GB, free: 7.492 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.007186, allocations: 67.95 kB / 1.005 GB, free: 7.426 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.007297, allocations: 82.28 kB / 1.005 GB, free: 7.34 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.00748, allocations: 144.4 kB / 1.006 GB, free: 7.195 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.007482, allocations: 4 kB / 1.006 GB, free: 7.191 MB / 0.9636 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002535/0.007735, allocations: 209.4 kB / 1.006 GB, free: 6.98 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.007748, allocations: 11.98 kB / 1.006 GB, free: 6.969 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.007752, allocations: 0 / 1.006 GB, free: 6.969 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.007762, allocations: 0 / 1.006 GB, free: 6.969 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.796e-05/0.00786, allocations: 43.92 kB / 1.006 GB, free: 6.926 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.007866, allocations: 0 / 1.006 GB, free: 6.926 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.789e-05/0.007934, allocations: 35.84 kB / 1.006 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.007943, allocations: 8.031 kB / 1.006 GB, free: 6.883 MB / 0.9636 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 6.878e-05/0.008012, allocations: 125.8 kB / 1.006 GB, free: 6.75 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.432e-05/0.008026, allocations: 15.91 kB / 1.006 GB, free: 6.734 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002425/0.008269, allocations: 194.6 kB / 1.006 GB, free: 6.535 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.008271, allocations: 0 / 1.006 GB, free: 6.535 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.008274, allocations: 0 / 1.006 GB, free: 6.535 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.008277, allocations: 0 / 1.006 GB, free: 6.535 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004659/0.008743, allocations: 0.548 MB / 1.007 GB, free: 5.922 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.008745, allocations: 0 / 1.007 GB, free: 5.922 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.899e-05/0.008834, allocations: 43.91 kB / 1.007 GB, free: 5.879 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.008837, allocations: 4 kB / 1.007 GB, free: 5.875 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.423e-05/0.008851, allocations: 4.188 kB / 1.007 GB, free: 5.871 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.008854, allocations: 7.938 kB / 1.007 GB, free: 5.863 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.008856, allocations: 4 kB / 1.007 GB, free: 5.859 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003377/0.009193, allocations: 378.6 kB / 1.007 GB, free: 5.457 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.734e-05/0.009211, allocations: 19.94 kB / 1.007 GB, free: 5.438 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.00923, allocations: 11.94 kB / 1.007 GB, free: 5.426 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.243e-05/0.009302, allocations: 15.98 kB / 1.007 GB, free: 5.41 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.009347, allocations: 23.97 kB / 1.007 GB, free: 5.387 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.009359, allocations: 15.98 kB / 1.007 GB, free: 5.371 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.407e-05/0.009413, allocations: 124 kB / 1.007 GB, free: 5.25 MB / 0.9636 GB Notification: Performance of sort global known variables: time 8e-08/0.009413, allocations: 3.938 kB / 1.007 GB, free: 5.246 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001758/0.009589, allocations: 31.94 kB / 1.007 GB, free: 5.215 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der2.x,intWitRes.y,der1.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.0005105/0.0101, allocations: 0.9223 MB / 1.008 GB, free: 4.246 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002415/0.01034, allocations: 155.8 kB / 1.008 GB, free: 4.094 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.01034, allocations: 0 / 1.008 GB, free: 4.094 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001007/0.01044, allocations: 79.84 kB / 1.009 GB, free: 4.016 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.01067, allocations: 30.31 kB / 1.009 GB, free: 3.988 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.01235, allocations: 2.113 MB / 1.011 GB, free: 1.754 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.199e-05/0.01242, allocations: 112.6 kB / 1.011 GB, free: 1.621 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 5.403e-05/0.01247, allocations: 17.48 kB / 1.011 GB, free: 1.602 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.647e-05/0.01255, allocations: 60.47 kB / 1.011 GB, free: 1.543 MB / 0.9636 GB Notification: Performance of SimCode: time 5.91e-07/0.01255, allocations: 0 / 1.011 GB, free: 1.543 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01625/0.0288, allocations: 4.388 MB / 1.015 GB, free: 13.3 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.617/6.646, allocations: 10.59 kB / 1.015 GB, free: 13.29 MB / 0.9792 GB " [Timeout remaining time 293] (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 --stepSize=0.004 --timeout=800 --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) [Timeout 840.0] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.53377346880734]