Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001088, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001575/0.001575, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.463/2.463, allocations: 390.9 MB / 0.666 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003207/0.0003208, allocations: 8 kB / 0.8154 GB, free: 13.57 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7771/0.7774, allocations: 142.4 MB / 0.9544 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001528/0.779, allocations: 1.167 MB / 0.9556 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008997/0.7799, allocations: 0.5913 MB / 0.9562 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.001e-05/0.78, allocations: 5.125 kB / 0.9562 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.647e-05/0.78, allocations: 3.938 kB / 0.9562 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.247e-05/0.7801, allocations: 13.05 kB / 0.9562 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004685/0.7805, allocations: 132.9 kB / 0.9563 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.26e-05/0.7806, allocations: 48.62 kB / 0.9563 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.387e-05/0.7807, allocations: 2.844 kB / 0.9564 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.957e-05/0.7807, allocations: 25.47 kB / 0.9564 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.112e-05/0.7808, allocations: 23.73 kB / 0.9564 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.7808, allocations: 3.156 kB / 0.9564 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004066/0.7812, allocations: 341.8 kB / 0.9567 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.259e-05/0.7812, allocations: 10.7 kB / 0.9567 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.703e-05/0.7813, allocations: 38.42 kB / 0.9568 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001689/0.7814, allocations: 112 kB / 0.9569 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.7815, allocations: 0.9062 kB / 0.9569 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.012e-06/0.7815, allocations: 0 / 0.9569 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.606e-06/0.7815, allocations: 0 / 0.9569 GB, free: 5.809 MB / 0.7169 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.0004258/0.7819, allocations: 391.5 kB / 0.9573 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.7819, allocations: 9.188 kB / 0.9573 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.792e-05/0.782, allocations: 11.55 kB / 0.9573 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.391e-05/0.7821, allocations: 168.5 kB / 0.9574 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.7821, allocations: 7.125 kB / 0.9574 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.158e-05/0.7821, allocations: 5.656 kB / 0.9574 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002059/0.7823, allocations: 81.19 kB / 0.9575 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.7824, allocations: 11.92 kB / 0.9575 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.7824, allocations: 8.812 kB / 0.9575 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.7824, allocations: 1.406 kB / 0.9575 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002057/0.7826, allocations: 56.36 kB / 0.9576 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004351/0.783, allocations: 326.2 kB / 0.9579 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002519/0.7833, allocations: 93.88 kB / 0.958 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.932e-05/0.7834, allocations: 30.81 kB / 0.958 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.7834, allocations: 5.703 kB / 0.958 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.7835, allocations: 32.38 kB / 0.9581 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.7835, allocations: 0 / 0.9581 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001399/0.7849, allocations: 0.6692 MB / 0.9587 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.7849, allocations: 57.91 kB / 0.9588 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.403e-05/0.785, allocations: 97.91 kB / 0.9589 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.785, allocations: 31.11 kB / 0.9589 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.454e-05/0.785, allocations: 94.39 kB / 0.959 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.645e-05/0.7851, allocations: 39.52 kB / 0.959 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/0.7851, allocations: 0.8438 kB / 0.959 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.37e-05/0.7851, allocations: 320.5 kB / 0.9593 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.7852, allocations: 33.59 kB / 0.9594 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.7853, allocations: 46.31 kB / 0.9594 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.7855, allocations: 32.44 kB / 0.9594 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.7855, allocations: 0 / 0.9594 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002626/0.7857, allocations: 129.2 kB / 0.9596 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.7858, allocations: 14.83 kB / 0.9596 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.7858, allocations: 0 / 0.9596 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.7858, allocations: 1.094 kB / 0.9596 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.7859, allocations: 31.11 kB / 0.9596 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.7859, allocations: 0 / 0.9596 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.112e-05/0.786, allocations: 9.062 kB / 0.9596 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-06/0.786, allocations: 3.844 kB / 0.9596 GB, free: 3.293 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.486e-05/0.7861, allocations: 120.9 kB / 0.9597 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.836e-05/0.7861, allocations: 10.2 kB / 0.9597 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003165/0.7864, allocations: 134.7 kB / 0.9599 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.7865, allocations: 5.516 kB / 0.9599 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.7865, allocations: 4 kB / 0.9599 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.7865, allocations: 5.922 kB / 0.9599 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004435/0.7869, allocations: 394.8 kB / 0.9603 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.7869, allocations: 0.75 kB / 0.9603 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.7871, allocations: 30.67 kB / 0.9603 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.7871, allocations: 0 / 0.9603 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.7871, allocations: 5.359 kB / 0.9603 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.7871, allocations: 5.375 kB / 0.9603 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.7871, allocations: 0 / 0.9603 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004035/0.7875, allocations: 261.8 kB / 0.9606 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.951e-05/0.7876, allocations: 79.86 kB / 0.9606 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.7876, allocations: 0 / 0.9606 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.7877, allocations: 14.86 kB / 0.9606 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.76e-05/0.7877, allocations: 4.125 kB / 0.9606 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.657e-06/0.7877, allocations: 6.688 kB / 0.9607 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.332e-05/0.7878, allocations: 86.02 kB / 0.9607 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7878, allocations: 0 / 0.9607 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002806/0.788, allocations: 42.06 kB / 0.9608 GB, free: 2.281 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002376/0.7883, allocations: 145.3 kB / 0.9609 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003005/0.7886, allocations: 87.08 kB / 0.961 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7886, allocations: 0 / 0.961 GB, free: 2.137 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.7887, allocations: 55.53 kB / 0.9611 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.789, allocations: 13.48 kB / 0.9611 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005993/0.7896, allocations: 377.4 kB / 0.9614 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001386/0.7898, allocations: 0.6915 MB / 0.9621 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.461e-05/0.7899, allocations: 19.61 kB / 0.9621 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.777e-05/0.7899, allocations: 17.03 kB / 0.9621 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.7899, allocations: 0 / 0.9621 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of Templates: time 0.003337/0.7932, allocations: 1.068 MB / 0.9632 GB, free: 0.5391 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches