Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_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.009351/0.009351, allocations: 101.7 kB / 15.88 MB, free: 6.328 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.002105/0.002105, allocations: 194.2 kB / 16.79 MB, free: 6.254 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.406/1.406, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.424/2.424, allocations: 390.2 MB / 0.6649 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 60.09 kB / 0.8125 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6771/0.6786, allocations: 140.4 MB / 0.9496 GB, free: 9.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002169/0.6808, allocations: 1.347 MB / 0.9509 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009323/0.6818, allocations: 0.6271 MB / 0.9515 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.8e-05/0.6818, allocations: 0 / 0.9515 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.609e-05/0.6818, allocations: 7.922 kB / 0.9515 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.701e-05/0.6819, allocations: 1.375 kB / 0.9515 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005243/0.6824, allocations: 126.6 kB / 0.9516 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.881e-05/0.6825, allocations: 29.66 kB / 0.9517 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.427e-05/0.6825, allocations: 6.75 kB / 0.9517 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.487e-05/0.6826, allocations: 9.438 kB / 0.9517 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.578e-05/0.6826, allocations: 19.98 kB / 0.9517 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.6827, allocations: 2.75 kB / 0.9517 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004408/0.6831, allocations: 340.3 kB / 0.952 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.259e-05/0.6831, allocations: 2.281 kB / 0.952 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.857e-05/0.6832, allocations: 21.14 kB / 0.9521 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001923/0.6833, allocations: 104.9 kB / 0.9522 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.6834, allocations: 0 / 0.9522 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.994e-06/0.6834, allocations: 1.281 kB / 0.9522 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.6834, allocations: 7.875 kB / 0.9522 GB, free: 7.16 MB / 0.7169 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.0003765/0.6838, allocations: 370.4 kB / 0.9525 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.6838, allocations: 13.05 kB / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.6838, allocations: 3.375 kB / 0.9525 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.772e-05/0.6839, allocations: 161.8 kB / 0.9527 GB, free: 6.566 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.6839, allocations: 9.594 kB / 0.9527 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.684, allocations: 3.969 kB / 0.9527 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.6841, allocations: 52.89 kB / 0.9528 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.6841, allocations: 5.438 kB / 0.9528 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.6842, allocations: 3.938 kB / 0.9528 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.6842, allocations: 5.359 kB / 0.9528 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.197e-05/0.6842, allocations: 23.61 kB / 0.9528 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001481/0.6844, allocations: 164.7 kB / 0.9529 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.793e-05/0.6845, allocations: 60.16 kB / 0.953 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.934e-05/0.6845, allocations: 29.53 kB / 0.953 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.152e-05/0.6846, allocations: 1.688 kB / 0.953 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.85e-05/0.6846, allocations: 32.28 kB / 0.9531 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.6846, allocations: 0 / 0.9531 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001089/0.6857, allocations: 0.5912 MB / 0.9536 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.993e-05/0.6857, allocations: 56.47 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.248e-05/0.6858, allocations: 92.45 kB / 0.9538 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.6858, allocations: 31.05 kB / 0.9538 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.871e-05/0.6858, allocations: 80.14 kB / 0.9539 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.693e-05/0.6859, allocations: 36.23 kB / 0.9539 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/0.6859, allocations: 33.92 kB / 0.954 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.585e-05/0.686, allocations: 316.2 kB / 0.9543 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.138e-05/0.686, allocations: 20.92 kB / 0.9543 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.113e-05/0.6861, allocations: 20.38 kB / 0.9543 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.804e-05/0.6862, allocations: 54.06 kB / 0.9543 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.6862, allocations: 0 / 0.9543 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001723/0.6864, allocations: 103.9 kB / 0.9544 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.6864, allocations: 14.38 kB / 0.9545 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.6864, allocations: 0 / 0.9545 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.543e-05/0.6864, allocations: 4 kB / 0.9545 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.6865, allocations: 21.92 kB / 0.9545 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.6865, allocations: 1.188 kB / 0.9545 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.552e-05/0.6866, allocations: 7.938 kB / 0.9545 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.168e-06/0.6866, allocations: 3.75 kB / 0.9545 GB, free: 4.84 MB / 0.7169 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 6.394e-05/0.6867, allocations: 112.5 kB / 0.9546 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.776e-05/0.6867, allocations: 10.3 kB / 0.9546 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000209/0.6869, allocations: 107.8 kB / 0.9547 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.6869, allocations: 5.125 kB / 0.9547 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.6869, allocations: 4 kB / 0.9547 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.6869, allocations: 0 / 0.9547 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003587/0.6873, allocations: 362 kB / 0.9551 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.6873, allocations: 0 / 0.9551 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.6874, allocations: 20.67 kB / 0.9551 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.6874, allocations: 1.594 kB / 0.9551 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.6874, allocations: 1.438 kB / 0.9551 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.6874, allocations: 0 / 0.9551 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.6875, allocations: 5.406 kB / 0.9551 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002266/0.6877, allocations: 221.8 kB / 0.9553 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.002e-05/0.6877, allocations: 82.64 kB / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.6877, allocations: 7.938 kB / 0.9554 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9e-05/0.6878, allocations: 2.125 kB / 0.9554 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.541e-05/0.6879, allocations: 7.266 kB / 0.9554 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.126e-06/0.6879, allocations: 3.844 kB / 0.9554 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.323e-05/0.6879, allocations: 84.84 kB / 0.9555 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6879, allocations: 0 / 0.9555 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002856/0.6882, allocations: 32.22 kB / 0.9555 GB, free: 3.883 MB / 0.7169 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.0002145/0.6884, allocations: 138.4 kB / 0.9557 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001593/0.6886, allocations: 61.73 kB / 0.9557 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.6886, allocations: 1.281 kB / 0.9557 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.129e-05/0.6887, allocations: 32.64 kB / 0.9557 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/0.6889, allocations: 11.28 kB / 0.9558 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005173/0.6894, allocations: 321.9 kB / 0.9561 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.6895, allocations: 0.6931 MB / 0.9567 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.804e-05/0.6896, allocations: 21.12 kB / 0.9568 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.6896, allocations: 4 kB / 0.9568 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of Templates: time 0.002856/0.6924, allocations: 1.112 MB / 0.9578 GB, free: 2.156 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)