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.001864/0.001864, allocations: 101.9 kB / 19.73 MB, free: 1.992 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.002447/0.002447, allocations: 215.1 kB / 23.03 MB, free: 4.422 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.522/1.522, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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 3.393/3.393, allocations: 0.5003 GB / 0.8062 GB, free: 28.2 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Derivative",fmuType="cs",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.002971/0.002971, allocations: 62.53 kB / 1.171 GB, free: 19.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.4252, allocations: 179 MB / 1.345 GB, free: 15.86 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Derivative): time 0.002893/0.4281, allocations: 1.006 MB / 1.346 GB, free: 14.86 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001629/0.4297, allocations: 1.022 MB / 1.347 GB, free: 13.82 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.4299, allocations: 7.938 kB / 1.347 GB, free: 13.81 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.43, allocations: 15.8 kB / 1.347 GB, free: 13.8 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 9.237e-05/0.4301, allocations: 23.73 kB / 1.347 GB, free: 13.77 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.000405/0.4305, allocations: 81.47 kB / 1.347 GB, free: 13.7 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002629/0.4308, allocations: 180 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.431, allocations: 56.69 kB / 1.348 GB, free: 13.45 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.4311, allocations: 71.78 kB / 1.348 GB, free: 13.38 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.4313, allocations: 83.59 kB / 1.348 GB, free: 13.3 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 3.763e-05/0.4313, allocations: 19.94 kB / 1.348 GB, free: 13.28 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.305e-05/0.4314, allocations: 20 kB / 1.348 GB, free: 13.26 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 5.341e-05/0.4314, allocations: 35.91 kB / 1.348 GB, free: 13.23 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.089e-05/0.4315, allocations: 67.64 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.4318, allocations: 191.1 kB / 1.348 GB, free: 12.97 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.4318, allocations: 0 / 1.348 GB, free: 12.97 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4318, allocations: 4 kB / 1.348 GB, free: 12.97 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.211e-05/0.4318, allocations: 3.938 kB / 1.348 GB, free: 12.96 MB / 1.045 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.0009652/0.4328, allocations: 430.3 kB / 1.349 GB, free: 12.51 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.4329, allocations: 12.02 kB / 1.349 GB, free: 12.5 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.903e-05/0.4329, allocations: 4.188 kB / 1.349 GB, free: 12.49 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.493e-05/0.4329, allocations: 50.73 kB / 1.349 GB, free: 12.43 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.433, allocations: 16.84 kB / 1.349 GB, free: 12.42 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003574/0.4334, allocations: 172.1 kB / 1.349 GB, free: 12.23 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.4334, allocations: 8.375 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.4335, allocations: 20.12 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00038/0.4338, allocations: 179.2 kB / 1.349 GB, free: 12.01 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.4339, allocations: 0 / 1.349 GB, free: 12.01 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.4339, allocations: 4 kB / 1.349 GB, free: 12.01 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.4339, allocations: 4 kB / 1.349 GB, free: 12 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.4342, allocations: 107.9 kB / 1.349 GB, free: 11.9 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.4354, allocations: 479.3 kB / 1.35 GB, free: 11.39 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004093/0.4358, allocations: 134.6 kB / 1.35 GB, free: 11.25 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.436, allocations: 88.77 kB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.436, allocations: 0 / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.4363, allocations: 149 kB / 1.35 GB, free: 10.99 MB / 1.045 GB Notification: Performance of pre-optimization done (n=19): time 1.543e-06/0.4363, allocations: 0 / 1.35 GB, free: 10.99 MB / 1.045 GB Notification: Performance of matching and sorting (n=19): time 0.0005848/0.4369, allocations: 224.5 kB / 1.35 GB, free: 10.77 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.215e-05/0.4369, allocations: 55.41 kB / 1.35 GB, free: 10.7 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.4371, allocations: 162.2 kB / 1.35 GB, free: 10.54 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.4371, allocations: 33.7 kB / 1.35 GB, free: 10.5 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.4372, allocations: 112.5 kB / 1.35 GB, free: 10.38 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.668e-05/0.4372, allocations: 75.41 kB / 1.351 GB, free: 10.31 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.001e-05/0.4373, allocations: 41.7 kB / 1.351 GB, free: 10.26 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001534/0.4375, allocations: 326.8 kB / 1.351 GB, free: 9.934 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002085/0.4377, allocations: 63.89 kB / 1.351 GB, free: 9.871 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.4379, allocations: 94.83 kB / 1.351 GB, free: 9.773 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003495/0.4383, allocations: 143.4 kB / 1.351 GB, free: 9.629 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4383, allocations: 0 / 1.351 GB, free: 9.629 MB / 1.045 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005053/0.4388, allocations: 210.5 kB / 1.351 GB, free: 9.418 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.4388, allocations: 6.188 kB / 1.351 GB, free: 9.414 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.4388, allocations: 0 / 1.351 GB, free: 9.414 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.4388, allocations: 12.02 kB / 1.351 GB, free: 9.402 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.439, allocations: 35.92 kB / 1.351 GB, free: 9.367 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.439, allocations: 3.938 kB / 1.351 GB, free: 9.363 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.4392, allocations: 35.86 kB / 1.351 GB, free: 9.328 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.4392, allocations: 11.98 kB / 1.351 GB, free: 9.316 MB / 1.045 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.0001307/0.4393, allocations: 129.8 kB / 1.352 GB, free: 9.18 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.954e-05/0.4394, allocations: 15.91 kB / 1.352 GB, free: 9.164 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000484/0.4398, allocations: 198.6 kB / 1.352 GB, free: 8.961 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.4398, allocations: 4 kB / 1.352 GB, free: 8.957 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4399, allocations: 0 / 1.352 GB, free: 8.957 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.4399, allocations: 0 / 1.352 GB, free: 8.957 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008834/0.4407, allocations: 0.5375 MB / 1.352 GB, free: 8.352 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.4407, allocations: 4 kB / 1.352 GB, free: 8.348 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.4409, allocations: 35.86 kB / 1.352 GB, free: 8.312 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.4409, allocations: 4 kB / 1.352 GB, free: 8.309 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.441, allocations: 15.92 kB / 1.352 GB, free: 8.293 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.441, allocations: 4 kB / 1.352 GB, free: 8.289 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.441, allocations: 0 / 1.352 GB, free: 8.289 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006433/0.4416, allocations: 389.6 kB / 1.353 GB, free: 7.875 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.255e-05/0.4416, allocations: 23.88 kB / 1.353 GB, free: 7.852 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.4417, allocations: 4 kB / 1.353 GB, free: 7.848 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.4418, allocations: 15.98 kB / 1.353 GB, free: 7.832 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.239e-05/0.4419, allocations: 19.97 kB / 1.353 GB, free: 7.812 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.4419, allocations: 11.98 kB / 1.353 GB, free: 7.801 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001031/0.4421, allocations: 120.1 kB / 1.353 GB, free: 7.684 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4421, allocations: 0 / 1.353 GB, free: 7.684 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002942/0.4423, allocations: 39.94 kB / 1.353 GB, free: 7.645 MB / 1.045 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.0009796/0.4433, allocations: 0.9156 MB / 1.354 GB, free: 6.688 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0004437/0.4438, allocations: 151.9 kB / 1.354 GB, free: 6.539 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/0.4438, allocations: 4 kB / 1.354 GB, free: 6.535 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.444, allocations: 86.16 kB / 1.354 GB, free: 6.453 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.4443, allocations: 31.86 kB / 1.354 GB, free: 6.422 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003142/0.4475, allocations: 2.127 MB / 1.356 GB, free: 4.176 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.4476, allocations: 112.2 kB / 1.356 GB, free: 4.039 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 7.631e-05/0.4477, allocations: 13.42 kB / 1.356 GB, free: 4.027 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.4478, allocations: 59.41 kB / 1.356 GB, free: 3.969 MB / 1.045 GB Notification: Performance of SimCode: time 6.51e-07/0.4478, allocations: 0 / 1.356 GB, free: 3.969 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.4759, allocations: 3.944 MB / 1.36 GB, free: 208 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.02, allocations: 10.45 kB / 1.36 GB, free: 200 kB / 1.045 GB " [Timeout remaining time 288] (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/jenkins1/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: 19.387735389056616]