Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_latest_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=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008122/0.000812, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009886/0.0009886, allocations: 186.2 kB / 16.92 MB, free: 6.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.693/2.693, allocations: 462.6 MB / 0.737 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003372, allocations: 13.28 kB / 0.9034 GB, free: 36.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3085/0.3088, allocations: 159.6 MB / 1.059 GB, free: 4.984 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002136/0.311, allocations: 1.198 MB / 1.06 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001567/0.3126, allocations: 0.6385 MB / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.567e-05/0.3127, allocations: 0 / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.167e-05/0.3127, allocations: 7.922 kB / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.156e-05/0.3128, allocations: 0 / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006766/0.3135, allocations: 139.6 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.3136, allocations: 47.84 kB / 1.061 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.002e-05/0.3137, allocations: 3.906 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.498e-05/0.3137, allocations: 27.92 kB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.467e-05/0.3138, allocations: 27.84 kB / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.634e-05/0.3138, allocations: 0 / 1.061 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007135/0.3146, allocations: 347.3 kB / 1.062 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.534e-05/0.3146, allocations: 15.98 kB / 1.062 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.342e-05/0.3147, allocations: 53.56 kB / 1.062 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000263/0.315, allocations: 112 kB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.315, allocations: 4 kB / 1.062 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.583e-06/0.315, allocations: 0 / 1.062 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.315, allocations: 0 / 1.062 GB, free: 2.355 MB / 0.8106 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.0007501/0.3157, allocations: 399.3 kB / 1.062 GB, free: 1.914 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.3158, allocations: 11.97 kB / 1.062 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.3159, allocations: 4.938 kB / 1.062 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.316, allocations: 168.2 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.718e-05/0.3161, allocations: 8.359 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.284e-05/0.3161, allocations: 8.375 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003402/0.3165, allocations: 79.34 kB / 1.063 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.3165, allocations: 4.188 kB / 1.063 GB, free: 1.594 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.3165, allocations: 11.94 kB / 1.063 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3165, allocations: 0 / 1.063 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003721/0.3169, allocations: 59.89 kB / 1.063 GB, free: 1.523 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007328/0.3177, allocations: 332.6 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004368/0.3181, allocations: 86.53 kB / 1.063 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.3183, allocations: 40.83 kB / 1.063 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.3184, allocations: 0 / 1.063 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.3184, allocations: 38.5 kB / 1.063 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.3184, allocations: 0 / 1.063 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.002288/0.3207, allocations: 0.6659 MB / 1.064 GB, free: 212 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.3208, allocations: 59.34 kB / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.536e-05/0.3209, allocations: 105.8 kB / 1.064 GB, free: 24 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.387e-05/0.3209, allocations: 29.7 kB / 1.064 GB, free: 15.99 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.852e-05/0.321, allocations: 92.05 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.776e-05/0.321, allocations: 35.45 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.007e-05/0.3211, allocations: 17.72 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3212, allocations: 318.8 kB / 1.064 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002002/0.3214, allocations: 35.98 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.3216, allocations: 31.97 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003841/0.322, allocations: 88.7 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.322, allocations: 0 / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004931/0.3226, allocations: 129.7 kB / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.3226, allocations: 5.562 kB / 1.065 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.3226, allocations: 7.938 kB / 1.065 GB, free: 15.22 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.3226, allocations: 4 kB / 1.065 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.3228, allocations: 23.98 kB / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3229, allocations: 0 / 1.065 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.323, allocations: 19.92 kB / 1.065 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.323, allocations: 4 kB / 1.065 GB, free: 15.17 MB / 0.8262 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 0.000103/0.3231, allocations: 117.8 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.441e-05/0.3232, allocations: 7.906 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005436/0.3237, allocations: 129.6 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.3237, allocations: 4 kB / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3238, allocations: 192 / 1.065 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3238, allocations: 7.938 kB / 1.065 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008182/0.3246, allocations: 398.4 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.3246, allocations: 3.984 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002183/0.3248, allocations: 27.98 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3249, allocations: 4 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.3249, allocations: 7.938 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3249, allocations: 0 / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3249, allocations: 0 / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007608/0.3257, allocations: 271.2 kB / 1.066 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.281e-05/0.3257, allocations: 81.02 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.709e-05/0.3258, allocations: 7.969 kB / 1.066 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.326, allocations: 7.984 kB / 1.066 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.118e-05/0.326, allocations: 11.98 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.326, allocations: 4 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.785e-05/0.3261, allocations: 79.28 kB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2e-07/0.3261, allocations: 4.062 kB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005083/0.3266, allocations: 39.94 kB / 1.066 GB, free: 13.87 MB / 0.8262 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.0002784/0.3269, allocations: 141.2 kB / 1.066 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004744/0.3274, allocations: 92.27 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3274, allocations: 4 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002221/0.3277, allocations: 59.84 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.3281, allocations: 5.828 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009784/0.3291, allocations: 407 kB / 1.067 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003222/0.3294, allocations: 0.6887 MB / 1.067 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.382e-05/0.3295, allocations: 19.44 kB / 1.067 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.3295, allocations: 3.938 kB / 1.067 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of Templates: time 0.004428/0.334, allocations: 1.289 MB / 1.068 GB, free: 11.11 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)