Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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.0009072/0.0009072, allocations: 80.8 kB / 20.75 MB, free: 3.738 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.0009378/0.0009378, allocations: 161.4 kB / 24.17 MB, free: 328 kB / 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.9188/0.9188, allocations: 177.1 MB / 204.6 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.78/1.78, allocations: 377.9 MB / 0.624 GB, free: 8.371 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_12_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=2500,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 0.76 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.773e-05/1.912e-05, allocations: 3.297 kB / 0.76 GB, free: 6.641 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001935/0.001954, allocations: 1.525 MB / 0.7615 GB, free: 5.121 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.0007133/0.002668, allocations: 0.5989 MB / 0.7621 GB, free: 4.531 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.588e-05/0.002694, allocations: 5.703 kB / 0.7621 GB, free: 4.527 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 2.514e-05/0.002719, allocations: 3.938 kB / 0.7621 GB, free: 4.523 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 4.615e-05/0.002765, allocations: 10.81 kB / 0.7621 GB, free: 4.516 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004073/0.003172, allocations: 167.9 kB / 0.7623 GB, free: 4.363 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 6.602e-05/0.003238, allocations: 47.8 kB / 0.7623 GB, free: 4.316 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 3.398e-05/0.003272, allocations: 7.969 kB / 0.7623 GB, free: 4.309 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 6.314e-05/0.003335, allocations: 28.61 kB / 0.7623 GB, free: 4.281 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 3.54e-05/0.003371, allocations: 27.89 kB / 0.7624 GB, free: 4.254 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.003385, allocations: 4.562 kB / 0.7624 GB, free: 4.25 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002591/0.003644, allocations: 268.6 kB / 0.7626 GB, free: 3.988 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.813e-05/0.003662, allocations: 11.97 kB / 0.7626 GB, free: 3.977 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.879e-05/0.003681, allocations: 19.92 kB / 0.7627 GB, free: 3.957 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.003878, allocations: 188.4 kB / 0.7628 GB, free: 3.773 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.00388, allocations: 0 / 0.7628 GB, free: 3.773 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.11e-07/0.003881, allocations: 0 / 0.7628 GB, free: 3.773 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.797e-06/0.003885, allocations: 1.25 kB / 0.7628 GB, free: 3.773 MB / 0.7136 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.0003333/0.004218, allocations: 292.5 kB / 0.7631 GB, free: 3.461 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.734e-05/0.004246, allocations: 13.06 kB / 0.7631 GB, free: 3.449 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.688e-05/0.004273, allocations: 8.922 kB / 0.7631 GB, free: 3.441 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.421e-05/0.004337, allocations: 109.8 kB / 0.7633 GB, free: 3.309 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.004357, allocations: 8.906 kB / 0.7633 GB, free: 3.301 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.004376, allocations: 8.375 kB / 0.7633 GB, free: 3.293 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.004512, allocations: 144 kB / 0.7634 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.004519, allocations: 192 / 0.7634 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.643e-06/0.004526, allocations: 384 / 0.7634 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.00453, allocations: 4.375 kB / 0.7634 GB, free: 3.129 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.069e-05/0.004561, allocations: 27.47 kB / 0.7634 GB, free: 3.105 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002617/0.004822, allocations: 208 kB / 0.7636 GB, free: 2.887 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 8.431e-05/0.004907, allocations: 51.89 kB / 0.7637 GB, free: 2.828 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.737e-05/0.004924, allocations: 16.86 kB / 0.7637 GB, free: 2.809 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.004937, allocations: 4.734 kB / 0.7637 GB, free: 2.805 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/0.004955, allocations: 38.5 kB / 0.7637 GB, free: 2.758 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 9.72e-07/0.004956, allocations: 0.6562 kB / 0.7637 GB, free: 2.758 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11): time 0.0006734/0.00563, allocations: 446.6 kB / 0.7642 GB, free: 2.27 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.419e-05/0.005654, allocations: 52 kB / 0.7642 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.674e-05/0.005701, allocations: 108.8 kB / 0.7643 GB, free: 2.09 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.005712, allocations: 29.7 kB / 0.7644 GB, free: 2.055 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.652e-05/0.005738, allocations: 88.09 kB / 0.7644 GB, free: 1.965 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/0.005765, allocations: 43.62 kB / 0.7645 GB, free: 1.922 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.062e-05/0.005795, allocations: 25.7 kB / 0.7645 GB, free: 1.891 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 6.978e-05/0.005865, allocations: 322.8 kB / 0.7648 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.693e-05/0.005882, allocations: 14.42 kB / 0.7648 GB, free: 1.555 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.722e-05/0.005899, allocations: 16.12 kB / 0.7648 GB, free: 1.539 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.932e-05/0.005949, allocations: 40.81 kB / 0.7649 GB, free: 1.496 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.005949, allocations: 0 / 0.7649 GB, free: 1.496 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 6.948e-05/0.006019, allocations: 75.55 kB / 0.7649 GB, free: 1.418 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.00603, allocations: 8 kB / 0.765 GB, free: 1.41 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.006034, allocations: 0 / 0.765 GB, free: 1.41 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.756e-06/0.006043, allocations: 2.094 kB / 0.765 GB, free: 1.41 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.339e-05/0.006116, allocations: 23.98 kB / 0.765 GB, free: 1.387 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.386e-06/0.006119, allocations: 3.984 kB / 0.765 GB, free: 1.383 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.027e-05/0.00614, allocations: 4 kB / 0.765 GB, free: 1.379 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.081e-06/0.006146, allocations: 4 kB / 0.765 GB, free: 1.375 MB / 0.7136 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.626e-05/0.006202, allocations: 118.8 kB / 0.7651 GB, free: 1.25 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.00622, allocations: 11.94 kB / 0.7651 GB, free: 1.238 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.00632, allocations: 86.66 kB / 0.7652 GB, free: 1.148 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.006322, allocations: 192 / 0.7652 GB, free: 1.148 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.006323, allocations: 0.875 kB / 0.7652 GB, free: 1.148 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.006327, allocations: 3.984 kB / 0.7652 GB, free: 1.145 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001982/0.006525, allocations: 234.7 kB / 0.7654 GB, free: 0.8906 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.006526, allocations: 2.75 kB / 0.7654 GB, free: 0.8906 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.586e-05/0.006592, allocations: 23.98 kB / 0.7655 GB, free: 0.8672 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.006593, allocations: 0 / 0.7655 GB, free: 0.8672 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-06/0.006601, allocations: 4 kB / 0.7655 GB, free: 0.8633 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.006602, allocations: 0 / 0.7655 GB, free: 0.8633 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.006603, allocations: 0 / 0.7655 GB, free: 0.8633 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.006732, allocations: 191.3 kB / 0.7656 GB, free: 0.6602 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.143e-06/0.006739, allocations: 10.73 kB / 0.7657 GB, free: 0.6523 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-06/0.006748, allocations: 3.984 kB / 0.7657 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.172e-05/0.00679, allocations: 8 kB / 0.7657 GB, free: 0.6406 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.336e-05/0.006803, allocations: 7.984 kB / 0.7657 GB, free: 0.6328 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.006808, allocations: 0 / 0.7657 GB, free: 0.6328 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.116e-05/0.00682, allocations: 8.859 kB / 0.7657 GB, free: 0.6211 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.00682, allocations: 0 / 0.7657 GB, free: 0.6211 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001532/0.006973, allocations: 41.86 kB / 0.7657 GB, free: 0.582 MB / 0.7136 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 (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.0001452/0.007118, allocations: 120.2 kB / 0.7658 GB, free: 468 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 7.257e-05/0.007191, allocations: 48.77 kB / 0.7659 GB, free: 416 kB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.007193, allocations: 0 / 0.7659 GB, free: 416 kB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.467e-05/0.007218, allocations: 37.86 kB / 0.7659 GB, free: 376 kB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.007339, allocations: 16.73 kB / 0.7659 GB, free: 360 kB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004253/0.007764, allocations: 246.4 kB / 0.7662 GB, free: 108 kB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.888e-05/0.007793, allocations: 63.34 kB / 0.7662 GB, free: 24 kB / 0.7136 GB Notification: Performance of simCode: alias equations: time 3.467e-05/0.007828, allocations: 15.28 kB / 0.7662 GB, free: 12 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.336e-05/0.007891, allocations: 59.38 kB / 0.7663 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of SimCode: time 9.92e-07/0.007892, allocations: 1.188 kB / 0.7663 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of Templates: time 0.002651/0.01054, allocations: 1.294 MB / 0.7676 GB, free: 14.78 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.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.847951990086585]