Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_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.0008703/0.0008703, allocations: 79.75 kB / 20.89 MB, free: 3.395 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.003649/0.003649, allocations: 153.9 kB / 24.31 MB, free: 8.504 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.8509/0.8509, allocations: 177.2 MB / 204.8 MB, free: 5.398 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.206/2.206, allocations: 439.8 MB / 0.6846 GB, free: 12.54 MB / 0.6511 GB " [Timeout remaining time 178] Using package Buildings with version 15.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_m_flow_inv_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.193e-06/1.193e-06, allocations: 0 / 0.8411 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 8.826e-06/1.002e-05, allocations: 2.312 kB / 0.8411 GB, free: 12.59 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck): time 0.00148/0.00149, allocations: 1.428 MB / 0.8425 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0006504/0.002141, allocations: 0.5836 MB / 0.843 GB, free: 10.56 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.031e-05/0.002161, allocations: 0 / 0.843 GB, free: 10.56 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 1.367e-05/0.002175, allocations: 0 / 0.843 GB, free: 10.56 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 3.443e-05/0.002209, allocations: 3.938 kB / 0.843 GB, free: 10.56 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.002536, allocations: 159.2 kB / 0.8432 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 4.398e-05/0.00258, allocations: 11.94 kB / 0.8432 GB, free: 10.39 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 2.849e-05/0.002609, allocations: 15.97 kB / 0.8432 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 4.331e-05/0.002652, allocations: 4 kB / 0.8432 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 3.614e-05/0.002688, allocations: 7.984 kB / 0.8432 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 8.526e-06/0.002697, allocations: 3.938 kB / 0.8432 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003199/0.003016, allocations: 331.3 kB / 0.8435 GB, free: 10.04 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.374e-05/0.00303, allocations: 7.969 kB / 0.8435 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.213e-05/0.003042, allocations: 4 kB / 0.8436 GB, free: 10.02 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001688/0.003211, allocations: 167.4 kB / 0.8437 GB, free: 9.859 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.003213, allocations: 0 / 0.8437 GB, free: 9.859 MB / 0.8073 GB Notification: Performance of FrontEnd: time 4.4e-07/0.003213, allocations: 0 / 0.8437 GB, free: 9.859 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.256e-06/0.003216, allocations: 0 / 0.8437 GB, free: 9.859 MB / 0.8073 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.0002285/0.003445, allocations: 260.2 kB / 0.844 GB, free: 9.578 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.91e-05/0.003474, allocations: 12.02 kB / 0.844 GB, free: 9.566 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.839e-05/0.003492, allocations: 4.938 kB / 0.844 GB, free: 9.562 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.91e-05/0.003551, allocations: 105.8 kB / 0.8441 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.713e-06/0.003558, allocations: 384 / 0.8441 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.003575, allocations: 8.328 kB / 0.8441 GB, free: 9.426 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.247e-05/0.003637, allocations: 63.95 kB / 0.8441 GB, free: 9.352 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.009e-06/0.003642, allocations: 4.188 kB / 0.8442 GB, free: 9.348 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.681e-06/0.003648, allocations: 384 / 0.8442 GB, free: 9.348 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-06/0.003651, allocations: 4.312 kB / 0.8442 GB, free: 9.344 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.858e-05/0.00367, allocations: 11.92 kB / 0.8442 GB, free: 9.332 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.36e-05/0.003744, allocations: 65.05 kB / 0.8442 GB, free: 9.254 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.003858, allocations: 42.53 kB / 0.8443 GB, free: 9.203 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.584e-05/0.003874, allocations: 12.86 kB / 0.8443 GB, free: 9.188 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.003884, allocations: 0 / 0.8443 GB, free: 9.188 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.651e-05/0.003901, allocations: 30.56 kB / 0.8443 GB, free: 9.148 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 7.22e-07/0.003902, allocations: 4 kB / 0.8443 GB, free: 9.145 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0003726/0.004274, allocations: 237.5 kB / 0.8445 GB, free: 8.879 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.562e-05/0.00429, allocations: 51.41 kB / 0.8446 GB, free: 8.816 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.874e-05/0.004329, allocations: 102.7 kB / 0.8447 GB, free: 8.703 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.816e-06/0.004337, allocations: 25.7 kB / 0.8447 GB, free: 8.672 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.68e-05/0.004354, allocations: 80.14 kB / 0.8448 GB, free: 8.59 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.146e-05/0.004376, allocations: 23.84 kB / 0.8448 GB, free: 8.566 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.353e-05/0.004399, allocations: 21.66 kB / 0.8448 GB, free: 8.539 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.186e-05/0.004461, allocations: 326.8 kB / 0.8451 GB, free: 8.211 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.903e-06/0.004468, allocations: 8 kB / 0.8452 GB, free: 8.203 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.017e-06/0.004477, allocations: 7.984 kB / 0.8452 GB, free: 8.195 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.708e-05/0.004504, allocations: 24.78 kB / 0.8452 GB, free: 8.168 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.004505, allocations: 0 / 0.8452 GB, free: 8.168 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7) (initialization): time 4.266e-05/0.004547, allocations: 45.69 kB / 0.8452 GB, free: 8.117 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.004557, allocations: 7.984 kB / 0.8452 GB, free: 8.109 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-06/0.004561, allocations: 0 / 0.8452 GB, free: 8.109 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.492e-06/0.004567, allocations: 4 kB / 0.8452 GB, free: 8.105 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.207e-05/0.004599, allocations: 8 kB / 0.8452 GB, free: 8.098 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.004604, allocations: 4 kB / 0.8452 GB, free: 8.094 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.686e-06/0.004613, allocations: 4 kB / 0.8453 GB, free: 8.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-06/0.004617, allocations: 3.938 kB / 0.8453 GB, free: 8.086 MB / 0.8073 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.05e-05/0.004657, allocations: 117.8 kB / 0.8454 GB, free: 7.961 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.61e-06/0.004663, allocations: 7.984 kB / 0.8454 GB, free: 7.953 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.077e-05/0.004724, allocations: 53.81 kB / 0.8454 GB, free: 7.898 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.004726, allocations: 0 / 0.8454 GB, free: 7.898 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.004731, allocations: 0 / 0.8454 GB, free: 7.898 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.421e-05/0.004755, allocations: 11.98 kB / 0.8454 GB, free: 7.887 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.586e-06/0.004763, allocations: 3.938 kB / 0.8454 GB, free: 7.883 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.614e-05/0.004779, allocations: 0 / 0.8454 GB, free: 7.883 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.004791, allocations: 7.984 kB / 0.8455 GB, free: 7.875 MB / 0.8073 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 6.765e-05/0.004858, allocations: 128.9 kB / 0.8456 GB, free: 7.742 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.000104/0.004962, allocations: 235 kB / 0.8458 GB, free: 7.496 MB / 0.8073 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.816e-05/0.00498, allocations: 16.73 kB / 0.8458 GB, free: 7.477 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 7.955e-06/0.004988, allocations: 12.84 kB / 0.8458 GB, free: 7.461 MB / 0.8073 GB Notification: Performance of Backend: time 2e-07/0.004989, allocations: 0 / 0.8458 GB, free: 7.461 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002487/0.005237, allocations: 150.3 kB / 0.846 GB, free: 7.305 MB / 0.8073 GB Notification: Performance of SimCode: time 0.0004475/0.005685, allocations: 0.6612 MB / 0.8466 GB, free: 6.598 MB / 0.8073 GB Notification: Performance of Templates: time 0.002584/0.008269, allocations: 1.508 MB / 0.8481 GB, free: 5.145 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_inv_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: 4.636011169292033]