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_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.0009169/0.0009169, allocations: 83.67 kB / 20.98 MB, free: 3.32 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.003885/0.003885, allocations: 157.1 kB / 24.44 MB, free: 9.215 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 1.007/1.007, allocations: 177.1 MB / 204.9 MB, free: 5.441 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.327/2.327, allocations: 439.8 MB / 0.6848 GB, free: 12.57 MB / 0.6511 GB " [Timeout remaining time 177] 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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|der_m_flow|der_m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|der_m_flow|der_m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.8412 GB, free: 12.67 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.917e-05/2.065e-05, allocations: 2.312 kB / 0.8412 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2): time 0.001953/0.001973, allocations: 1.433 MB / 0.8426 GB, free: 11.22 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0008115/0.002785, allocations: 0.5953 MB / 0.8432 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.517e-05/0.00282, allocations: 0 / 0.8432 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 2.226e-05/0.002842, allocations: 3.938 kB / 0.8432 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 4.16e-05/0.002884, allocations: 0 / 0.8432 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004565/0.00334, allocations: 159.2 kB / 0.8434 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 5.391e-05/0.003394, allocations: 31.91 kB / 0.8434 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.67e-05/0.003431, allocations: 4 kB / 0.8434 GB, free: 10.43 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 3.868e-05/0.00347, allocations: 15.92 kB / 0.8434 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 5.296e-05/0.003523, allocations: 15.92 kB / 0.8434 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.088e-05/0.003533, allocations: 0 / 0.8434 GB, free: 10.4 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003342/0.003868, allocations: 327.3 kB / 0.8437 GB, free: 10.08 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.757e-05/0.003885, allocations: 11.92 kB / 0.8438 GB, free: 10.07 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.722e-05/0.003902, allocations: 8 kB / 0.8438 GB, free: 10.06 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.004096, allocations: 163.5 kB / 0.8439 GB, free: 9.898 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.004099, allocations: 3.984 kB / 0.8439 GB, free: 9.895 MB / 0.8073 GB Notification: Performance of FrontEnd: time 9.62e-07/0.0041, allocations: 4 kB / 0.8439 GB, free: 9.891 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.338e-06/0.004105, allocations: 0 / 0.8439 GB, free: 9.891 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002683/0.004373, allocations: 272.2 kB / 0.8442 GB, free: 9.598 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.004402, allocations: 12.03 kB / 0.8442 GB, free: 9.586 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.416e-05/0.004426, allocations: 8.938 kB / 0.8442 GB, free: 9.578 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.731e-05/0.004493, allocations: 101.8 kB / 0.8443 GB, free: 9.453 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.004504, allocations: 4.375 kB / 0.8443 GB, free: 9.449 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.004527, allocations: 8.328 kB / 0.8443 GB, free: 9.441 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.678e-05/0.004613, allocations: 101.6 kB / 0.8444 GB, free: 9.324 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.004622, allocations: 192 / 0.8444 GB, free: 9.324 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.911e-06/0.004628, allocations: 4.375 kB / 0.8444 GB, free: 9.32 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.004636, allocations: 384 / 0.8444 GB, free: 9.32 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.371e-05/0.00466, allocations: 19.91 kB / 0.8444 GB, free: 9.301 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.523e-05/0.004745, allocations: 72.97 kB / 0.8445 GB, free: 9.215 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.006e-05/0.004815, allocations: 46.56 kB / 0.8446 GB, free: 9.16 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.913e-05/0.004834, allocations: 13.09 kB / 0.8446 GB, free: 9.145 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.004849, allocations: 4 kB / 0.8446 GB, free: 9.141 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.004872, allocations: 38.48 kB / 0.8446 GB, free: 9.094 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 7.12e-07/0.004873, allocations: 0 / 0.8446 GB, free: 9.094 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0007322/0.005605, allocations: 431.6 kB / 0.845 GB, free: 8.617 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.005636, allocations: 51.41 kB / 0.8451 GB, free: 8.555 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.257e-05/0.005689, allocations: 110.6 kB / 0.8452 GB, free: 8.434 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.08e-05/0.0057, allocations: 25.7 kB / 0.8452 GB, free: 8.402 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.491e-05/0.005725, allocations: 92.27 kB / 0.8453 GB, free: 8.309 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.005757, allocations: 43.56 kB / 0.8453 GB, free: 8.266 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.742e-05/0.005785, allocations: 25.72 kB / 0.8453 GB, free: 8.234 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.627e-05/0.005851, allocations: 318.8 kB / 0.8457 GB, free: 7.914 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.31e-05/0.005864, allocations: 11.94 kB / 0.8457 GB, free: 7.902 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.299e-05/0.005877, allocations: 8 kB / 0.8457 GB, free: 7.895 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.671e-05/0.005924, allocations: 44.81 kB / 0.8457 GB, free: 7.848 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.005925, allocations: 0 / 0.8457 GB, free: 7.848 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 7.237e-05/0.005997, allocations: 65.67 kB / 0.8458 GB, free: 7.777 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.006009, allocations: 4 kB / 0.8458 GB, free: 7.773 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.006013, allocations: 0 / 0.8458 GB, free: 7.773 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.745e-06/0.00602, allocations: 4 kB / 0.8458 GB, free: 7.77 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.048e-05/0.006091, allocations: 31.92 kB / 0.8458 GB, free: 7.738 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.006095, allocations: 11.86 kB / 0.8458 GB, free: 7.727 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.389e-05/0.006109, allocations: 4 kB / 0.8458 GB, free: 7.723 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-06/0.006114, allocations: 0 / 0.8458 GB, free: 7.723 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 (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 4.962e-05/0.006163, allocations: 113.8 kB / 0.8459 GB, free: 7.602 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.015e-05/0.006173, allocations: 7.984 kB / 0.8459 GB, free: 7.594 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.52e-05/0.006268, allocations: 81.81 kB / 0.846 GB, free: 7.512 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.006271, allocations: 4 kB / 0.846 GB, free: 7.508 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-06/0.006272, allocations: 0 / 0.846 GB, free: 7.508 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.006277, allocations: 11.92 kB / 0.846 GB, free: 7.496 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001884/0.006465, allocations: 218.8 kB / 0.8462 GB, free: 7.258 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.006467, allocations: 0 / 0.8462 GB, free: 7.258 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.00653, allocations: 35.86 kB / 0.8463 GB, free: 7.223 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.006532, allocations: 0 / 0.8463 GB, free: 7.223 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.006538, allocations: 0 / 0.8463 GB, free: 7.223 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.006539, allocations: 0 / 0.8463 GB, free: 7.223 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.006541, allocations: 3.938 kB / 0.8463 GB, free: 7.219 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.006658, allocations: 181.9 kB / 0.8465 GB, free: 7.027 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.724e-06/0.006666, allocations: 7.953 kB / 0.8465 GB, free: 7.02 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.052e-05/0.006677, allocations: 8.031 kB / 0.8465 GB, free: 7.012 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.699e-05/0.006714, allocations: 4 kB / 0.8465 GB, free: 7.008 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.432e-05/0.006728, allocations: 11.91 kB / 0.8465 GB, free: 6.996 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.006734, allocations: 8 kB / 0.8465 GB, free: 6.988 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 8.005e-06/0.006742, allocations: 4.859 kB / 0.8465 GB, free: 6.98 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4e-08/0.006742, allocations: 0 / 0.8465 GB, free: 6.98 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001886/0.006931, allocations: 67.67 kB / 0.8466 GB, free: 6.914 MB / 0.8073 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.0001873/0.007118, allocations: 148 kB / 0.8467 GB, free: 6.758 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.414e-05/0.007202, allocations: 48.83 kB / 0.8468 GB, free: 6.707 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.007205, allocations: 4.094 kB / 0.8468 GB, free: 6.703 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.186e-05/0.007227, allocations: 28.78 kB / 0.8468 GB, free: 6.672 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001086/0.007336, allocations: 9.875 kB / 0.8468 GB, free: 6.664 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004457/0.007781, allocations: 220.1 kB / 0.847 GB, free: 6.422 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.75e-05/0.007819, allocations: 63.34 kB / 0.8471 GB, free: 6.34 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.91e-05/0.007848, allocations: 8 kB / 0.8471 GB, free: 6.332 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.431e-05/0.007902, allocations: 71.36 kB / 0.8471 GB, free: 6.262 MB / 0.8073 GB Notification: Performance of SimCode: time 4.7e-07/0.007903, allocations: 0 / 0.8471 GB, free: 6.262 MB / 0.8073 GB Notification: Performance of Templates: time 0.003082/0.01098, allocations: 1.578 MB / 0.8487 GB, free: 4.738 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_inv_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_inv_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: 5.161324224434793]