Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 102.1 kB / 16.27 MB, free: 6.348 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.001046/0.001046, allocations: 187.6 kB / 17.2 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.41/1.41, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.803/1.803, allocations: 292.3 MB / 0.5495 GB, free: 17.54 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 71.89 kB / 0.6722 GB, free: 6.578 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2441, allocations: 114.5 MB / 0.784 GB, free: 3.918 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002502/0.2466, allocations: 1.278 MB / 0.7853 GB, free: 2.629 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.000984/0.2476, allocations: 0.6149 MB / 0.7859 GB, free: 2.012 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.915e-05/0.2477, allocations: 0 / 0.7859 GB, free: 2.012 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 2.296e-05/0.2477, allocations: 3.938 kB / 0.7859 GB, free: 2.008 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 3.742e-05/0.2478, allocations: 3.984 kB / 0.7859 GB, free: 2.004 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005496/0.2483, allocations: 143.4 kB / 0.786 GB, free: 1.863 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 6.205e-05/0.2484, allocations: 23.94 kB / 0.786 GB, free: 1.84 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.246e-05/0.2485, allocations: 4 kB / 0.786 GB, free: 1.836 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 4.056e-05/0.2485, allocations: 15.91 kB / 0.7861 GB, free: 1.82 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 5.282e-05/0.2486, allocations: 11.94 kB / 0.7861 GB, free: 1.809 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.2486, allocations: 4 kB / 0.7861 GB, free: 1.805 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000489/0.2491, allocations: 339.4 kB / 0.7864 GB, free: 1.473 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.789e-05/0.2491, allocations: 4 kB / 0.7864 GB, free: 1.469 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.236e-05/0.2491, allocations: 15.92 kB / 0.7864 GB, free: 1.453 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002495/0.2494, allocations: 143.9 kB / 0.7866 GB, free: 1.312 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2494, allocations: 0 / 0.7866 GB, free: 1.312 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2494, allocations: 0 / 0.7866 GB, free: 1.312 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.2494, allocations: 4 kB / 0.7866 GB, free: 1.309 MB / 0.6544 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.0004826/0.2499, allocations: 359.4 kB / 0.7869 GB, free: 0.9062 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.25, allocations: 8.031 kB / 0.7869 GB, free: 0.8984 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.999e-05/0.25, allocations: 12.78 kB / 0.7869 GB, free: 0.8867 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.2501, allocations: 164.3 kB / 0.7871 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.2502, allocations: 384 / 0.7871 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.461e-05/0.2502, allocations: 4.375 kB / 0.7871 GB, free: 0.6836 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.2503, allocations: 38.25 kB / 0.7871 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2503, allocations: 192 / 0.7871 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.2503, allocations: 11.94 kB / 0.7871 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.2504, allocations: 0 / 0.7871 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.778e-05/0.2504, allocations: 11.98 kB / 0.7871 GB, free: 0.6172 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001741/0.2506, allocations: 161.7 kB / 0.7873 GB, free: 420 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.2508, allocations: 46.5 kB / 0.7873 GB, free: 364 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.345e-05/0.2508, allocations: 16.86 kB / 0.7874 GB, free: 344 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.2508, allocations: 4 kB / 0.7874 GB, free: 340 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.2509, allocations: 34.5 kB / 0.7874 GB, free: 296 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.2509, allocations: 0 / 0.7874 GB, free: 296 kB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.4274/0.6783, allocations: 310.1 kB / 0.7877 GB, free: 48.75 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.283e-05/0.6783, allocations: 51.41 kB / 0.7877 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.116e-05/0.6784, allocations: 98.38 kB / 0.7878 GB, free: 48.59 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.028e-05/0.6784, allocations: 28.11 kB / 0.7879 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 1.962e-05/0.6784, allocations: 84.61 kB / 0.7879 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.6785, allocations: 19.55 kB / 0.788 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.973e-05/0.6785, allocations: 23 kB / 0.788 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.157e-05/0.6786, allocations: 316.8 kB / 0.7883 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.397e-05/0.6786, allocations: 15.19 kB / 0.7883 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.335e-05/0.6786, allocations: 11.2 kB / 0.7883 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.211e-05/0.6787, allocations: 30.8 kB / 0.7883 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.6787, allocations: 0 / 0.7883 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000107/0.6788, allocations: 72.05 kB / 0.7884 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.6788, allocations: 9 kB / 0.7884 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.6789, allocations: 0.625 kB / 0.7884 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.6789, allocations: 0 / 0.7884 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.767e-05/0.679, allocations: 12.73 kB / 0.7884 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.679, allocations: 0.6094 kB / 0.7884 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.058e-05/0.679, allocations: 4.062 kB / 0.7884 GB, free: 48.1 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.679, allocations: 6.469 kB / 0.7884 GB, free: 48.1 MB / 0.6544 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.967e-05/0.6791, allocations: 113.8 kB / 0.7885 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.316e-05/0.6791, allocations: 6.125 kB / 0.7886 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001349/0.6792, allocations: 78.88 kB / 0.7886 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.6792, allocations: 1.641 kB / 0.7886 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.6792, allocations: 0 / 0.7886 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.6793, allocations: 0 / 0.7886 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002698/0.6795, allocations: 318.5 kB / 0.7889 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.6795, allocations: 3.234 kB / 0.7889 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-05/0.6796, allocations: 13.72 kB / 0.789 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.6796, allocations: 0 / 0.789 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.6796, allocations: 0 / 0.789 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.6796, allocations: 2.844 kB / 0.789 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.6796, allocations: 0 / 0.789 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.6798, allocations: 189.1 kB / 0.7891 GB, free: 47.5 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/0.6798, allocations: 86.72 kB / 0.7892 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.356e-05/0.6799, allocations: 0 / 0.7892 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.183e-05/0.6799, allocations: 6.219 kB / 0.7892 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.695e-05/0.68, allocations: 6.203 kB / 0.7892 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-06/0.68, allocations: 3.469 kB / 0.7892 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.234e-05/0.68, allocations: 78.84 kB / 0.7893 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.68, allocations: 2.594 kB / 0.7893 GB, free: 47.34 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00025/0.6803, allocations: 15.62 kB / 0.7893 GB, free: 47.34 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.000171/0.6804, allocations: 129.3 kB / 0.7894 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001119/0.6806, allocations: 40.94 kB / 0.7895 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.6806, allocations: 0.5312 kB / 0.7895 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 2.559e-05/0.6806, allocations: 18.62 kB / 0.7895 GB, free: 47.25 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.6808, allocations: 8.469 kB / 0.7895 GB, free: 47.24 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003951/0.6812, allocations: 212.1 kB / 0.7897 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001074/0.6814, allocations: 0.6812 MB / 0.7904 GB, free: 46.4 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.992e-05/0.6814, allocations: 11.66 kB / 0.7904 GB, free: 46.4 MB / 0.6544 GB Notification: Performance of SimCode: time 3.81e-07/0.6814, allocations: 0 / 0.7904 GB, free: 46.4 MB / 0.6544 GB Notification: Performance of Templates: time 0.00225/0.6836, allocations: 0.8008 MB / 0.7912 GB, free: 46.36 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)