Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 109.3 kB / 16.41 MB, free: 6.496 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.001783/0.001783, allocations: 187 kB / 17.34 MB, free: 5.762 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.16 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.337/2.337, allocations: 390.3 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 59.91 kB / 0.9515 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8838/0.8852, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002518/0.8878, allocations: 1.472 MB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.8888, allocations: 0.631 MB / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.159e-05/0.8888, allocations: 0 / 1.091 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.053e-05/0.8889, allocations: 5.578 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.272e-05/0.889, allocations: 6.359 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006355/0.8896, allocations: 163.6 kB / 1.091 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001135/0.8897, allocations: 57.11 kB / 1.091 GB, free: 3.934 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.725e-05/0.8898, allocations: 7.906 kB / 1.091 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.014e-05/0.8899, allocations: 25.5 kB / 1.091 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.006e-05/0.8899, allocations: 21.42 kB / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.117e-05/0.8899, allocations: 4.438 kB / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006223/0.8906, allocations: 348.4 kB / 1.091 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.26e-05/0.8906, allocations: 20.3 kB / 1.091 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.02e-05/0.8906, allocations: 26.47 kB / 1.091 GB, free: 3.777 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003404/0.891, allocations: 174.5 kB / 1.091 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.891, allocations: 5.062 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.993e-06/0.891, allocations: 0 / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.891, allocations: 0 / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005996/0.8916, allocations: 398.4 kB / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.8917, allocations: 10 kB / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.642e-05/0.8917, allocations: 8.531 kB / 1.092 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.446e-05/0.8918, allocations: 171.6 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.157e-05/0.8919, allocations: 7.531 kB / 1.092 GB, free: 3.113 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.8919, allocations: 9.156 kB / 1.092 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.8922, allocations: 86.58 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.8922, allocations: 0.8906 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.8922, allocations: 5.688 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.8922, allocations: 1 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.8925, allocations: 55.3 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005185/0.893, allocations: 321.4 kB / 1.093 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002979/0.8933, allocations: 75.52 kB / 1.093 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.8934, allocations: 32.52 kB / 1.093 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.439e-05/0.8935, allocations: 5.297 kB / 1.093 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.187e-05/0.8935, allocations: 37.05 kB / 1.093 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.8935, allocations: 0 / 1.093 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001628/0.8951, allocations: 0.644 MB / 1.093 GB, free: 2.121 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/0.8952, allocations: 53.61 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.822e-05/0.8953, allocations: 108.7 kB / 1.093 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.8953, allocations: 27.59 kB / 1.093 GB, free: 1.918 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.304e-05/0.8953, allocations: 96.11 kB / 1.094 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.8954, allocations: 42.77 kB / 1.094 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.925e-05/0.8954, allocations: 28.47 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.747e-05/0.8955, allocations: 314.8 kB / 1.094 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.8956, allocations: 32.33 kB / 1.094 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.8958, allocations: 33.25 kB / 1.094 GB, free: 1.438 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.896, allocations: 67.48 kB / 1.094 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.8961, allocations: 8 kB / 1.094 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003234/0.8964, allocations: 122.6 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.8964, allocations: 6.312 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.8964, allocations: 3.938 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.221e-05/0.8965, allocations: 0.75 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.8966, allocations: 33.59 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.8966, allocations: 1.75 kB / 1.094 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.484e-05/0.8967, allocations: 8.406 kB / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.8967, allocations: 4.047 kB / 1.094 GB, free: 1.332 MB / 0.8575 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 7.017e-05/0.8968, allocations: 120.5 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.158e-05/0.8968, allocations: 2.625 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003825/0.8972, allocations: 130 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.8972, allocations: 1 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.8972, allocations: 1.391 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.8973, allocations: 5.297 kB / 1.094 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005392/0.8978, allocations: 390.7 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.8978, allocations: 0.75 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.898, allocations: 24.75 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.898, allocations: 0.7188 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.898, allocations: 6.094 kB / 1.095 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.898, allocations: 1.438 kB / 1.095 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.898, allocations: 0 / 1.095 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005001/0.8985, allocations: 248 kB / 1.095 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.232e-05/0.8985, allocations: 83.53 kB / 1.095 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.8986, allocations: 6.609 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.8987, allocations: 13.94 kB / 1.095 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.468e-05/0.8987, allocations: 10.03 kB / 1.095 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.8987, allocations: 3.703 kB / 1.095 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.659e-05/0.8988, allocations: 84.02 kB / 1.095 GB, free: 436 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8988, allocations: 5 kB / 1.095 GB, free: 432 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003363/0.8991, allocations: 38.94 kB / 1.095 GB, free: 420 kB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.0002366/0.8994, allocations: 134 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003485/0.8997, allocations: 85.05 kB / 1.096 GB, free: 300 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.8997, allocations: 0 / 1.096 GB, free: 300 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.8999, allocations: 47.52 kB / 1.096 GB, free: 288 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003368/0.9002, allocations: 12.84 kB / 1.096 GB, free: 280 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006781/0.9009, allocations: 338.2 kB / 1.096 GB, free: 0 / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.9013, allocations: 0.6996 MB / 1.097 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.533e-05/0.9013, allocations: 15.12 kB / 1.097 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of SimCode: time 2.11e-07/0.9013, allocations: 0.75 kB / 1.097 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of Templates: time 0.003969/0.9053, allocations: 1.329 MB / 1.098 GB, free: 15.16 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)