Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00123/0.00123, allocations: 109.3 kB / 15.99 MB, free: 5.91 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.001174/0.001175, allocations: 192.1 kB / 16.91 MB, free: 5.758 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.335/1.335, allocations: 222.9 MB / 240.6 MB, free: 13.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.247/2.247, allocations: 390.2 MB / 0.665 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 62.92 kB / 0.8127 GB, free: 32.41 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2748, allocations: 140.4 MB / 0.9498 GB, free: 9.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002804/0.2776, allocations: 1.333 MB / 0.9511 GB, free: 7.922 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.2787, allocations: 0.6132 MB / 0.9517 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.454e-05/0.2788, allocations: 0 / 0.9517 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.102e-05/0.2788, allocations: 0 / 0.9517 GB, free: 7.309 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.08e-05/0.2789, allocations: 15.91 kB / 0.9517 GB, free: 7.293 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006587/0.2795, allocations: 123.6 kB / 0.9518 GB, free: 7.172 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 5.857e-05/0.2796, allocations: 19.92 kB / 0.9518 GB, free: 7.152 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.555e-05/0.2797, allocations: 4 kB / 0.9518 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 3.959e-05/0.2797, allocations: 11.92 kB / 0.9518 GB, free: 7.137 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.087e-05/0.2798, allocations: 7.984 kB / 0.9518 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.2798, allocations: 4 kB / 0.9519 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004866/0.2803, allocations: 339.3 kB / 0.9522 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.2803, allocations: 11.92 kB / 0.9522 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.349e-05/0.2803, allocations: 7.938 kB / 0.9522 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002194/0.2806, allocations: 100.1 kB / 0.9523 GB, free: 6.676 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2806, allocations: 3.938 kB / 0.9523 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.963e-06/0.2806, allocations: 0 / 0.9523 GB, free: 6.672 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.2806, allocations: 0 / 0.9523 GB, free: 6.672 MB / 0.7325 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.0004738/0.2811, allocations: 359.4 kB / 0.9526 GB, free: 6.27 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2811, allocations: 12.03 kB / 0.9526 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.679e-05/0.2812, allocations: 0.9375 kB / 0.9526 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.2813, allocations: 168.3 kB / 0.9528 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.2813, allocations: 8.312 kB / 0.9528 GB, free: 6.047 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.2813, allocations: 8.375 kB / 0.9528 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001122/0.2815, allocations: 38.25 kB / 0.9529 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.2815, allocations: 192 / 0.9529 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.2815, allocations: 7.938 kB / 0.9529 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.2815, allocations: 0 / 0.9529 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.093e-05/0.2816, allocations: 8 kB / 0.9529 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001848/0.2818, allocations: 153.7 kB / 0.953 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.282, allocations: 54.53 kB / 0.9531 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.737e-05/0.282, allocations: 20.94 kB / 0.9531 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.282, allocations: 0 / 0.9531 GB, free: 5.695 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.2821, allocations: 34.56 kB / 0.9531 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.2821, allocations: 0 / 0.9531 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0006892/0.2828, allocations: 310.2 kB / 0.9534 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.2828, allocations: 51.41 kB / 0.9535 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.703e-05/0.2829, allocations: 101.8 kB / 0.9536 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.2829, allocations: 29.7 kB / 0.9536 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 3.336e-05/0.283, allocations: 84.14 kB / 0.9537 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.155e-05/0.283, allocations: 19.7 kB / 0.9537 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.953e-05/0.283, allocations: 21.72 kB / 0.9537 GB, free: 4.957 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.2832, allocations: 310.8 kB / 0.954 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.571e-05/0.2832, allocations: 11.98 kB / 0.954 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.461e-05/0.2832, allocations: 11.94 kB / 0.954 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.807e-05/0.2833, allocations: 44.78 kB / 0.9541 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.2833, allocations: 0 / 0.9541 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.882e-05/0.2834, allocations: 61.69 kB / 0.9541 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.2834, allocations: 7.938 kB / 0.9541 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.2834, allocations: 240 / 0.9541 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.2835, allocations: 0 / 0.9541 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.647e-05/0.2835, allocations: 19.98 kB / 0.9542 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.2835, allocations: 7.922 kB / 0.9542 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.982e-05/0.2836, allocations: 0 / 0.9542 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.2836, allocations: 7.938 kB / 0.9542 GB, free: 4.465 MB / 0.7325 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 8.706e-05/0.2837, allocations: 113.8 kB / 0.9543 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.724e-05/0.2837, allocations: 11.84 kB / 0.9543 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.2838, allocations: 69.64 kB / 0.9544 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2838, allocations: 0 / 0.9544 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.2838, allocations: 0 / 0.9544 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2839, allocations: 0 / 0.9544 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003265/0.2842, allocations: 311.4 kB / 0.9547 GB, free: 3.891 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2842, allocations: 8.031 kB / 0.9547 GB, free: 3.883 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.975e-05/0.2843, allocations: 8 kB / 0.9547 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.2843, allocations: 3.984 kB / 0.9547 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.2843, allocations: 4 kB / 0.9547 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2843, allocations: 0 / 0.9547 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.2843, allocations: 3.938 kB / 0.9547 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001867/0.2845, allocations: 176.5 kB / 0.9549 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.984e-05/0.2846, allocations: 97.09 kB / 0.955 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.2846, allocations: 0 / 0.955 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.412e-05/0.2847, allocations: 4 kB / 0.955 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.37e-05/0.2847, allocations: 0 / 0.955 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.2847, allocations: 8.5 kB / 0.955 GB, free: 3.547 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.429e-05/0.2847, allocations: 79.28 kB / 0.955 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2847, allocations: 0 / 0.955 GB, free: 3.469 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002569/0.285, allocations: 23.94 kB / 0.9551 GB, free: 3.445 MB / 0.7325 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.0001959/0.2852, allocations: 131.2 kB / 0.9552 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001132/0.2853, allocations: 31.98 kB / 0.9552 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2853, allocations: 3.938 kB / 0.9552 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 3.033e-05/0.2854, allocations: 23.92 kB / 0.9552 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002343/0.2856, allocations: 10.61 kB / 0.9553 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004612/0.2861, allocations: 230.1 kB / 0.9555 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.2863, allocations: 0.6805 MB / 0.9561 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.338e-05/0.2864, allocations: 11.42 kB / 0.9561 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of SimCode: time 3.6e-07/0.2864, allocations: 3.938 kB / 0.9562 GB, free: 2.262 MB / 0.7325 GB Notification: Performance of Templates: time 0.002521/0.2889, allocations: 0.7986 MB / 0.9569 GB, free: 1.469 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)