Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001255/0.001255, allocations: 108.2 kB / 16.4 MB, free: 6.383 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.00128/0.00128, allocations: 190.2 kB / 17.33 MB, free: 5.844 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.417/1.417, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002518/0.002518, allocations: 296.9 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.002/1.002, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002782/0.002782, allocations: 91.86 kB / 0.6821 GB, free: 7.004 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4024/0.4052, allocations: 86.98 MB / 0.767 GB, free: 3.988 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002173/0.4074, allocations: 1.273 MB / 0.7683 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001074/0.4084, allocations: 0.6206 MB / 0.7689 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.086e-05/0.4085, allocations: 0 / 0.7689 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.369e-05/0.4085, allocations: 0 / 0.7689 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.632e-05/0.4085, allocations: 11.86 kB / 0.7689 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005245/0.409, allocations: 149.4 kB / 0.769 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.011e-05/0.4091, allocations: 19.94 kB / 0.7691 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.312e-05/0.4091, allocations: 0 / 0.7691 GB, free: 1.91 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.447e-05/0.4092, allocations: 7.984 kB / 0.7691 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.582e-05/0.4092, allocations: 11.92 kB / 0.7691 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 8.947e-06/0.4092, allocations: 0 / 0.7691 GB, free: 1.891 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005073/0.4097, allocations: 343.3 kB / 0.7694 GB, free: 1.555 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.346e-05/0.4097, allocations: 7.984 kB / 0.7694 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.142e-05/0.4097, allocations: 7.938 kB / 0.7694 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.41, allocations: 149.2 kB / 0.7696 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.41, allocations: 8 kB / 0.7696 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.213e-06/0.41, allocations: 0 / 0.7696 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.167e-06/0.41, allocations: 0 / 0.7696 GB, free: 1.395 MB / 0.5294 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.0004373/0.4104, allocations: 363.1 kB / 0.7699 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.4105, allocations: 8.031 kB / 0.7699 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.4105, allocations: 0.9375 kB / 0.7699 GB, free: 0.9805 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.4106, allocations: 172.3 kB / 0.7701 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.4106, allocations: 384 / 0.7701 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.737e-05/0.4107, allocations: 384 / 0.7701 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.4108, allocations: 50.19 kB / 0.7701 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.4108, allocations: 4.172 kB / 0.7701 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.4108, allocations: 3.938 kB / 0.7701 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.4108, allocations: 0 / 0.7701 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.663e-05/0.4108, allocations: 11.98 kB / 0.7702 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001838/0.411, allocations: 161.7 kB / 0.7703 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.4112, allocations: 42.5 kB / 0.7704 GB, free: 452 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.559e-05/0.4112, allocations: 24.86 kB / 0.7704 GB, free: 424 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.4113, allocations: 0 / 0.7704 GB, free: 424 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.4113, allocations: 34.56 kB / 0.7704 GB, free: 380 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.4113, allocations: 3.938 kB / 0.7704 GB, free: 376 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0005991/0.4119, allocations: 314.3 kB / 0.7707 GB, free: 8 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.4119, allocations: 51.41 kB / 0.7708 GB, free: 15.95 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.799e-05/0.412, allocations: 93.86 kB / 0.7708 GB, free: 15.84 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.996e-05/0.412, allocations: 33.7 kB / 0.7709 GB, free: 15.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.082e-05/0.4121, allocations: 80.14 kB / 0.771 GB, free: 15.72 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.183e-05/0.4121, allocations: 27.78 kB / 0.771 GB, free: 15.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/0.4121, allocations: 17.72 kB / 0.771 GB, free: 15.67 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.4123, allocations: 314.8 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.827e-05/0.4123, allocations: 11.98 kB / 0.7713 GB, free: 15.34 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.39e-05/0.4123, allocations: 12 kB / 0.7713 GB, free: 15.33 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.238e-05/0.4124, allocations: 32.95 kB / 0.7714 GB, free: 15.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.4124, allocations: 4 kB / 0.7714 GB, free: 15.29 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001157/0.4125, allocations: 77.61 kB / 0.7714 GB, free: 15.21 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.4125, allocations: 7.938 kB / 0.7714 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.4125, allocations: 0 / 0.7714 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.4125, allocations: 0 / 0.7714 GB, free: 15.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.711e-05/0.4126, allocations: 15.98 kB / 0.7715 GB, free: 15.19 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.349e-06/0.4126, allocations: 0 / 0.7715 GB, free: 15.19 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.774e-05/0.4126, allocations: 0 / 0.7715 GB, free: 15.19 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.4126, allocations: 0 / 0.7715 GB, free: 15.19 MB / 0.545 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.56e-05/0.4127, allocations: 124.2 kB / 0.7716 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.384e-05/0.4127, allocations: 3.938 kB / 0.7716 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001465/0.4129, allocations: 73.64 kB / 0.7716 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.4129, allocations: 0 / 0.7716 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.4129, allocations: 0 / 0.7716 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.4129, allocations: 3.938 kB / 0.7717 GB, free: 14.97 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000327/0.4132, allocations: 311.4 kB / 0.7719 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4132, allocations: 0.5156 kB / 0.772 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.64e-05/0.4133, allocations: 15.98 kB / 0.772 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.4133, allocations: 4.031 kB / 0.772 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.4133, allocations: 4.188 kB / 0.772 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.4133, allocations: 8 kB / 0.772 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4133, allocations: 0 / 0.772 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.4135, allocations: 180.2 kB / 0.7722 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.373e-05/0.4135, allocations: 89.11 kB / 0.7722 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.209e-05/0.4135, allocations: 4 kB / 0.7722 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.305e-05/0.4136, allocations: 4 kB / 0.7722 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.837e-05/0.4136, allocations: 7.984 kB / 0.7723 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.4136, allocations: 4 kB / 0.7723 GB, free: 14.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.033e-05/0.4137, allocations: 79.28 kB / 0.7723 GB, free: 14.18 MB / 0.545 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4137, allocations: 0 / 0.7723 GB, free: 14.18 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002494/0.4139, allocations: 19.94 kB / 0.7724 GB, free: 14.16 MB / 0.545 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.0001808/0.4141, allocations: 123.1 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 9.946e-05/0.4142, allocations: 35.92 kB / 0.7725 GB, free: 13.99 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4142, allocations: 0 / 0.7725 GB, free: 13.99 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 3.6e-05/0.4143, allocations: 23.92 kB / 0.7725 GB, free: 13.97 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002245/0.4145, allocations: 17.09 kB / 0.7725 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003994/0.4149, allocations: 184.2 kB / 0.7727 GB, free: 13.74 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003301/0.4152, allocations: 0.6846 MB / 0.7734 GB, free: 13.03 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.984e-05/0.4152, allocations: 4 kB / 0.7734 GB, free: 13.03 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.829e-05/0.4153, allocations: 11.44 kB / 0.7734 GB, free: 13.02 MB / 0.545 GB Notification: Performance of SimCode: time 3.3e-07/0.4153, allocations: 0 / 0.7734 GB, free: 13.02 MB / 0.545 GB Notification: Performance of Templates: time 0.003174/0.4184, allocations: 0.6712 MB / 0.7741 GB, free: 12.39 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)