Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001339/0.001339, allocations: 99.66 kB / 18.94 MB, free: 2.84 MB / 14.72 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.001435/0.001435, allocations: 220 kB / 22.24 MB, free: 5.109 MB / 14.72 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 1.503/1.503, allocations: 230.6 MB / 256 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.927/2.927, allocations: 476 MB / 0.7699 GB, free: 4.754 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 67.38 kB / 1.117 GB, free: 41.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3341, allocations: 170 MB / 1.283 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002498/0.3366, allocations: 1.004 MB / 1.284 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001463/0.338, allocations: 1.022 MB / 1.285 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.3381, allocations: 4 kB / 1.285 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001515/0.3383, allocations: 23.73 kB / 1.285 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.209e-05/0.3383, allocations: 23.75 kB / 1.285 GB, free: 10.31 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003213/0.3387, allocations: 75.84 kB / 1.285 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.3389, allocations: 180 kB / 1.285 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.3391, allocations: 52.47 kB / 1.285 GB, free: 10.01 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.3392, allocations: 75.75 kB / 1.285 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.3393, allocations: 63.62 kB / 1.285 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.3393, allocations: 16 kB / 1.285 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 5.658e-05/0.3394, allocations: 24 kB / 1.285 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.288e-05/0.3394, allocations: 39.84 kB / 1.285 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.589e-05/0.3395, allocations: 63.7 kB / 1.285 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002602/0.3397, allocations: 192.5 kB / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3397, allocations: 0 / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3397, allocations: 0 / 1.285 GB, free: 9.547 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.3397, allocations: 0 / 1.285 GB, free: 9.547 MB / 0.9825 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.0008317/0.3406, allocations: 432.2 kB / 1.286 GB, free: 9.09 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.3406, allocations: 8.031 kB / 1.286 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.559e-05/0.3407, allocations: 54.73 kB / 1.286 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.207e-05/0.3407, allocations: 24.73 kB / 1.286 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.3411, allocations: 166.8 kB / 1.286 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.3411, allocations: 12.31 kB / 1.286 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.334e-05/0.3411, allocations: 16.38 kB / 1.286 GB, free: 8.781 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003442/0.3415, allocations: 183 kB / 1.286 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3415, allocations: 4 kB / 1.286 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.3415, allocations: 4 kB / 1.286 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.3415, allocations: 8 kB / 1.286 GB, free: 8.574 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002827/0.3418, allocations: 103.9 kB / 1.286 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.3428, allocations: 475.4 kB / 1.287 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003929/0.3432, allocations: 138.7 kB / 1.287 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.3434, allocations: 72.83 kB / 1.287 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.635e-05/0.3434, allocations: 4 kB / 1.287 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002771/0.3437, allocations: 152.9 kB / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=19): time 1.744e-06/0.3437, allocations: 0 / 1.287 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of matching and sorting (n=19): time 0.0005716/0.3443, allocations: 231.5 kB / 1.287 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.3443, allocations: 51.41 kB / 1.287 GB, free: 7.281 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.3445, allocations: 165.2 kB / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.3445, allocations: 33.7 kB / 1.288 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.403e-05/0.3446, allocations: 112.5 kB / 1.288 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.774e-05/0.3447, allocations: 75.41 kB / 1.288 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.679e-05/0.3447, allocations: 41.7 kB / 1.288 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3449, allocations: 326.8 kB / 1.288 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001995/0.3451, allocations: 59.95 kB / 1.288 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.3453, allocations: 92.11 kB / 1.288 GB, free: 6.359 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003455/0.3457, allocations: 156.4 kB / 1.288 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3457, allocations: 0 / 1.288 GB, free: 6.203 MB / 0.9825 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004948/0.3462, allocations: 209.5 kB / 1.289 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.3462, allocations: 8.031 kB / 1.289 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.014e-06/0.3462, allocations: 3.938 kB / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.3462, allocations: 0 / 1.289 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.3464, allocations: 47.95 kB / 1.289 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.3464, allocations: 3.984 kB / 1.289 GB, free: 5.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.3466, allocations: 23.88 kB / 1.289 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.3466, allocations: 11.94 kB / 1.289 GB, free: 5.895 MB / 0.9825 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 0.000123/0.3467, allocations: 129.7 kB / 1.289 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.3467, allocations: 19.91 kB / 1.289 GB, free: 5.738 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004381/0.3472, allocations: 194.6 kB / 1.289 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3472, allocations: 0 / 1.289 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.3472, allocations: 4 kB / 1.289 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3472, allocations: 0 / 1.289 GB, free: 5.539 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009112/0.3481, allocations: 0.5364 MB / 1.29 GB, free: 4.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3481, allocations: 7.938 kB / 1.29 GB, free: 4.93 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001729/0.3483, allocations: 31.97 kB / 1.29 GB, free: 4.898 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.314e-06/0.3483, allocations: 7.938 kB / 1.29 GB, free: 4.891 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.3483, allocations: 8 kB / 1.29 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3483, allocations: 0 / 1.29 GB, free: 4.883 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3483, allocations: 7.938 kB / 1.29 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006305/0.3489, allocations: 386.6 kB / 1.29 GB, free: 4.465 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.289e-05/0.349, allocations: 23.78 kB / 1.29 GB, free: 4.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.349, allocations: 4 kB / 1.29 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.3491, allocations: 15.98 kB / 1.29 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.349e-05/0.3492, allocations: 27.89 kB / 1.29 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.499e-05/0.3492, allocations: 8 kB / 1.29 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001052/0.3493, allocations: 122.5 kB / 1.29 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of sort global known variables: time 6e-08/0.3493, allocations: 0 / 1.29 GB, free: 4.27 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002747/0.3496, allocations: 36 kB / 1.29 GB, free: 4.234 MB / 0.9825 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.0009616/0.3506, allocations: 0.9086 MB / 1.291 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004384/0.351, allocations: 160.6 kB / 1.291 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.351, allocations: 4 kB / 1.291 GB, free: 3.125 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.3512, allocations: 83.83 kB / 1.291 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003543/0.3515, allocations: 27.94 kB / 1.291 GB, free: 3.016 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002876/0.3544, allocations: 2.115 MB / 1.293 GB, free: 0.7734 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001123/0.3545, allocations: 116.2 kB / 1.294 GB, free: 0.6406 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.208e-05/0.3546, allocations: 17.42 kB / 1.294 GB, free: 0.6211 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.3547, allocations: 59.36 kB / 1.294 GB, free: 0.5625 MB / 0.9825 GB Notification: Performance of SimCode: time 7.72e-07/0.3547, allocations: 0 / 1.294 GB, free: 0.5625 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03291/0.3876, allocations: 4.265 MB / 1.298 GB, free: 12.46 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.01, allocations: 0 / 1.298 GB, free: 12.46 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv --start-time 0 --stop-time 10 --timeout 400 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable der1.y in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv. Warning: Get data of variable der1.y from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv failed! Error: Could not read variable intWitRes.u in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv. Warning: Get data of variable intWitRes.u from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv failed! Error: Could not read variable der2.y in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv. Warning: Get data of variable der2.y from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv failed! Error: Could not read variable der1.T in file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv. Warning: Get data of variable der1.T from file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Derivative_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.83900003740564]