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.001595/0.001595, allocations: 103.2 kB / 16.27 MB, free: 6.414 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.001584/0.001584, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.459/1.459, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.315/2.315, allocations: 390.3 MB / 0.6653 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 62.77 kB / 0.8132 GB, free: 33.18 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2792, allocations: 140.4 MB / 0.9503 GB, free: 8.82 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.0028/0.282, allocations: 1.272 MB / 0.9515 GB, free: 7.531 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001009/0.2831, allocations: 0.6131 MB / 0.9521 GB, free: 6.918 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.738e-05/0.2831, allocations: 4 kB / 0.9521 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.543e-05/0.2831, allocations: 3.938 kB / 0.9521 GB, free: 6.91 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.979e-05/0.2832, allocations: 0 / 0.9521 GB, free: 6.91 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006856/0.2839, allocations: 139.4 kB / 0.9523 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.898e-05/0.284, allocations: 27.91 kB / 0.9523 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.02e-05/0.2841, allocations: 0 / 0.9523 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.514e-05/0.2841, allocations: 7.938 kB / 0.9523 GB, free: 6.738 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.165e-05/0.2842, allocations: 15.92 kB / 0.9523 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.2842, allocations: 4 kB / 0.9523 GB, free: 6.719 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006166/0.2848, allocations: 343.3 kB / 0.9526 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.711e-05/0.2849, allocations: 4 kB / 0.9526 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.476e-05/0.2849, allocations: 7.938 kB / 0.9527 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003329/0.2852, allocations: 147.9 kB / 0.9528 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.2853, allocations: 4 kB / 0.9528 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.853e-06/0.2853, allocations: 0 / 0.9528 GB, free: 6.223 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.093e-05/0.2853, allocations: 0 / 0.9528 GB, free: 6.223 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.0005138/0.2858, allocations: 364.7 kB / 0.9531 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.2859, allocations: 12.03 kB / 0.9532 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.821e-05/0.2859, allocations: 0.9375 kB / 0.9532 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.2861, allocations: 176.3 kB / 0.9533 GB, free: 5.594 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.788e-05/0.2861, allocations: 8.297 kB / 0.9533 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.186e-05/0.2861, allocations: 4.375 kB / 0.9533 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.2863, allocations: 34.27 kB / 0.9534 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.2863, allocations: 192 / 0.9534 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.2863, allocations: 7.922 kB / 0.9534 GB, free: 5.535 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.2863, allocations: 3.938 kB / 0.9534 GB, free: 5.531 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.734e-05/0.2864, allocations: 8 kB / 0.9534 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000213/0.2866, allocations: 161.7 kB / 0.9535 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002286/0.2869, allocations: 46.55 kB / 0.9536 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.159e-05/0.2869, allocations: 16.94 kB / 0.9536 GB, free: 5.242 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.2869, allocations: 4 kB / 0.9536 GB, free: 5.238 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.287, allocations: 34.56 kB / 0.9536 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.503e-06/0.287, allocations: 0 / 0.9536 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of matching and sorting (n=6): time 0.0007943/0.2878, allocations: 306.2 kB / 0.9539 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.2878, allocations: 55.41 kB / 0.954 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.192e-05/0.2879, allocations: 101.8 kB / 0.9541 GB, free: 4.668 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.2879, allocations: 25.7 kB / 0.9541 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/0.288, allocations: 80.14 kB / 0.9542 GB, free: 4.555 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.638e-05/0.288, allocations: 19.72 kB / 0.9542 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-05/0.2881, allocations: 21.7 kB / 0.9542 GB, free: 4.508 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.2882, allocations: 314.8 kB / 0.9545 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.455e-05/0.2883, allocations: 12 kB / 0.9545 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.72e-05/0.2883, allocations: 15.92 kB / 0.9545 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.158e-05/0.2884, allocations: 32.84 kB / 0.9546 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.2884, allocations: 0 / 0.9546 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001052/0.2885, allocations: 66.36 kB / 0.9546 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.2885, allocations: 7.938 kB / 0.9547 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2885, allocations: 3.938 kB / 0.9547 GB, free: 4.047 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.2885, allocations: 4 kB / 0.9547 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.057e-05/0.2886, allocations: 12 kB / 0.9547 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.2886, allocations: 4.062 kB / 0.9547 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.852e-05/0.2886, allocations: 3.938 kB / 0.9547 GB, free: 4.023 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.2887, allocations: 7.984 kB / 0.9547 GB, free: 4.016 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 7.105e-05/0.2887, allocations: 111.8 kB / 0.9548 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.2888, allocations: 11.84 kB / 0.9548 GB, free: 3.887 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.2889, allocations: 73.7 kB / 0.9549 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2889, allocations: 0 / 0.9549 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2889, allocations: 4 kB / 0.9549 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2889, allocations: 3.984 kB / 0.9549 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003534/0.2893, allocations: 319.4 kB / 0.9552 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2893, allocations: 0 / 0.9552 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.951e-05/0.2894, allocations: 11.94 kB / 0.9552 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.2894, allocations: 4 kB / 0.9552 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.2894, allocations: 0 / 0.9552 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.2894, allocations: 0 / 0.9552 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2894, allocations: 3.938 kB / 0.9552 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001883/0.2896, allocations: 184.4 kB / 0.9554 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.25e-05/0.2897, allocations: 85 kB / 0.9555 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.427e-05/0.2897, allocations: 4 kB / 0.9555 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.262e-05/0.2898, allocations: 0 / 0.9555 GB, free: 3.102 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.227e-05/0.2898, allocations: 4 kB / 0.9555 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.2898, allocations: 4 kB / 0.9555 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.943e-05/0.2899, allocations: 87.33 kB / 0.9556 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2899, allocations: 0 / 0.9556 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002503/0.2901, allocations: 19.94 kB / 0.9556 GB, free: 2.988 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.0002017/0.2903, allocations: 133.3 kB / 0.9557 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001143/0.2905, allocations: 31.98 kB / 0.9557 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.2905, allocations: 0 / 0.9557 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 2.947e-05/0.2905, allocations: 19.94 kB / 0.9558 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.2907, allocations: 7.938 kB / 0.9558 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004598/0.2912, allocations: 218.3 kB / 0.956 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.2915, allocations: 0.6883 MB / 0.9566 GB, free: 1.832 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.88e-05/0.2915, allocations: 19.38 kB / 0.9567 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.2915, allocations: 0 / 0.9567 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of Templates: time 0.002525/0.294, allocations: 0.7943 MB / 0.9574 GB, free: 1.023 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)