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.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.0009766/0.0009766, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.001003/0.001003, allocations: 173 kB / 23.49 MB, free: 1.055 MB / 18.57 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 0.9232/0.9232, allocations: 177.1 MB / 203.8 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.121/2.121, allocations: 429.5 MB / 0.6736 GB, free: 4.031 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 0.8782 GB, free: 6.613 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.375e-05/2.589e-05, allocations: 5.125 kB / 0.8782 GB, free: 6.609 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001712/0.001737, allocations: 1.35 MB / 0.8795 GB, free: 5.266 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0007354/0.002473, allocations: 0.5793 MB / 0.8801 GB, free: 4.691 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.623e-05/0.002499, allocations: 0 / 0.8801 GB, free: 4.691 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.88e-05/0.002518, allocations: 1.125 kB / 0.8801 GB, free: 4.691 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.304e-05/0.002561, allocations: 4 kB / 0.8801 GB, free: 4.688 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004647/0.003026, allocations: 148.2 kB / 0.8802 GB, free: 4.543 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 5.998e-05/0.003086, allocations: 20.53 kB / 0.8803 GB, free: 4.523 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.188e-05/0.003128, allocations: 4 kB / 0.8803 GB, free: 4.52 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 6.442e-05/0.003192, allocations: 16.55 kB / 0.8803 GB, free: 4.504 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 5.041e-05/0.003242, allocations: 4 kB / 0.8803 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.476e-05/0.003257, allocations: 1.031 kB / 0.8803 GB, free: 4.5 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000294/0.003551, allocations: 275.4 kB / 0.8805 GB, free: 4.23 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.392e-05/0.003565, allocations: 4.734 kB / 0.8806 GB, free: 4.227 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.821e-05/0.003583, allocations: 4 kB / 0.8806 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001962/0.003779, allocations: 160.7 kB / 0.8807 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.003781, allocations: 0 / 0.8807 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.21e-07/0.003782, allocations: 0 / 0.8807 GB, free: 4.066 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.067e-06/0.003786, allocations: 0 / 0.8807 GB, free: 4.066 MB / 0.8386 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.0003573/0.004144, allocations: 389.1 kB / 0.8811 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.004182, allocations: 12.03 kB / 0.8811 GB, free: 3.637 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.021e-05/0.004223, allocations: 1.469 kB / 0.8811 GB, free: 3.637 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.13e-05/0.004314, allocations: 109.7 kB / 0.8812 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.004326, allocations: 384 / 0.8812 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.004351, allocations: 16.31 kB / 0.8812 GB, free: 3.488 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.49e-05/0.004446, allocations: 60.72 kB / 0.8813 GB, free: 3.418 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.004453, allocations: 4.125 kB / 0.8813 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.004462, allocations: 1.281 kB / 0.8813 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.00447, allocations: 384 / 0.8813 GB, free: 3.414 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.131e-05/0.004501, allocations: 23.91 kB / 0.8813 GB, free: 3.391 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000125/0.004626, allocations: 124.3 kB / 0.8814 GB, free: 3.238 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001635/0.004789, allocations: 54.98 kB / 0.8815 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.612e-05/0.004815, allocations: 11.69 kB / 0.8815 GB, free: 3.156 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.659e-05/0.004832, allocations: 4 kB / 0.8815 GB, free: 3.152 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.004859, allocations: 33.39 kB / 0.8815 GB, free: 3.109 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 8.82e-07/0.00486, allocations: 0 / 0.8815 GB, free: 3.109 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6): time 0.000487/0.005347, allocations: 229.8 kB / 0.8817 GB, free: 2.848 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.843e-05/0.005375, allocations: 59.34 kB / 0.8818 GB, free: 2.777 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.214e-05/0.005437, allocations: 154.6 kB / 0.8819 GB, free: 2.609 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.00545, allocations: 26.3 kB / 0.882 GB, free: 2.578 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.394e-05/0.005483, allocations: 130.9 kB / 0.8821 GB, free: 2.445 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.608e-05/0.00551, allocations: 25.31 kB / 0.8821 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.005537, allocations: 23.38 kB / 0.8821 GB, free: 2.391 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.005641, allocations: 496.1 kB / 0.8826 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.854e-05/0.00566, allocations: 11.98 kB / 0.8826 GB, free: 1.883 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.379e-05/0.005673, allocations: 11.94 kB / 0.8826 GB, free: 1.871 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.219e-05/0.005716, allocations: 27.69 kB / 0.8827 GB, free: 1.84 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.005716, allocations: 4 kB / 0.8827 GB, free: 1.836 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7) (initialization): time 6.695e-05/0.005783, allocations: 61.62 kB / 0.8827 GB, free: 1.77 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.005795, allocations: 8 kB / 0.8827 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.005802, allocations: 64 / 0.8827 GB, free: 1.762 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.005816, allocations: 4 kB / 0.8827 GB, free: 1.758 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.078e-05/0.005857, allocations: 15.98 kB / 0.8827 GB, free: 1.742 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.974e-06/0.005864, allocations: 7.875 kB / 0.8828 GB, free: 1.734 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.184e-05/0.005876, allocations: 4 kB / 0.8828 GB, free: 1.73 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-06/0.00588, allocations: 0 / 0.8828 GB, free: 1.73 MB / 0.8386 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 5.949e-05/0.00594, allocations: 156.6 kB / 0.8829 GB, free: 1.566 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.554e-06/0.005947, allocations: 8 kB / 0.8829 GB, free: 1.559 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.319e-05/0.00604, allocations: 70.02 kB / 0.883 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.006042, allocations: 4 kB / 0.883 GB, free: 1.484 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.006047, allocations: 3.938 kB / 0.883 GB, free: 1.48 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.00605, allocations: 0 / 0.883 GB, free: 1.48 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.006268, allocations: 317.1 kB / 0.8833 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.006269, allocations: 0 / 0.8833 GB, free: 1.125 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/0.006307, allocations: 11.98 kB / 0.8833 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.006311, allocations: 4.031 kB / 0.8833 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.006321, allocations: 7.938 kB / 0.8833 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.006323, allocations: 0 / 0.8833 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.006325, allocations: 3.938 kB / 0.8833 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001353/0.006461, allocations: 223.6 kB / 0.8835 GB, free: 0.8555 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.461e-05/0.006475, allocations: 8.516 kB / 0.8835 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.006486, allocations: 3.938 kB / 0.8835 GB, free: 0.8438 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.768e-05/0.006524, allocations: 4 kB / 0.8835 GB, free: 0.8398 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.491e-05/0.006539, allocations: 3.984 kB / 0.8836 GB, free: 0.8359 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.006545, allocations: 4.188 kB / 0.8836 GB, free: 0.832 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.907e-05/0.006574, allocations: 127.2 kB / 0.8837 GB, free: 0.707 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.006574, allocations: 8.031 kB / 0.8837 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001648/0.006739, allocations: 15.94 kB / 0.8837 GB, free: 0.6836 MB / 0.8386 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.0001329/0.006872, allocations: 135 kB / 0.8838 GB, free: 0.5391 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.034e-05/0.006952, allocations: 35.67 kB / 0.8839 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.006954, allocations: 0 / 0.8839 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.739e-05/0.006971, allocations: 19.62 kB / 0.8839 GB, free: 488 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001486/0.00712, allocations: 8 kB / 0.8839 GB, free: 480 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004542/0.007574, allocations: 177.9 kB / 0.8841 GB, free: 268 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.415e-05/0.007608, allocations: 63.34 kB / 0.8841 GB, free: 184 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.053e-05/0.007628, allocations: 256 / 0.8841 GB, free: 184 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.982e-05/0.007648, allocations: 16.5 kB / 0.8841 GB, free: 168 kB / 0.8386 GB Notification: Performance of SimCode: time 8.32e-07/0.007649, allocations: 0 / 0.8841 GB, free: 168 kB / 0.8386 GB Notification: Performance of Templates: time 0.002348/0.009997, allocations: 0.6619 MB / 0.8848 GB, free: 15.55 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.329719832865521]