Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001631/0.001631, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001958/0.001958, allocations: 191.3 kB / 16.25 MB, free: 6.629 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.42/1.42, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.802/2.802, allocations: 472.6 MB / 0.7448 GB, free: 4.84 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 62.91 kB / 0.9115 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3758, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002872/0.3787, allocations: 1.347 MB / 1.069 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001044/0.3798, allocations: 0.6111 MB / 1.07 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.03e-05/0.3798, allocations: 4 kB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.645e-05/0.3799, allocations: 3.938 kB / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.776e-05/0.3799, allocations: 0 / 1.07 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005196/0.3804, allocations: 131.1 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.663e-05/0.3805, allocations: 19.94 kB / 1.07 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.713e-05/0.3806, allocations: 7.922 kB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.563e-05/0.3806, allocations: 7.938 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.522e-05/0.3807, allocations: 11.94 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.3807, allocations: 8 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000442/0.3811, allocations: 339.4 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.218e-05/0.3812, allocations: 3.984 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.481e-05/0.3812, allocations: 7.938 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003211/0.3815, allocations: 148 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3815, allocations: 0 / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.314e-06/0.3815, allocations: 0 / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.06e-05/0.3816, allocations: 0 / 1.07 GB, free: 8.094 MB / 0.8262 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.000532/0.3821, allocations: 367.4 kB / 1.071 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.3822, allocations: 8.031 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.813e-05/0.3822, allocations: 12.84 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.3824, allocations: 164.3 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.3824, allocations: 384 / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.3824, allocations: 4.375 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/0.3826, allocations: 38.25 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.3827, allocations: 192 / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.3827, allocations: 7.938 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.3827, allocations: 0 / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.796e-05/0.3827, allocations: 11.98 kB / 1.071 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000211/0.383, allocations: 161.7 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.3832, allocations: 42.5 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.988e-05/0.3832, allocations: 16.86 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.3833, allocations: 0 / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.3833, allocations: 38.64 kB / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.3833, allocations: 0 / 1.071 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006876/0.384, allocations: 314.2 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.3841, allocations: 51.41 kB / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.156e-05/0.3841, allocations: 98.19 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.3841, allocations: 29.69 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.008e-05/0.3842, allocations: 84.08 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.216e-05/0.3842, allocations: 23.7 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.509e-05/0.3843, allocations: 17.72 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3844, allocations: 322.8 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.543e-05/0.3844, allocations: 12 kB / 1.072 GB, free: 6.043 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.093e-05/0.3844, allocations: 12 kB / 1.072 GB, free: 6.031 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.692e-05/0.3845, allocations: 32.98 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.92e-07/0.3845, allocations: 4 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.125e-05/0.3846, allocations: 65.59 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3846, allocations: 17.12 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3846, allocations: 192 / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.3847, allocations: 0 / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.129e-05/0.3847, allocations: 11.94 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.932e-06/0.3847, allocations: 4 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.091e-05/0.3848, allocations: 7.984 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.3848, allocations: 0 / 1.072 GB, free: 5.883 MB / 0.8262 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 0.0001492/0.3849, allocations: 113.8 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.381e-05/0.3849, allocations: 7.922 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001351/0.3851, allocations: 65.66 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3851, allocations: 0 / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3851, allocations: 4 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.3851, allocations: 4 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003879/0.3855, allocations: 323.3 kB / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3855, allocations: 0 / 1.073 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.084e-05/0.3856, allocations: 11.94 kB / 1.073 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3856, allocations: 4 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.3856, allocations: 0 / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3856, allocations: 0 / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3856, allocations: 0 / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001843/0.3858, allocations: 192.5 kB / 1.073 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-05/0.3859, allocations: 77.11 kB / 1.073 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.594e-05/0.3859, allocations: 4.031 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.469e-05/0.386, allocations: 3.984 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.94e-05/0.386, allocations: 8 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.386, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.732e-05/0.386, allocations: 79.28 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.084e-06/0.386, allocations: 4.062 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002409/0.3863, allocations: 39.8 kB / 1.073 GB, free: 4.844 MB / 0.8262 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.0001959/0.3865, allocations: 115.2 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001137/0.3866, allocations: 31.98 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3866, allocations: 0 / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.973e-05/0.3867, allocations: 19.94 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002282/0.3869, allocations: 10.78 kB / 1.073 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004419/0.3873, allocations: 216.1 kB / 1.073 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.3876, allocations: 0.6884 MB / 1.074 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.146e-05/0.3877, allocations: 4 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.464e-05/0.3877, allocations: 15.44 kB / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3877, allocations: 0 / 1.074 GB, free: 3.688 MB / 0.8262 GB Notification: Performance of Templates: time 0.00314/0.3908, allocations: 0.6471 MB / 1.075 GB, free: 3.074 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)