Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.225/2.225, allocations: 391.2 MB / 407 MB, free: 10.89 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 191.4 kB / 499.1 MB, free: 4.703 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 222.9 MB / 0.7948 GB, free: 15.83 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001038, allocations: 107.4 kB / 0.9329 GB, free: 7.129 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 45.08 kB / 1.081 GB, free: 218.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2275, allocations: 140.6 MB / 1.218 GB, free: 117.3 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002051/0.2296, allocations: 1.35 MB / 1.219 GB, free: 116 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.0008638/0.2305, allocations: 0.6236 MB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.506e-05/0.2305, allocations: 0 / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 2.366e-05/0.2306, allocations: 7.922 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 3.704e-05/0.2306, allocations: 3.984 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.000439/0.2311, allocations: 124.8 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 4.717e-05/0.2311, allocations: 23.94 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 5.131e-05/0.2312, allocations: 7.984 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 2.622e-05/0.2312, allocations: 27.8 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.503e-05/0.2313, allocations: 11.98 kB / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.317e-05/0.2313, allocations: 0 / 1.22 GB, free: 115.1 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003808/0.2317, allocations: 339.4 kB / 1.221 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.303e-05/0.2317, allocations: 7.938 kB / 1.221 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 2.867e-05/0.2317, allocations: 19.92 kB / 1.221 GB, free: 114.8 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.2319, allocations: 149.7 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.232, allocations: 0 / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of FrontEnd: time 7.72e-07/0.232, allocations: 0 / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.232, allocations: 4 kB / 1.221 GB, free: 114.6 MB / 0.823 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.0003315/0.2323, allocations: 375.4 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.2323, allocations: 15.98 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.322e-05/0.2324, allocations: 0.9375 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.961e-05/0.2325, allocations: 172.3 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.2325, allocations: 384 / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.524e-05/0.2325, allocations: 4.375 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.2326, allocations: 46.25 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.2327, allocations: 4.188 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.2327, allocations: 7.938 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.2327, allocations: 0 / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.27e-05/0.2327, allocations: 23.97 kB / 1.221 GB, free: 113.9 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001244/0.2329, allocations: 165.6 kB / 1.222 GB, free: 113.7 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 8.155e-05/0.2329, allocations: 62.48 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.212e-05/0.233, allocations: 24.86 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.233, allocations: 7.984 kB / 1.222 GB, free: 113.6 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.638e-05/0.233, allocations: 34.56 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 9.62e-07/0.233, allocations: 0 / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of matching and sorting (n=11): time 0.002362/0.2354, allocations: 0.5917 MB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.133e-05/0.2354, allocations: 51.41 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.691e-05/0.2355, allocations: 101.9 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.2355, allocations: 25.8 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 1.605e-05/0.2355, allocations: 84.08 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 3.362e-05/0.2356, allocations: 47.44 kB / 1.223 GB, free: 112.5 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.099e-05/0.2356, allocations: 25.7 kB / 1.223 GB, free: 112.5 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 4.195e-05/0.2357, allocations: 314.8 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.438e-05/0.2357, allocations: 31.86 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.421e-05/0.2358, allocations: 16 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.827e-05/0.2358, allocations: 64.22 kB / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.61e-07/0.2359, allocations: 0 / 1.223 GB, free: 112.1 MB / 0.823 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001214/0.236, allocations: 101.5 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.236, allocations: 4 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.236, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.236, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.472e-05/0.2361, allocations: 31.92 kB / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.2361, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.447e-05/0.2362, allocations: 0 / 1.223 GB, free: 111.9 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.2362, allocations: 4 kB / 1.223 GB, free: 111.9 MB / 0.823 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 5.198e-05/0.2362, allocations: 118.5 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.37e-05/0.2363, allocations: 3.938 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001644/0.2364, allocations: 113.5 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.2364, allocations: 0 / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2364, allocations: 0 / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2365, allocations: 0 / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002994/0.2368, allocations: 346.5 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2368, allocations: 4 kB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.215e-05/0.2369, allocations: 23.92 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.2369, allocations: 4 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.2369, allocations: 4 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2369, allocations: 80 / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2369, allocations: 3.984 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.2388, allocations: 1.322 MB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.409e-05/0.2389, allocations: 81.14 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.498e-06/0.2389, allocations: 4 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.595e-05/0.239, allocations: 8.031 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.557e-05/0.239, allocations: 7.984 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.239, allocations: 8 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of sorting global known variables: time 1.643e-05/0.239, allocations: 75.28 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.239, allocations: 0 / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003245/0.2394, allocations: 43.92 kB / 1.225 GB, free: 109.5 MB / 0.823 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.0001628/0.2395, allocations: 135.1 kB / 1.225 GB, free: 109.4 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001168/0.2396, allocations: 64.06 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2397, allocations: 0 / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 3.673e-05/0.2397, allocations: 31.94 kB / 1.225 GB, free: 109.3 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001985/0.2399, allocations: 17.89 kB / 1.225 GB, free: 109.2 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005097/0.2404, allocations: 437.2 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.2405, allocations: 0.6892 MB / 1.226 GB, free: 108.1 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 4.322e-05/0.2406, allocations: 8 kB / 1.227 GB, free: 108.1 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.806e-05/0.2406, allocations: 15.44 kB / 1.227 GB, free: 108 MB / 0.823 GB Notification: Performance of SimCode: time 1.9e-07/0.2406, allocations: 0 / 1.227 GB, free: 108 MB / 0.823 GB Notification: Performance of Templates: time 0.002793/0.2434, allocations: 0.9584 MB / 1.227 GB, free: 107.1 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)