Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, 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.001287/0.001287, 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.377/1.377, 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.801/1.801, allocations: 292.3 MB / 0.5495 GB, free: 17.43 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.001489/0.001489, allocations: 68.23 kB / 0.6722 GB, free: 6.598 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2674, allocations: 114.5 MB / 0.784 GB, free: 3.934 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.003251/0.2707, allocations: 1.289 MB / 0.7853 GB, free: 2.633 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001191/0.2719, allocations: 0.6266 MB / 0.7859 GB, free: 2.004 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.042e-05/0.2719, allocations: 0 / 0.7859 GB, free: 2.004 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 1.711e-05/0.272, allocations: 0 / 0.7859 GB, free: 2.004 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 5.149e-05/0.272, allocations: 3.938 kB / 0.7859 GB, free: 2 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007348/0.2728, allocations: 155.4 kB / 0.786 GB, free: 1.848 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 6.934e-05/0.2729, allocations: 23.92 kB / 0.7861 GB, free: 1.824 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.953e-05/0.2729, allocations: 4 kB / 0.7861 GB, free: 1.82 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 2.753e-05/0.2729, allocations: 8 kB / 0.7861 GB, free: 1.812 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.523e-05/0.273, allocations: 19.91 kB / 0.7861 GB, free: 1.793 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.273, allocations: 4 kB / 0.7861 GB, free: 1.789 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005001/0.2735, allocations: 343.3 kB / 0.7864 GB, free: 1.453 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 1.784e-05/0.2736, allocations: 7.922 kB / 0.7864 GB, free: 1.445 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 3.166e-05/0.2736, allocations: 15.92 kB / 0.7865 GB, free: 1.43 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002552/0.2739, allocations: 147.9 kB / 0.7866 GB, free: 1.285 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.2739, allocations: 3.984 kB / 0.7866 GB, free: 1.281 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.854e-06/0.2739, allocations: 4 kB / 0.7866 GB, free: 1.277 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.2739, allocations: 0 / 0.7866 GB, free: 1.277 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000457/0.2744, allocations: 363.5 kB / 0.7869 GB, free: 0.8711 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.2744, allocations: 12.02 kB / 0.787 GB, free: 0.8594 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.784e-05/0.2745, allocations: 8.844 kB / 0.787 GB, free: 0.8516 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.2746, allocations: 172.2 kB / 0.7871 GB, free: 0.6445 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.2746, allocations: 4.375 kB / 0.7871 GB, free: 0.6406 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.2747, allocations: 8.375 kB / 0.7871 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.2748, allocations: 50.19 kB / 0.7872 GB, free: 0.5781 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2748, allocations: 192 / 0.7872 GB, free: 0.5781 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.2748, allocations: 7.938 kB / 0.7872 GB, free: 0.5703 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.2748, allocations: 0 / 0.7872 GB, free: 0.5703 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.47e-05/0.2749, allocations: 19.98 kB / 0.7872 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001873/0.2751, allocations: 165.7 kB / 0.7874 GB, free: 348 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.2752, allocations: 62.48 kB / 0.7874 GB, free: 276 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.137e-05/0.2753, allocations: 36.84 kB / 0.7875 GB, free: 236 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.2753, allocations: 0 / 0.7875 GB, free: 236 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.2753, allocations: 38.56 kB / 0.7875 GB, free: 188 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.2753, allocations: 0 / 0.7875 GB, free: 188 kB / 0.6544 GB Notification: Performance of matching and sorting (n=11): time 0.4525/0.7278, allocations: 0.576 MB / 0.7881 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.7279, allocations: 55.5 kB / 0.7881 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.228e-05/0.728, allocations: 91.89 kB / 0.7882 GB, free: 48.21 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.119e-05/0.728, allocations: 31.23 kB / 0.7882 GB, free: 48.18 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 1.768e-05/0.728, allocations: 83.61 kB / 0.7883 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.852e-05/0.7281, allocations: 43.44 kB / 0.7884 GB, free: 48.08 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.7281, allocations: 25.33 kB / 0.7884 GB, free: 48.06 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.728e-05/0.7282, allocations: 318.2 kB / 0.7887 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.886e-05/0.7282, allocations: 21.98 kB / 0.7887 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.607e-05/0.7282, allocations: 21.38 kB / 0.7887 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.244e-05/0.7283, allocations: 56.45 kB / 0.7888 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.7283, allocations: 3 kB / 0.7888 GB, free: 47.74 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001378/0.7285, allocations: 103.3 kB / 0.7889 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.7285, allocations: 3.438 kB / 0.7889 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.7285, allocations: 1.406 kB / 0.7889 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.7285, allocations: 3.75 kB / 0.7889 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001075/0.7287, allocations: 27.16 kB / 0.7889 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.7287, allocations: 0 / 0.7889 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.429e-05/0.7287, allocations: 4.781 kB / 0.7889 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.7287, allocations: 5.688 kB / 0.7889 GB, free: 47.71 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 (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.409e-05/0.7288, allocations: 116.9 kB / 0.789 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.508e-05/0.7288, allocations: 7.312 kB / 0.7891 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001774/0.729, allocations: 115.3 kB / 0.7892 GB, free: 47.56 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.729, allocations: 0 / 0.7892 GB, free: 47.56 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.729, allocations: 3.031 kB / 0.7892 GB, free: 47.56 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.729, allocations: 2.938 kB / 0.7892 GB, free: 47.56 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003215/0.7293, allocations: 348.3 kB / 0.7895 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.7293, allocations: 1.594 kB / 0.7895 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.738e-05/0.7294, allocations: 24.8 kB / 0.7895 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.7295, allocations: 0 / 0.7895 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.7295, allocations: 0 / 0.7895 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.7295, allocations: 8.5 kB / 0.7895 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.7295, allocations: 0 / 0.7895 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002001/0.7297, allocations: 218 kB / 0.7897 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.256e-05/0.7297, allocations: 89.69 kB / 0.7898 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.7297, allocations: 2.625 kB / 0.7898 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.438e-05/0.7298, allocations: 3.938 kB / 0.7898 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.671e-05/0.7299, allocations: 8.25 kB / 0.7898 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.7299, allocations: 4.031 kB / 0.7898 GB, free: 47.03 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 1.693e-05/0.7299, allocations: 75.28 kB / 0.7899 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7299, allocations: 2.75 kB / 0.7899 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002658/0.7302, allocations: 38.36 kB / 0.79 GB, free: 46.96 MB / 0.6544 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.0001853/0.7304, allocations: 136.6 kB / 0.7901 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0001458/0.7305, allocations: 63.56 kB / 0.7901 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.7305, allocations: 2.875 kB / 0.7901 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 4.105e-05/0.7306, allocations: 35.08 kB / 0.7902 GB, free: 46.87 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002269/0.7308, allocations: 15.2 kB / 0.7902 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004855/0.7313, allocations: 312.5 kB / 0.7905 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.7314, allocations: 0.6859 MB / 0.7912 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.694e-05/0.7315, allocations: 17.06 kB / 0.7912 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of SimCode: time 3.71e-07/0.7315, allocations: 0 / 0.7912 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of Templates: time 0.002672/0.7342, allocations: 1.119 MB / 0.7923 GB, free: 45.91 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)