Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001712/0.001712, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001696/0.001696, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.467/1.467, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00274/0.00274, allocations: 293.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.002/1.002, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002758/0.002758, allocations: 95.84 kB / 0.6821 GB, free: 6.949 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4707/0.4735, allocations: 86.97 MB / 0.7671 GB, free: 3.777 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002746/0.4762, allocations: 1.469 MB / 0.7685 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001145/0.4774, allocations: 0.6361 MB / 0.7691 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.284e-05/0.4774, allocations: 0 / 0.7691 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.283e-05/0.4775, allocations: 3.938 kB / 0.7691 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.834e-05/0.4775, allocations: 11.92 kB / 0.7691 GB, free: 1.645 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005717/0.4781, allocations: 159.4 kB / 0.7693 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001004/0.4782, allocations: 59.52 kB / 0.7693 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.942e-05/0.4782, allocations: 4 kB / 0.7693 GB, free: 1.426 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.364e-05/0.4783, allocations: 23.92 kB / 0.7694 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.344e-05/0.4783, allocations: 27.89 kB / 0.7694 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.4784, allocations: 4 kB / 0.7694 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005033/0.4789, allocations: 343.4 kB / 0.7697 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.4789, allocations: 11.92 kB / 0.7697 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.374e-05/0.4789, allocations: 31.86 kB / 0.7698 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003017/0.4792, allocations: 177.1 kB / 0.7699 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4792, allocations: 0 / 0.7699 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.773e-06/0.4792, allocations: 3.938 kB / 0.7699 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.032e-06/0.4792, allocations: 0 / 0.7699 GB, free: 0.8242 MB / 0.5294 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.0006672/0.4799, allocations: 409.6 kB / 0.7703 GB, free: 384 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.4799, allocations: 12.03 kB / 0.7703 GB, free: 372 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.107e-05/0.48, allocations: 4.938 kB / 0.7703 GB, free: 368 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.4801, allocations: 168.3 kB / 0.7705 GB, free: 160 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.4802, allocations: 12.38 kB / 0.7705 GB, free: 148 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.773e-05/0.4802, allocations: 4.375 kB / 0.7705 GB, free: 144 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.4805, allocations: 80.22 kB / 0.7706 GB, free: 60 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.4805, allocations: 192 / 0.7706 GB, free: 60 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.4805, allocations: 7.938 kB / 0.7706 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.4805, allocations: 0 / 0.7706 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.4807, allocations: 51.89 kB / 0.7706 GB, free: 0 / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005998/0.4813, allocations: 324.7 kB / 0.771 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003028/0.4816, allocations: 82.47 kB / 0.771 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.4818, allocations: 24.84 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.4818, allocations: 4 kB / 0.7711 GB, free: 15.51 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.4818, allocations: 34.56 kB / 0.7711 GB, free: 15.47 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.4818, allocations: 0 / 0.7711 GB, free: 15.47 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.001703/0.4835, allocations: 0.6619 MB / 0.7717 GB, free: 14.71 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.4836, allocations: 55.39 kB / 0.7718 GB, free: 14.65 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.352e-05/0.4836, allocations: 97.8 kB / 0.7719 GB, free: 14.54 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.4837, allocations: 33.7 kB / 0.7719 GB, free: 14.5 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.579e-05/0.4837, allocations: 88.08 kB / 0.772 GB, free: 14.41 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.265e-05/0.4838, allocations: 39.66 kB / 0.772 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.869e-05/0.4838, allocations: 33.83 kB / 0.7721 GB, free: 14.34 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001422/0.484, allocations: 318.8 kB / 0.7724 GB, free: 14.02 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.4841, allocations: 31.98 kB / 0.7724 GB, free: 13.98 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.4842, allocations: 39.91 kB / 0.7724 GB, free: 13.95 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002595/0.4845, allocations: 75.52 kB / 0.7725 GB, free: 13.87 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.4845, allocations: 0 / 0.7725 GB, free: 13.87 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003275/0.4848, allocations: 113.7 kB / 0.7726 GB, free: 13.75 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.4848, allocations: 8 kB / 0.7726 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.648e-06/0.4849, allocations: 0 / 0.7726 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.4849, allocations: 0 / 0.7726 GB, free: 13.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.485, allocations: 27.92 kB / 0.7727 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.485, allocations: 0 / 0.7727 GB, free: 13.72 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.433e-05/0.4851, allocations: 15.92 kB / 0.7727 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.4851, allocations: 4 kB / 0.7727 GB, free: 13.7 MB / 0.545 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.0001053/0.4852, allocations: 120.2 kB / 0.7728 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.4852, allocations: 3.953 kB / 0.7728 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003843/0.4856, allocations: 133.5 kB / 0.7729 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4856, allocations: 0 / 0.7729 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.4856, allocations: 0 / 0.7729 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.4856, allocations: 3.938 kB / 0.7729 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006033/0.4862, allocations: 378.5 kB / 0.7733 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.4862, allocations: 8 kB / 0.7733 GB, free: 13 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.4864, allocations: 35.91 kB / 0.7733 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.4864, allocations: 0 / 0.7733 GB, free: 12.96 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.4864, allocations: 7.938 kB / 0.7733 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4864, allocations: 0 / 0.7733 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.4864, allocations: 0 / 0.7733 GB, free: 12.95 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005505/0.487, allocations: 255.4 kB / 0.7736 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.214e-05/0.487, allocations: 85.09 kB / 0.7737 GB, free: 12.59 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.487, allocations: 3.938 kB / 0.7737 GB, free: 12.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.4872, allocations: 11.98 kB / 0.7737 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.4872, allocations: 4 kB / 0.7737 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.4872, allocations: 7.984 kB / 0.7737 GB, free: 12.56 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.4872, allocations: 79.28 kB / 0.7738 GB, free: 12.48 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4872, allocations: 4 kB / 0.7738 GB, free: 12.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002918/0.4875, allocations: 35.81 kB / 0.7738 GB, free: 12.44 MB / 0.545 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.0002309/0.4878, allocations: 143.4 kB / 0.7739 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003545/0.4881, allocations: 75.89 kB / 0.774 GB, free: 12.22 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4881, allocations: 0 / 0.774 GB, free: 12.22 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001504/0.4883, allocations: 47.91 kB / 0.7741 GB, free: 12.17 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.4886, allocations: 8 kB / 0.7741 GB, free: 12.16 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006955/0.4893, allocations: 313.9 kB / 0.7744 GB, free: 11.83 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.4896, allocations: 0.6924 MB / 0.775 GB, free: 11.11 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.341e-05/0.4896, allocations: 20.59 kB / 0.7751 GB, free: 11.09 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.131e-05/0.4897, allocations: 11.44 kB / 0.7751 GB, free: 11.08 MB / 0.545 GB Notification: Performance of SimCode: time 6.21e-07/0.4897, allocations: 0 / 0.7751 GB, free: 11.08 MB / 0.545 GB Notification: Performance of Templates: time 0.0042/0.4939, allocations: 1.164 MB / 0.7762 GB, free: 9.965 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)