Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005031/0.005031, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001197/0.001197, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.254/1.254, allocations: 222.9 MB / 240.4 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.002179/0.002179, allocations: 297.7 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8989/0.8989, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 87.86 kB / 0.6814 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4371/0.4388, allocations: 86.98 MB / 0.7664 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002079/0.4409, allocations: 1.268 MB / 0.7676 GB, free: 2.648 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009608/0.4419, allocations: 0.6167 MB / 0.7682 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.304e-05/0.4419, allocations: 0 / 0.7682 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.666e-05/0.4419, allocations: 0 / 0.7682 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.295e-05/0.442, allocations: 7.922 kB / 0.7682 GB, free: 2.023 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004675/0.4424, allocations: 147.4 kB / 0.7684 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.478e-05/0.4425, allocations: 15.94 kB / 0.7684 GB, free: 1.863 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.442e-05/0.4425, allocations: 4 kB / 0.7684 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.768e-05/0.4426, allocations: 19.91 kB / 0.7684 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.295e-05/0.4426, allocations: 4 kB / 0.7684 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.128e-05/0.4427, allocations: 4 kB / 0.7684 GB, free: 1.832 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004868/0.4431, allocations: 339.3 kB / 0.7687 GB, free: 1.5 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.1e-05/0.4432, allocations: 7.984 kB / 0.7687 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.24e-05/0.4432, allocations: 15.92 kB / 0.7688 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.4434, allocations: 149.1 kB / 0.7689 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4434, allocations: 0 / 0.7689 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4435, allocations: 0 / 0.7689 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.4435, allocations: 0 / 0.7689 GB, free: 1.34 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003776/0.4438, allocations: 370.1 kB / 0.7693 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.4439, allocations: 8.031 kB / 0.7693 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.4439, allocations: 4.938 kB / 0.7693 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.444, allocations: 160.4 kB / 0.7694 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.919e-06/0.444, allocations: 384 / 0.7694 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.4441, allocations: 8.359 kB / 0.7694 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.122e-05/0.4442, allocations: 42.25 kB / 0.7695 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.4442, allocations: 192 / 0.7695 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.4442, allocations: 3.938 kB / 0.7695 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.4442, allocations: 7.938 kB / 0.7695 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.885e-05/0.4443, allocations: 15.92 kB / 0.7695 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001527/0.4444, allocations: 161.7 kB / 0.7697 GB, free: 444 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.4446, allocations: 42.56 kB / 0.7697 GB, free: 392 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.156e-05/0.4446, allocations: 16.86 kB / 0.7697 GB, free: 372 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.4447, allocations: 0 / 0.7697 GB, free: 372 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.4447, allocations: 34.56 kB / 0.7697 GB, free: 328 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.4447, allocations: 0 / 0.7697 GB, free: 328 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0005774/0.4453, allocations: 314.2 kB / 0.77 GB, free: 15.96 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.166e-05/0.4453, allocations: 55.41 kB / 0.7701 GB, free: 15.89 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.762e-05/0.4454, allocations: 93.86 kB / 0.7702 GB, free: 15.79 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.315e-05/0.4454, allocations: 29.64 kB / 0.7702 GB, free: 15.76 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.286e-05/0.4454, allocations: 80.14 kB / 0.7703 GB, free: 15.68 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.4455, allocations: 27.73 kB / 0.7703 GB, free: 15.65 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.4455, allocations: 17.72 kB / 0.7703 GB, free: 15.62 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.4456, allocations: 318.8 kB / 0.7706 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.395e-05/0.4457, allocations: 7.984 kB / 0.7706 GB, free: 15.3 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.179e-05/0.4457, allocations: 20.05 kB / 0.7707 GB, free: 15.28 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.074e-05/0.4457, allocations: 32.86 kB / 0.7707 GB, free: 15.24 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.4457, allocations: 0 / 0.7707 GB, free: 15.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.329e-05/0.4458, allocations: 69.52 kB / 0.7708 GB, free: 15.17 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.4459, allocations: 11.94 kB / 0.7708 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.4459, allocations: 4 kB / 0.7708 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.4459, allocations: 0 / 0.7708 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.922e-05/0.4459, allocations: 11.98 kB / 0.7708 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.446, allocations: 4 kB / 0.7708 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.731e-05/0.446, allocations: 0 / 0.7708 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-06/0.446, allocations: 4 kB / 0.7708 GB, free: 15.13 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 (7): * Single equations (assignments): 7 * 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.137e-05/0.4461, allocations: 112.2 kB / 0.7709 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.201e-05/0.4461, allocations: 4.453 kB / 0.7709 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001333/0.4462, allocations: 81.58 kB / 0.771 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.4462, allocations: 4 kB / 0.771 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.4462, allocations: 0 / 0.771 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.4462, allocations: 0 / 0.771 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.4465, allocations: 315.3 kB / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.4465, allocations: 0 / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.881e-05/0.4466, allocations: 19.92 kB / 0.7713 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.4466, allocations: 0 / 0.7713 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.4466, allocations: 0 / 0.7713 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4466, allocations: 0 / 0.7713 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.4467, allocations: 8.031 kB / 0.7713 GB, free: 14.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001628/0.4468, allocations: 180.4 kB / 0.7715 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.227e-05/0.4469, allocations: 85.12 kB / 0.7716 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.4469, allocations: 11.94 kB / 0.7716 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.005e-05/0.447, allocations: 0 / 0.7716 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.596e-05/0.447, allocations: 7.984 kB / 0.7716 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.447, allocations: 4.062 kB / 0.7716 GB, free: 14.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.959e-05/0.447, allocations: 79.28 kB / 0.7717 GB, free: 14.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.447, allocations: 0 / 0.7717 GB, free: 14.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002339/0.4473, allocations: 24 kB / 0.7717 GB, free: 14.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0001607/0.4475, allocations: 119.2 kB / 0.7718 GB, free: 13.98 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 9.836e-05/0.4476, allocations: 39.91 kB / 0.7718 GB, free: 13.94 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4476, allocations: 4 kB / 0.7718 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.673e-05/0.4476, allocations: 16.05 kB / 0.7719 GB, free: 13.92 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002165/0.4478, allocations: 17.3 kB / 0.7719 GB, free: 13.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003836/0.4482, allocations: 204.3 kB / 0.7721 GB, free: 13.67 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.4485, allocations: 0.684 MB / 0.7727 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.467e-05/0.4485, allocations: 0 / 0.7727 GB, free: 12.96 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.522e-05/0.4485, allocations: 11.44 kB / 0.7727 GB, free: 12.96 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.4485, allocations: 0 / 0.7727 GB, free: 12.96 MB / 0.545 GB Notification: Performance of Templates: time 0.002659/0.4512, allocations: 0.6626 MB / 0.7734 GB, free: 12.34 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)