Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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/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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 105.6 kB / 16.41 MB, free: 6.512 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.001574/0.001574, allocations: 187 kB / 17.34 MB, free: 5.742 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.326/1.326, allocations: 222.9 MB / 241 MB, free: 15.13 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.393/2.393, allocations: 437 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 55.91 kB / 1.019 GB, free: 9.387 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8183/0.8195, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.003452/0.823, allocations: 1.276 MB / 1.169 GB, free: 2.559 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001332/0.8244, allocations: 0.6134 MB / 1.169 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.627e-05/0.8244, allocations: 0 / 1.169 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.532e-05/0.8245, allocations: 0 / 1.169 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.928e-05/0.8246, allocations: 3.938 kB / 1.169 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008712/0.8254, allocations: 159.4 kB / 1.169 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.839e-05/0.8255, allocations: 15.92 kB / 1.169 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.712e-05/0.8256, allocations: 4 kB / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.751e-05/0.8257, allocations: 7.938 kB / 1.169 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.891e-05/0.8257, allocations: 11.97 kB / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.8258, allocations: 4 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006154/0.8264, allocations: 339.3 kB / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.955e-05/0.8264, allocations: 7.984 kB / 1.17 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.078e-05/0.8265, allocations: 7.938 kB / 1.17 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003393/0.8268, allocations: 147.5 kB / 1.17 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.8268, allocations: 3.938 kB / 1.17 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.914e-06/0.8268, allocations: 0 / 1.17 GB, free: 1.25 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.643e-06/0.8268, allocations: 0 / 1.17 GB, free: 1.25 MB / 0.8887 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.0005652/0.8274, allocations: 353.3 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.8275, allocations: 8.922 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.392e-05/0.8275, allocations: 4.844 kB / 1.17 GB, free: 0.8438 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.8277, allocations: 172.3 kB / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.8277, allocations: 384 / 1.17 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.241e-05/0.8278, allocations: 12.38 kB / 1.17 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.8279, allocations: 38.25 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.8279, allocations: 192 / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.8279, allocations: 3.938 kB / 1.17 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.828, allocations: 7.938 kB / 1.17 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.005e-05/0.828, allocations: 11.88 kB / 1.17 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002446/0.8283, allocations: 157.7 kB / 1.171 GB, free: 364 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002383/0.8285, allocations: 46.61 kB / 1.171 GB, free: 308 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.815e-05/0.8286, allocations: 16.94 kB / 1.171 GB, free: 288 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.8286, allocations: 4 kB / 1.171 GB, free: 284 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.8286, allocations: 30.56 kB / 1.171 GB, free: 244 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 1.452e-06/0.8286, allocations: 0 / 1.171 GB, free: 244 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0007748/0.8294, allocations: 306.2 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.351e-05/0.8295, allocations: 59.34 kB / 1.171 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.346e-05/0.8296, allocations: 106.3 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.8296, allocations: 25.7 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.611e-05/0.8296, allocations: 80.14 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.694e-05/0.8297, allocations: 23.66 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.8297, allocations: 21.7 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.8299, allocations: 310.8 kB / 1.172 GB, free: 15.23 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.112e-05/0.8299, allocations: 12 kB / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.856e-05/0.8299, allocations: 16.05 kB / 1.172 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.156e-05/0.83, allocations: 32.86 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.83, allocations: 0 / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001137/0.8301, allocations: 73.53 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.8302, allocations: 7.938 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.8302, allocations: 4.281 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.8302, allocations: 3.984 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.616e-05/0.8303, allocations: 8 kB / 1.172 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.68e-05/0.8303, allocations: 7.969 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.942e-05/0.8303, allocations: 0 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.8303, allocations: 4 kB / 1.172 GB, free: 15.05 MB / 0.9044 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 9.676e-05/0.8304, allocations: 113.8 kB / 1.172 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.8304, allocations: 7.938 kB / 1.172 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001647/0.8306, allocations: 73.58 kB / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.8306, allocations: 0 / 1.172 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.8306, allocations: 3.984 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.8306, allocations: 4 kB / 1.172 GB, free: 14.83 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000381/0.831, allocations: 307.4 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.8311, allocations: 7.969 kB / 1.172 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.035e-05/0.8311, allocations: 11.94 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.8311, allocations: 4 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.8311, allocations: 4 kB / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.8312, allocations: 3.984 kB / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.8312, allocations: 0 / 1.172 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.8314, allocations: 184.2 kB / 1.172 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.958e-05/0.8315, allocations: 85.34 kB / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.8315, allocations: 8.031 kB / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.872e-05/0.8316, allocations: 0 / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.922e-05/0.8316, allocations: 7.938 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.8316, allocations: 4 kB / 1.173 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.114e-05/0.8317, allocations: 83.27 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.01e-07/0.8317, allocations: 0 / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002654/0.8319, allocations: 20 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0002253/0.8322, allocations: 127.2 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001255/0.8323, allocations: 27.98 kB / 1.173 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.8323, allocations: 7.938 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.813e-05/0.8324, allocations: 12 kB / 1.173 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002387/0.8326, allocations: 11.94 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005328/0.8331, allocations: 225.8 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.8335, allocations: 0.6806 MB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.467e-05/0.8335, allocations: 11.44 kB / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of SimCode: time 4.2e-07/0.8335, allocations: 0 / 1.174 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of Templates: time 0.002921/0.8364, allocations: 0.8033 MB / 1.174 GB, free: 12.06 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)