Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001293/0.001293, allocations: 108.7 kB / 16.27 MB, free: 5.984 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.001254/0.001254, allocations: 189 kB / 17.2 MB, free: 5.609 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.421/1.421, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.538/2.538, allocations: 437.1 MB / 0.7111 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 67.59 kB / 0.8699 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3308, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003134/0.3339, allocations: 1.475 MB / 1.019 GB, free: 9.172 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.3351, allocations: 0.6358 MB / 1.02 GB, free: 8.535 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.452e-05/0.3352, allocations: 0 / 1.02 GB, free: 8.535 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.29e-05/0.3352, allocations: 3.938 kB / 1.02 GB, free: 8.531 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.836e-05/0.3353, allocations: 11.92 kB / 1.02 GB, free: 8.52 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006581/0.336, allocations: 163.9 kB / 1.02 GB, free: 8.359 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.181e-05/0.3361, allocations: 47.89 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.54e-05/0.3362, allocations: 11.89 kB / 1.02 GB, free: 8.301 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 6.156e-05/0.3362, allocations: 23.92 kB / 1.02 GB, free: 8.277 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.775e-05/0.3363, allocations: 35.83 kB / 1.02 GB, free: 8.242 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.3363, allocations: 4 kB / 1.02 GB, free: 8.238 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005582/0.3369, allocations: 343.3 kB / 1.021 GB, free: 7.902 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.217e-05/0.3369, allocations: 11.98 kB / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.988e-05/0.337, allocations: 31.86 kB / 1.021 GB, free: 7.859 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003154/0.3373, allocations: 171.8 kB / 1.021 GB, free: 7.691 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3373, allocations: 0 / 1.021 GB, free: 7.691 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3373, allocations: 4 kB / 1.021 GB, free: 7.688 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.3373, allocations: 0 / 1.021 GB, free: 7.688 MB / 0.795 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.0006718/0.338, allocations: 399.3 kB / 1.021 GB, free: 7.246 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.338, allocations: 12.88 kB / 1.021 GB, free: 7.234 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.547e-05/0.3381, allocations: 4.938 kB / 1.021 GB, free: 7.23 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.3382, allocations: 168.3 kB / 1.021 GB, free: 7.027 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.011e-05/0.3383, allocations: 16.31 kB / 1.021 GB, free: 7.012 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.3383, allocations: 4.375 kB / 1.021 GB, free: 7.008 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002445/0.3386, allocations: 77.84 kB / 1.022 GB, free: 6.93 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3386, allocations: 4.188 kB / 1.022 GB, free: 6.926 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.3386, allocations: 7.938 kB / 1.022 GB, free: 6.918 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.3386, allocations: 3.984 kB / 1.022 GB, free: 6.914 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002424/0.3389, allocations: 47.95 kB / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006612/0.3395, allocations: 328.5 kB / 1.022 GB, free: 6.496 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.3398, allocations: 82.53 kB / 1.022 GB, free: 6.406 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.34, allocations: 29 kB / 1.022 GB, free: 6.375 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.34, allocations: 7.984 kB / 1.022 GB, free: 6.367 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.34, allocations: 34.55 kB / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.3401, allocations: 0 / 1.022 GB, free: 6.324 MB / 0.795 GB Notification: Performance of matching and sorting (n=11): time 0.001747/0.3418, allocations: 0.6383 MB / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.452e-05/0.3419, allocations: 67.33 kB / 1.023 GB, free: 5.516 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.26e-05/0.342, allocations: 97.8 kB / 1.023 GB, free: 5.41 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.342, allocations: 29.7 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.537e-05/0.3421, allocations: 100 kB / 1.023 GB, free: 5.273 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.102e-05/0.3421, allocations: 35.47 kB / 1.023 GB, free: 5.238 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/0.3422, allocations: 25.7 kB / 1.023 GB, free: 5.207 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3423, allocations: 322.8 kB / 1.023 GB, free: 4.883 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.3425, allocations: 27.98 kB / 1.023 GB, free: 4.855 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.3426, allocations: 31.97 kB / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.3429, allocations: 80.95 kB / 1.023 GB, free: 4.742 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.3429, allocations: 0 / 1.023 GB, free: 4.742 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003395/0.3432, allocations: 117.5 kB / 1.024 GB, free: 4.621 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3433, allocations: 4 kB / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.3433, allocations: 0 / 1.024 GB, free: 4.617 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.3433, allocations: 4.094 kB / 1.024 GB, free: 4.613 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001509/0.3434, allocations: 27.92 kB / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.3435, allocations: 0 / 1.024 GB, free: 4.586 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.423e-05/0.3435, allocations: 15.92 kB / 1.024 GB, free: 4.57 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/0.3436, allocations: 12 kB / 1.024 GB, free: 4.559 MB / 0.795 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 9.621e-05/0.3437, allocations: 113.8 kB / 1.024 GB, free: 4.438 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.3437, allocations: 4 kB / 1.024 GB, free: 4.434 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004147/0.3441, allocations: 129.5 kB / 1.024 GB, free: 4.297 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3441, allocations: 0 / 1.024 GB, free: 4.297 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3441, allocations: 0 / 1.024 GB, free: 4.297 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.3442, allocations: 3.938 kB / 1.024 GB, free: 4.293 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006192/0.3448, allocations: 382.5 kB / 1.024 GB, free: 3.863 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3448, allocations: 0 / 1.024 GB, free: 3.863 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.345, allocations: 31.97 kB / 1.024 GB, free: 3.832 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.345, allocations: 3.938 kB / 1.024 GB, free: 3.828 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.345, allocations: 7.938 kB / 1.024 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.345, allocations: 0 / 1.024 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.345, allocations: 0 / 1.024 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005936/0.3456, allocations: 255.6 kB / 1.025 GB, free: 3.555 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.956e-05/0.3457, allocations: 81.2 kB / 1.025 GB, free: 3.457 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.3457, allocations: 7.969 kB / 1.025 GB, free: 3.449 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.3458, allocations: 15.97 kB / 1.025 GB, free: 3.434 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.976e-05/0.3458, allocations: 4 kB / 1.025 GB, free: 3.43 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.3459, allocations: 3.984 kB / 1.025 GB, free: 3.426 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.03e-05/0.3459, allocations: 83.34 kB / 1.025 GB, free: 3.344 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.042e-05/0.3459, allocations: 0 / 1.025 GB, free: 3.344 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002855/0.3462, allocations: 47.88 kB / 1.025 GB, free: 3.297 MB / 0.795 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.0002387/0.3465, allocations: 135.2 kB / 1.025 GB, free: 3.152 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003554/0.3468, allocations: 87.89 kB / 1.025 GB, free: 3.066 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3468, allocations: 0 / 1.025 GB, free: 3.066 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001479/0.347, allocations: 51.91 kB / 1.025 GB, free: 3.016 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.3473, allocations: 13.44 kB / 1.025 GB, free: 3.004 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007585/0.3481, allocations: 337 kB / 1.025 GB, free: 2.645 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.3485, allocations: 0.6889 MB / 1.026 GB, free: 1.93 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.41e-05/0.3485, allocations: 19.42 kB / 1.026 GB, free: 1.91 MB / 0.795 GB Notification: Performance of SimCode: time 3e-07/0.3485, allocations: 0 / 1.026 GB, free: 1.91 MB / 0.795 GB Notification: Performance of Templates: time 0.003635/0.3522, allocations: 1.311 MB / 1.027 GB, free: 0.6133 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)