Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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.001258/0.001258, allocations: 114.7 kB / 17.16 MB, free: 5.895 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.001309/0.001309, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.403/1.403, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.75/2.75, allocations: 0.49 GB / 0.7923 GB, free: 1.316 MB / 0.6231 GB " [Timeout remaining time 177] 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_dp_DerivativeCheck2,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.001909/0.001909, allocations: 67.91 kB / 1.15 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9411/0.943, allocations: 176.1 MB / 1.321 GB, free: 24.79 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001944/0.9449, allocations: 1.305 MB / 1.323 GB, free: 23.87 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0007916/0.9457, allocations: 0.6089 MB / 1.323 GB, free: 23.45 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.334e-05/0.9458, allocations: 0 / 1.323 GB, free: 23.45 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.13e-05/0.9458, allocations: 3.281 kB / 1.323 GB, free: 23.45 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.087e-05/0.9458, allocations: 7.938 kB / 1.323 GB, free: 23.44 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004597/0.9463, allocations: 147.1 kB / 1.323 GB, free: 23.37 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 5.859e-05/0.9463, allocations: 31.73 kB / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.568e-05/0.9464, allocations: 0 / 1.324 GB, free: 23.36 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.458e-05/0.9464, allocations: 16.42 kB / 1.324 GB, free: 23.35 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.59e-05/0.9465, allocations: 13.88 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.142e-05/0.9465, allocations: 2.781 kB / 1.324 GB, free: 23.34 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000373/0.9468, allocations: 346.1 kB / 1.324 GB, free: 23.24 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.171e-05/0.9469, allocations: 10.47 kB / 1.324 GB, free: 23.23 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.137e-05/0.9469, allocations: 16.47 kB / 1.324 GB, free: 23.23 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.9471, allocations: 157.2 kB / 1.324 GB, free: 23.17 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.9471, allocations: 0 / 1.324 GB, free: 23.17 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.352e-06/0.9471, allocations: 0 / 1.324 GB, free: 23.17 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.9471, allocations: 0 / 1.324 GB, free: 23.17 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003767/0.9475, allocations: 378.2 kB / 1.324 GB, free: 22.78 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.9475, allocations: 12.8 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.415e-05/0.9475, allocations: 3.844 kB / 1.324 GB, free: 22.77 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.203e-05/0.9476, allocations: 37.56 kB / 1.324 GB, free: 22.73 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.166e-05/0.9476, allocations: 3.969 kB / 1.324 GB, free: 22.73 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.713e-05/0.9477, allocations: 164.3 kB / 1.325 GB, free: 22.53 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.9477, allocations: 7.25 kB / 1.325 GB, free: 22.53 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.9477, allocations: 3.438 kB / 1.325 GB, free: 22.53 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.9478, allocations: 49.77 kB / 1.325 GB, free: 22.49 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.9478, allocations: 10.8 kB / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.9479, allocations: 0 / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.9479, allocations: 0 / 1.325 GB, free: 22.48 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.148e-05/0.9479, allocations: 23.17 kB / 1.325 GB, free: 22.47 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001539/0.9481, allocations: 166 kB / 1.325 GB, free: 22.27 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.9482, allocations: 60.95 kB / 1.325 GB, free: 22.23 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.007e-05/0.9482, allocations: 24.28 kB / 1.325 GB, free: 22.22 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.9482, allocations: 0 / 1.325 GB, free: 22.22 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.9483, allocations: 41.78 kB / 1.325 GB, free: 22.18 MB / 1.061 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.9483, allocations: 4 kB / 1.325 GB, free: 22.17 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.001094/0.9494, allocations: 0.5853 MB / 1.326 GB, free: 21.65 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.695e-05/0.9494, allocations: 54.16 kB / 1.326 GB, free: 21.59 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.366e-05/0.9494, allocations: 95.83 kB / 1.326 GB, free: 21.49 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.9494, allocations: 33.77 kB / 1.326 GB, free: 21.45 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.728e-05/0.9495, allocations: 84.14 kB / 1.326 GB, free: 21.37 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.42e-05/0.9495, allocations: 44.28 kB / 1.326 GB, free: 21.33 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.372e-05/0.9495, allocations: 26.47 kB / 1.326 GB, free: 21.31 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.737e-05/0.9496, allocations: 317.1 kB / 1.326 GB, free: 21 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.937e-05/0.9496, allocations: 27 kB / 1.326 GB, free: 20.98 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.321e-05/0.9496, allocations: 21.98 kB / 1.326 GB, free: 20.98 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.843e-05/0.9497, allocations: 54.3 kB / 1.326 GB, free: 20.95 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.9497, allocations: 4 kB / 1.326 GB, free: 20.95 MB / 1.061 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000121/0.9498, allocations: 103.5 kB / 1.326 GB, free: 20.89 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.215e-05/0.9499, allocations: 3.062 kB / 1.326 GB, free: 20.89 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.9499, allocations: 3.938 kB / 1.326 GB, free: 20.89 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.9499, allocations: 2.969 kB / 1.326 GB, free: 20.89 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.983e-05/0.95, allocations: 24.98 kB / 1.326 GB, free: 20.88 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.95, allocations: 0 / 1.326 GB, free: 20.88 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.27e-05/0.95, allocations: 0 / 1.326 GB, free: 20.88 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.95, allocations: 7.344 kB / 1.326 GB, free: 20.88 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 (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 5.235e-05/0.9501, allocations: 122.8 kB / 1.327 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.341e-05/0.9501, allocations: 2.906 kB / 1.327 GB, free: 20.75 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001656/0.9502, allocations: 104.2 kB / 1.327 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.9502, allocations: 2.688 kB / 1.327 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.9503, allocations: 0 / 1.327 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.9503, allocations: 0 / 1.327 GB, free: 20.68 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.9505, allocations: 355 kB / 1.327 GB, free: 20.35 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.9505, allocations: 0 / 1.327 GB, free: 20.35 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.9506, allocations: 27.98 kB / 1.327 GB, free: 20.34 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.9506, allocations: 0 / 1.327 GB, free: 20.34 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.9507, allocations: 6.938 kB / 1.327 GB, free: 20.34 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.9507, allocations: 0 / 1.327 GB, free: 20.34 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.9507, allocations: 0 / 1.327 GB, free: 20.34 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001904/0.9508, allocations: 216.3 kB / 1.327 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.983e-05/0.9509, allocations: 84.53 kB / 1.327 GB, free: 20.08 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.9509, allocations: 2.906 kB / 1.327 GB, free: 20.08 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.345e-05/0.951, allocations: 4 kB / 1.327 GB, free: 20.07 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.758e-05/0.951, allocations: 8.656 kB / 1.327 GB, free: 20.07 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.951, allocations: 10.69 kB / 1.327 GB, free: 20.07 MB / 1.061 GB Notification: Performance of sorting global known variables: time 1.849e-05/0.951, allocations: 77.88 kB / 1.327 GB, free: 19.99 MB / 1.061 GB Notification: Performance of sort global known variables: time 7.1e-08/0.951, allocations: 3.938 kB / 1.327 GB, free: 19.99 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002539/0.9513, allocations: 39.41 kB / 1.327 GB, free: 19.97 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0004191/0.9517, allocations: 0.7942 MB / 1.328 GB, free: 19.26 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000128/0.9518, allocations: 59.22 kB / 1.328 GB, free: 19.24 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.9518, allocations: 2.844 kB / 1.328 GB, free: 19.24 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 4.045e-05/0.9519, allocations: 34.42 kB / 1.328 GB, free: 19.23 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.9521, allocations: 6.812 kB / 1.328 GB, free: 19.23 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.9533, allocations: 1.501 MB / 1.33 GB, free: 17.88 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001244/0.9535, allocations: 0.6904 MB / 1.33 GB, free: 17.18 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.39e-05/0.9535, allocations: 13.06 kB / 1.33 GB, free: 17.18 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.023e-05/0.9535, allocations: 17.28 kB / 1.331 GB, free: 17.16 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/0.9535, allocations: 0 / 1.331 GB, free: 17.16 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02038/0.9739, allocations: 2.137 MB / 1.333 GB, free: 16.76 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.985/8.959, allocations: 10.88 kB / 1.333 GB, free: 16.75 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --stepSize=0.0016 --timeout=400 --tolerance=1e-08 Buildings_12_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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: 14.969296420982573]