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.0009483/0.0009483, allocations: 92.31 kB / 16.02 MB, free: 80 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.001036/0.001036, allocations: 180.2 kB / 16.92 MB, free: 6.652 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.342/1.342, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.503/2.503, allocations: 443.2 MB / 0.7181 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 8.938 kB / 0.8801 GB, free: 42.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2413/0.2417, allocations: 155.1 MB / 1.032 GB, free: 4.824 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001546/0.2432, allocations: 1.188 MB / 1.033 GB, free: 3.625 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001079/0.2444, allocations: 0.6427 MB / 1.033 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.969e-05/0.2444, allocations: 0 / 1.033 GB, free: 2.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.181e-05/0.2444, allocations: 3.984 kB / 1.033 GB, free: 2.977 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.193e-05/0.2445, allocations: 11.88 kB / 1.033 GB, free: 2.965 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005284/0.245, allocations: 142.4 kB / 1.034 GB, free: 2.828 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 8.206e-05/0.2451, allocations: 51.84 kB / 1.034 GB, free: 2.777 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.872e-05/0.2452, allocations: 0 / 1.034 GB, free: 2.777 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 5.908e-05/0.2452, allocations: 23.92 kB / 1.034 GB, free: 2.754 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.637e-05/0.2453, allocations: 23.91 kB / 1.034 GB, free: 2.73 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.408e-05/0.2453, allocations: 11.94 kB / 1.034 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004778/0.2458, allocations: 343.3 kB / 1.034 GB, free: 2.383 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.731e-05/0.2458, allocations: 11.98 kB / 1.034 GB, free: 2.371 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.15e-05/0.2459, allocations: 53.56 kB / 1.034 GB, free: 2.312 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001892/0.2461, allocations: 123.9 kB / 1.034 GB, free: 2.191 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2461, allocations: 0 / 1.034 GB, free: 2.191 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.292e-06/0.2461, allocations: 0 / 1.034 GB, free: 2.191 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.376e-06/0.2461, allocations: 0 / 1.034 GB, free: 2.191 MB / 0.7794 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.0005569/0.2467, allocations: 391.9 kB / 1.035 GB, free: 1.758 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.2467, allocations: 11.98 kB / 1.035 GB, free: 1.746 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.677e-05/0.2467, allocations: 8.844 kB / 1.035 GB, free: 1.738 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.2469, allocations: 168.3 kB / 1.035 GB, free: 1.535 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/0.2469, allocations: 12.31 kB / 1.035 GB, free: 1.523 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.2469, allocations: 12.28 kB / 1.035 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002331/0.2472, allocations: 82.22 kB / 1.035 GB, free: 1.426 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.2472, allocations: 4.188 kB / 1.035 GB, free: 1.422 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.2472, allocations: 7.938 kB / 1.035 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.2472, allocations: 0 / 1.035 GB, free: 1.414 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002579/0.2475, allocations: 59.95 kB / 1.035 GB, free: 1.355 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005114/0.248, allocations: 328.6 kB / 1.035 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.2483, allocations: 94.53 kB / 1.035 GB, free: 0.8828 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000126/0.2484, allocations: 32.83 kB / 1.035 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.2485, allocations: 4.141 kB / 1.035 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.2485, allocations: 34.56 kB / 1.035 GB, free: 0.8008 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.2485, allocations: 0 / 1.035 GB, free: 0.8008 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001612/0.2501, allocations: 0.6733 MB / 1.036 GB, free: 36 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.2502, allocations: 55.41 kB / 1.036 GB, free: 15.97 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.5e-05/0.2503, allocations: 101.8 kB / 1.036 GB, free: 15.86 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.2503, allocations: 33.7 kB / 1.036 GB, free: 15.82 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.659e-05/0.2503, allocations: 88.12 kB / 1.036 GB, free: 15.73 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/0.2504, allocations: 47.34 kB / 1.036 GB, free: 15.68 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.917e-05/0.2504, allocations: 17.72 kB / 1.036 GB, free: 15.66 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001016/0.2505, allocations: 314.8 kB / 1.037 GB, free: 15.34 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.2507, allocations: 35.98 kB / 1.037 GB, free: 15.31 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001344/0.2508, allocations: 39.97 kB / 1.037 GB, free: 15.27 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002549/0.2511, allocations: 80.08 kB / 1.037 GB, free: 15.19 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.2511, allocations: 0 / 1.037 GB, free: 15.19 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000325/0.2514, allocations: 129.7 kB / 1.037 GB, free: 15.06 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2514, allocations: 4 kB / 1.037 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2514, allocations: 0 / 1.037 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.053e-05/0.2515, allocations: 4 kB / 1.037 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.2516, allocations: 23.98 kB / 1.037 GB, free: 15.03 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.2516, allocations: 4 kB / 1.037 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.313e-05/0.2517, allocations: 15.92 kB / 1.037 GB, free: 15.01 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.427e-06/0.2517, allocations: 8 kB / 1.037 GB, free: 15 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 8.042e-05/0.2518, allocations: 115.3 kB / 1.037 GB, free: 14.88 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.095e-05/0.2519, allocations: 11.84 kB / 1.037 GB, free: 14.87 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003827/0.2522, allocations: 137.6 kB / 1.037 GB, free: 14.73 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.2523, allocations: 11.98 kB / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.2523, allocations: 0 / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2523, allocations: 3.938 kB / 1.037 GB, free: 14.71 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005763/0.2529, allocations: 390.4 kB / 1.038 GB, free: 14.27 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2529, allocations: 0 / 1.038 GB, free: 14.27 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.253, allocations: 31.97 kB / 1.038 GB, free: 14.24 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.253, allocations: 0 / 1.038 GB, free: 14.24 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.2531, allocations: 7.938 kB / 1.038 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2531, allocations: 0 / 1.038 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2531, allocations: 0 / 1.038 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005135/0.2536, allocations: 267.3 kB / 1.038 GB, free: 13.96 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.2536, allocations: 81.02 kB / 1.038 GB, free: 13.86 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.2537, allocations: 7.969 kB / 1.038 GB, free: 13.85 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.2538, allocations: 11.98 kB / 1.038 GB, free: 13.84 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.805e-05/0.2538, allocations: 4 kB / 1.038 GB, free: 13.84 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.2538, allocations: 11.98 kB / 1.038 GB, free: 13.82 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.628e-05/0.2539, allocations: 87.34 kB / 1.038 GB, free: 13.74 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2539, allocations: 0 / 1.038 GB, free: 13.74 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002662/0.2541, allocations: 28 kB / 1.038 GB, free: 13.71 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.0002012/0.2544, allocations: 143.1 kB / 1.038 GB, free: 13.56 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003219/0.2547, allocations: 95.89 kB / 1.038 GB, free: 13.46 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2547, allocations: 0 / 1.038 GB, free: 13.46 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.2548, allocations: 47.97 kB / 1.038 GB, free: 13.42 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.2551, allocations: 11.94 kB / 1.038 GB, free: 13.41 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006369/0.2558, allocations: 407.2 kB / 1.039 GB, free: 12.97 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.256, allocations: 0.6887 MB / 1.039 GB, free: 12.26 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.934e-05/0.2561, allocations: 19.42 kB / 1.04 GB, free: 12.24 MB / 0.795 GB Notification: Performance of SimCode: time 3.01e-07/0.2561, allocations: 4 kB / 1.04 GB, free: 12.24 MB / 0.795 GB Notification: Performance of Templates: time 0.002757/0.2588, allocations: 1.302 MB / 1.041 GB, free: 10.95 MB / 0.795 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)