Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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.001248/0.001248, allocations: 120 kB / 17.17 MB, free: 5.977 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.001334/0.001334, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.424/1.424, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.822/2.822, allocations: 0.49 GB / 0.7923 GB, free: 1.316 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_DerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",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.002066/0.002066, allocations: 80.16 kB / 1.15 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9421/0.9441, allocations: 176.1 MB / 1.321 GB, free: 24.75 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001818/0.9459, allocations: 1.295 MB / 1.323 GB, free: 23.84 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0007656/0.9467, allocations: 0.6137 MB / 1.323 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.334e-05/0.9467, allocations: 0 / 1.323 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.49e-05/0.9467, allocations: 3.938 kB / 1.323 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.434e-05/0.9468, allocations: 0 / 1.323 GB, free: 23.41 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004285/0.9472, allocations: 145.9 kB / 1.323 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 5.711e-05/0.9473, allocations: 29.59 kB / 1.324 GB, free: 23.33 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.715e-05/0.9473, allocations: 3 kB / 1.324 GB, free: 23.33 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.362e-05/0.9473, allocations: 5.844 kB / 1.324 GB, free: 23.33 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.32e-05/0.9474, allocations: 9 kB / 1.324 GB, free: 23.32 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 9.778e-06/0.9474, allocations: 0 / 1.324 GB, free: 23.32 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003705/0.9478, allocations: 343.8 kB / 1.324 GB, free: 23.22 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.9478, allocations: 10.2 kB / 1.324 GB, free: 23.22 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.94e-05/0.9478, allocations: 10.62 kB / 1.324 GB, free: 23.21 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.948, allocations: 146.4 kB / 1.324 GB, free: 23.16 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.948, allocations: 0 / 1.324 GB, free: 23.16 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.332e-06/0.948, allocations: 0 / 1.324 GB, free: 23.16 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.948, allocations: 0 / 1.324 GB, free: 23.16 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003643/0.9484, allocations: 362.4 kB / 1.324 GB, free: 22.78 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.9484, allocations: 18.52 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.747e-05/0.9484, allocations: 192 / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.931e-05/0.9484, allocations: 38.73 kB / 1.324 GB, free: 22.73 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.633e-05/0.9485, allocations: 7.531 kB / 1.324 GB, free: 22.72 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.239e-05/0.9485, allocations: 163.6 kB / 1.325 GB, free: 22.53 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.9486, allocations: 2.938 kB / 1.325 GB, free: 22.53 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.9486, allocations: 384 / 1.325 GB, free: 22.53 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.036e-05/0.9487, allocations: 45.08 kB / 1.325 GB, free: 22.49 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.9487, allocations: 0 / 1.325 GB, free: 22.49 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.777e-06/0.9487, allocations: 0 / 1.325 GB, free: 22.49 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.9487, allocations: 0 / 1.325 GB, free: 22.49 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.618e-05/0.9487, allocations: 19.23 kB / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001258/0.9488, allocations: 162.1 kB / 1.325 GB, free: 22.28 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.949, allocations: 38.55 kB / 1.325 GB, free: 22.25 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.929e-05/0.9491, allocations: 18.02 kB / 1.325 GB, free: 22.24 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.9491, allocations: 3.938 kB / 1.325 GB, free: 22.24 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.914e-05/0.9491, allocations: 40.94 kB / 1.325 GB, free: 22.19 MB / 1.061 GB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.9491, allocations: 0 / 1.325 GB, free: 22.19 MB / 1.061 GB Notification: Performance of matching and sorting (n=6): time 0.0005309/0.9496, allocations: 309.8 kB / 1.325 GB, free: 21.91 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.869e-05/0.9496, allocations: 55.34 kB / 1.325 GB, free: 21.84 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.495e-05/0.9497, allocations: 100.2 kB / 1.325 GB, free: 21.74 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 8.085e-06/0.9497, allocations: 28.48 kB / 1.325 GB, free: 21.71 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.443e-05/0.9497, allocations: 84.14 kB / 1.325 GB, free: 21.62 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.9497, allocations: 26.56 kB / 1.325 GB, free: 21.6 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-05/0.9498, allocations: 22.56 kB / 1.325 GB, free: 21.58 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.203e-05/0.9498, allocations: 314.8 kB / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.5e-05/0.9498, allocations: 15.78 kB / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.821e-05/0.9498, allocations: 9.469 kB / 1.326 GB, free: 21.25 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.8e-05/0.9499, allocations: 29.23 kB / 1.326 GB, free: 21.24 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-07/0.9499, allocations: 0 / 1.326 GB, free: 21.24 MB / 1.061 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.102e-05/0.95, allocations: 70.73 kB / 1.326 GB, free: 21.19 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.95, allocations: 5.469 kB / 1.326 GB, free: 21.19 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.95, allocations: 7.484 kB / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.95, allocations: 0 / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.727e-05/0.9501, allocations: 11.22 kB / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.9501, allocations: 4 kB / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.696e-05/0.9501, allocations: 0 / 1.326 GB, free: 21.18 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.9501, allocations: 2.5 kB / 1.326 GB, free: 21.18 MB / 1.061 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 (7): * Single equations (assignments): 7 * 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 4.574e-05/0.9501, allocations: 114.3 kB / 1.326 GB, free: 21.06 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.281e-05/0.9501, allocations: 17.88 kB / 1.326 GB, free: 21.05 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.9503, allocations: 72.75 kB / 1.326 GB, free: 20.99 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.9503, allocations: 2.562 kB / 1.326 GB, free: 20.99 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.9503, allocations: 0 / 1.326 GB, free: 20.99 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.9503, allocations: 7.375 kB / 1.326 GB, free: 20.98 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.9505, allocations: 318.5 kB / 1.326 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.9505, allocations: 0 / 1.326 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.8e-05/0.9505, allocations: 13.95 kB / 1.326 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.9505, allocations: 0 / 1.326 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.9505, allocations: 6.562 kB / 1.326 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.9505, allocations: 0 / 1.326 GB, free: 20.65 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.9505, allocations: 3.984 kB / 1.326 GB, free: 20.64 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.9507, allocations: 187.6 kB / 1.327 GB, free: 20.48 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.827e-05/0.9507, allocations: 83.14 kB / 1.327 GB, free: 20.39 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.9507, allocations: 0 / 1.327 GB, free: 20.39 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.8e-05/0.9508, allocations: 6.5 kB / 1.327 GB, free: 20.38 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.371e-05/0.9508, allocations: 6.719 kB / 1.327 GB, free: 20.38 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.9508, allocations: 7.281 kB / 1.327 GB, free: 20.38 MB / 1.061 GB Notification: Performance of sorting global known variables: time 1.647e-05/0.9508, allocations: 78.03 kB / 1.327 GB, free: 20.3 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/0.9508, allocations: 4.062 kB / 1.327 GB, free: 20.3 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002328/0.9511, allocations: 29.38 kB / 1.327 GB, free: 20.29 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0003233/0.9514, allocations: 0.7242 MB / 1.328 GB, free: 19.6 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 9.497e-05/0.9515, allocations: 30.78 kB / 1.328 GB, free: 19.59 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.9515, allocations: 4.062 kB / 1.328 GB, free: 19.59 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 2.408e-05/0.9515, allocations: 17.92 kB / 1.328 GB, free: 19.58 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002097/0.9517, allocations: 13.39 kB / 1.328 GB, free: 19.57 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008482/0.9526, allocations: 1.316 MB / 1.329 GB, free: 18.31 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.863e-05/0.9527, allocations: 0.6804 MB / 1.33 GB, free: 17.62 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.634e-05/0.9527, allocations: 9.891 kB / 1.33 GB, free: 17.61 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.72e-05/0.9527, allocations: 17.22 kB / 1.33 GB, free: 17.6 MB / 1.061 GB Notification: Performance of SimCode: time 2.5e-07/0.9527, allocations: 96 / 1.33 GB, free: 17.6 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.972, allocations: 1.685 MB / 1.331 GB, free: 17.23 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.037/9.009, allocations: 15.62 kB / 1.331 GB, free: 17.23 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --stepSize=0.0016 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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: 15.149971515988]