Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004763/0.004763, allocations: 95.69 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 198.1 kB / 16.68 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.527/2.527, allocations: 482.6 MB / 0.755 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 67.89 kB / 1.083 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2558, allocations: 162.3 MB / 1.242 GB, free: 9.84 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001928/0.2578, allocations: 1.275 MB / 1.243 GB, free: 8.555 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00089/0.2587, allocations: 0.6072 MB / 1.244 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.138e-05/0.2587, allocations: 0 / 1.244 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.773e-05/0.2587, allocations: 3.984 kB / 1.244 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.287e-05/0.2588, allocations: 3.938 kB / 1.244 GB, free: 7.938 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.2592, allocations: 150.8 kB / 1.244 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 5.343e-05/0.2593, allocations: 27.86 kB / 1.244 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 2.911e-05/0.2593, allocations: 0 / 1.244 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.272e-05/0.2594, allocations: 11.94 kB / 1.244 GB, free: 7.754 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.982e-05/0.2594, allocations: 4 kB / 1.244 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 9.127e-06/0.2594, allocations: 0 / 1.244 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004723/0.2599, allocations: 347.3 kB / 1.244 GB, free: 7.41 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.268e-05/0.2599, allocations: 7.922 kB / 1.244 GB, free: 7.402 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 1.934e-05/0.2599, allocations: 8 kB / 1.244 GB, free: 7.395 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002335/0.2602, allocations: 147.5 kB / 1.244 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.676e-06/0.2602, allocations: 0 / 1.244 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2602, allocations: 0 / 1.244 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.2602, allocations: 4 kB / 1.244 GB, free: 7.246 MB / 0.9981 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.0003823/0.2606, allocations: 367 kB / 1.245 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.2606, allocations: 12.03 kB / 1.245 GB, free: 6.824 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.942e-05/0.2607, allocations: 30.75 kB / 1.245 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.938e-05/0.2607, allocations: 0.9375 kB / 1.245 GB, free: 6.785 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.2608, allocations: 168.4 kB / 1.245 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.2608, allocations: 4.375 kB / 1.245 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.2608, allocations: 8.312 kB / 1.245 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.993e-05/0.2609, allocations: 46.2 kB / 1.245 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.2609, allocations: 3.938 kB / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.261, allocations: 0 / 1.245 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.261, allocations: 3.984 kB / 1.245 GB, free: 6.512 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.08e-05/0.261, allocations: 8 kB / 1.245 GB, free: 6.504 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001547/0.2612, allocations: 161.6 kB / 1.245 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.2613, allocations: 42.61 kB / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.157e-05/0.2614, allocations: 16.86 kB / 1.245 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.2614, allocations: 8.078 kB / 1.245 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.2614, allocations: 34.5 kB / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 9.81e-07/0.2614, allocations: 0 / 1.245 GB, free: 6.176 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6): time 0.0005304/0.262, allocations: 306.3 kB / 1.246 GB, free: 5.824 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.262, allocations: 55.41 kB / 1.246 GB, free: 5.758 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.015e-05/0.2621, allocations: 101.8 kB / 1.246 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.2621, allocations: 29.7 kB / 1.246 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.278e-05/0.2621, allocations: 80.14 kB / 1.246 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.898e-05/0.2622, allocations: 23.78 kB / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.318e-05/0.2622, allocations: 25.7 kB / 1.246 GB, free: 5.477 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2623, allocations: 310.8 kB / 1.246 GB, free: 5.164 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.424e-05/0.2624, allocations: 12 kB / 1.246 GB, free: 5.152 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.061e-05/0.2624, allocations: 11.98 kB / 1.246 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.497e-05/0.2624, allocations: 32.8 kB / 1.246 GB, free: 5.105 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.2624, allocations: 7.938 kB / 1.246 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.649e-05/0.2625, allocations: 73.73 kB / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/0.2626, allocations: 4 kB / 1.246 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.2626, allocations: 0 / 1.246 GB, free: 5.016 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.758e-06/0.2626, allocations: 4.516 kB / 1.246 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.406e-05/0.2626, allocations: 8 kB / 1.246 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.2626, allocations: 4.062 kB / 1.246 GB, free: 5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.44e-05/0.2627, allocations: 3.938 kB / 1.246 GB, free: 4.996 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-06/0.2627, allocations: 4 kB / 1.246 GB, free: 4.992 MB / 0.9981 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 7.06e-05/0.2627, allocations: 117.8 kB / 1.246 GB, free: 4.867 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/0.2628, allocations: 7.938 kB / 1.246 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.2629, allocations: 69.59 kB / 1.246 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2629, allocations: 3.984 kB / 1.247 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2629, allocations: 0 / 1.247 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2629, allocations: 4 kB / 1.247 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002847/0.2632, allocations: 319.3 kB / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.2632, allocations: 0 / 1.247 GB, free: 4.402 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.489e-05/0.2633, allocations: 12 kB / 1.247 GB, free: 4.391 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.2633, allocations: 8.031 kB / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.2633, allocations: 0 / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2633, allocations: 0 / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2633, allocations: 0 / 1.247 GB, free: 4.383 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001706/0.2635, allocations: 192.4 kB / 1.247 GB, free: 4.176 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.789e-05/0.2635, allocations: 81.09 kB / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.199e-05/0.2636, allocations: 4 kB / 1.247 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.147e-05/0.2636, allocations: 4.062 kB / 1.247 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.545e-05/0.2636, allocations: 8 kB / 1.247 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.2636, allocations: 0 / 1.247 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.414e-05/0.2637, allocations: 79.28 kB / 1.247 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2637, allocations: 0 / 1.247 GB, free: 3.984 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002148/0.2639, allocations: 19.92 kB / 1.247 GB, free: 3.965 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0004769/0.2644, allocations: 0.7448 MB / 1.248 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 8.865e-05/0.2645, allocations: 28 kB / 1.248 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2645, allocations: 0 / 1.248 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 3.083e-05/0.2645, allocations: 23.92 kB / 1.248 GB, free: 3.141 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001911/0.2647, allocations: 5.562 kB / 1.248 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001066/0.2658, allocations: 1.326 MB / 1.249 GB, free: 1.723 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.2661, allocations: 0.6845 MB / 1.25 GB, free: 1.012 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.405e-05/0.2661, allocations: 4 kB / 1.25 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.355e-05/0.2661, allocations: 11.44 kB / 1.25 GB, free: 1 MB / 0.9981 GB Notification: Performance of SimCode: time 1.8e-07/0.2661, allocations: 0 / 1.25 GB, free: 1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.402/1.668, allocations: 1.596 MB / 1.252 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/13.99, allocations: 5.625 kB / 1.252 GB, free: 14.37 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=400 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches