Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.001662/0.001662, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002004/0.002004, allocations: 219.3 kB / 23.03 MB, free: 4.945 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.582/1.582, allocations: 230.6 MB / 256.8 MB, free: 7.781 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 3.238/3.238, allocations: 476.8 MB / 0.7715 GB, free: 3.926 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.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",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.002052/0.002052, allocations: 64.03 kB / 1.118 GB, free: 39.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3392/0.3413, allocations: 170 MB / 1.284 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003281/0.3446, allocations: 1.48 MB / 1.286 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00118/0.3457, allocations: 0.5583 MB / 1.286 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.368e-05/0.3458, allocations: 0 / 1.286 GB, free: 8.707 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.552e-05/0.3458, allocations: 3.938 kB / 1.286 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.672e-05/0.3459, allocations: 7.922 kB / 1.286 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006869/0.3465, allocations: 173.4 kB / 1.286 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.352e-05/0.3466, allocations: 51.84 kB / 1.286 GB, free: 8.477 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.122e-05/0.3467, allocations: 4 kB / 1.286 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.104e-05/0.3467, allocations: 19.92 kB / 1.286 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.361e-05/0.3468, allocations: 31.89 kB / 1.286 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.3468, allocations: 4 kB / 1.286 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000536/0.3474, allocations: 283.5 kB / 1.287 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.563e-05/0.3474, allocations: 15.97 kB / 1.287 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.652e-05/0.3474, allocations: 19.94 kB / 1.287 GB, free: 8.105 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003172/0.3477, allocations: 168.8 kB / 1.287 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3477, allocations: 7.938 kB / 1.287 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3477, allocations: 0 / 1.287 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.3478, allocations: 0 / 1.287 GB, free: 7.934 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000743/0.3485, allocations: 325.8 kB / 1.287 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.3485, allocations: 12.03 kB / 1.287 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.56e-05/0.3486, allocations: 4.188 kB / 1.287 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.359e-05/0.3486, allocations: 46.72 kB / 1.287 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.726e-05/0.3486, allocations: 8.891 kB / 1.287 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.3488, allocations: 114.4 kB / 1.287 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.3488, allocations: 384 / 1.287 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.3488, allocations: 12.38 kB / 1.287 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.3491, allocations: 133.4 kB / 1.287 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.3491, allocations: 0 / 1.287 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.3491, allocations: 0 / 1.287 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.3491, allocations: 3.984 kB / 1.287 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002352/0.3494, allocations: 51.97 kB / 1.288 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006022/0.35, allocations: 287.7 kB / 1.288 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.3503, allocations: 78.53 kB / 1.288 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.3504, allocations: 28.84 kB / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.3504, allocations: 0 / 1.288 GB, free: 6.711 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.014e-05/0.3504, allocations: 42.5 kB / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 9.11e-07/0.3504, allocations: 0 / 1.288 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.001745/0.3522, allocations: 0.4954 MB / 1.288 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.259e-05/0.3522, allocations: 55.34 kB / 1.288 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.3524, allocations: 101.8 kB / 1.289 GB, free: 5.934 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.3524, allocations: 29.7 kB / 1.289 GB, free: 5.898 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002248/0.3526, allocations: 92.03 kB / 1.289 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.141e-05/0.3526, allocations: 35.69 kB / 1.289 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.858e-05/0.3527, allocations: 37.7 kB / 1.289 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000306/0.353, allocations: 314.8 kB / 1.289 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.3531, allocations: 31.97 kB / 1.289 GB, free: 5.379 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.3533, allocations: 27.98 kB / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.3535, allocations: 74.33 kB / 1.289 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.3535, allocations: 0 / 1.289 GB, free: 5.277 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003491/0.3539, allocations: 126.2 kB / 1.289 GB, free: 5.148 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.3539, allocations: 8 kB / 1.289 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.3539, allocations: 320 / 1.289 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.3539, allocations: 7.922 kB / 1.289 GB, free: 5.133 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.3541, allocations: 27.98 kB / 1.289 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.3541, allocations: 7.938 kB / 1.289 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.024e-05/0.3541, allocations: 0 / 1.289 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.3542, allocations: 8.172 kB / 1.289 GB, free: 5.09 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001187/0.3543, allocations: 125.8 kB / 1.289 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.3543, allocations: 7.953 kB / 1.29 GB, free: 4.949 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004185/0.3547, allocations: 129.7 kB / 1.29 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3547, allocations: 4 kB / 1.29 GB, free: 4.809 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3547, allocations: 3.938 kB / 1.29 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.3547, allocations: 0 / 1.29 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006864/0.3554, allocations: 353.5 kB / 1.29 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3554, allocations: 0 / 1.29 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.3556, allocations: 23.98 kB / 1.29 GB, free: 4.387 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.3556, allocations: 3.938 kB / 1.29 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.3556, allocations: 4 kB / 1.29 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.3556, allocations: 0 / 1.29 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3556, allocations: 4 kB / 1.29 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005731/0.3562, allocations: 251.3 kB / 1.29 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.842e-05/0.3562, allocations: 11.92 kB / 1.29 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.3562, allocations: 4 kB / 1.29 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.3563, allocations: 7.984 kB / 1.29 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.444e-05/0.3564, allocations: 7.984 kB / 1.29 GB, free: 4.082 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.3564, allocations: 4.062 kB / 1.29 GB, free: 4.078 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.382e-05/0.3564, allocations: 83.28 kB / 1.29 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3564, allocations: 0 / 1.29 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000305/0.3567, allocations: 43.86 kB / 1.29 GB, free: 3.953 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.001206/0.3579, allocations: 0.8102 MB / 1.291 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003479/0.3583, allocations: 81.5 kB / 1.291 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3583, allocations: 4.062 kB / 1.291 GB, free: 3.035 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.3585, allocations: 43.91 kB / 1.291 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.3588, allocations: 8 kB / 1.291 GB, free: 2.984 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.3615, allocations: 1.623 MB / 1.293 GB, free: 1.289 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.711e-05/0.3616, allocations: 79.77 kB / 1.293 GB, free: 1.191 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.622e-05/0.3617, allocations: 12.61 kB / 1.293 GB, free: 1.18 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.326e-05/0.3617, allocations: 27.42 kB / 1.293 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of SimCode: time 9.42e-07/0.3617, allocations: 0 / 1.293 GB, free: 1.152 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02686/0.3886, allocations: 2.537 MB / 1.295 GB, free: 14.81 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.26, allocations: 6.703 kB / 1.296 GB, free: 14.8 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --stepSize=0.0016 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.85545347700827]