Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.004837/0.004837, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001082/0.001082, allocations: 193.3 kB / 16.67 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.325/1.325, allocations: 222.9 MB / 240.4 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.00209/0.00209, allocations: 300.7 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9375/0.9375, allocations: 169.2 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 91.86 kB / 0.6814 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.423/0.4247, allocations: 86.97 MB / 0.7664 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002246/0.427, allocations: 1.472 MB / 0.7678 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009894/0.428, allocations: 0.6284 MB / 0.7684 GB, free: 1.801 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.993e-05/0.428, allocations: 4 kB / 0.7684 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.552e-05/0.4281, allocations: 3.938 kB / 0.7684 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.124e-05/0.4281, allocations: 3.938 kB / 0.7684 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005063/0.4286, allocations: 167.3 kB / 0.7686 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.916e-05/0.4287, allocations: 55.59 kB / 0.7687 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.599e-05/0.4288, allocations: 4 kB / 0.7687 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.569e-05/0.4288, allocations: 23.91 kB / 0.7687 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.868e-05/0.4289, allocations: 31.91 kB / 0.7687 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.4289, allocations: 4 kB / 0.7687 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004703/0.4294, allocations: 347.3 kB / 0.769 GB, free: 1.168 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.696e-05/0.4294, allocations: 11.94 kB / 0.7691 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.381e-05/0.4294, allocations: 31.84 kB / 0.7691 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.4297, allocations: 169.8 kB / 0.7692 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4297, allocations: 0 / 0.7692 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.484e-06/0.4297, allocations: 0 / 0.7692 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.308e-06/0.4297, allocations: 3.938 kB / 0.7693 GB, free: 0.9609 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005447/0.4303, allocations: 406.1 kB / 0.7696 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.4303, allocations: 8.031 kB / 0.7696 GB, free: 0.5078 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.078e-05/0.4304, allocations: 8.844 kB / 0.7697 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.4305, allocations: 180.2 kB / 0.7698 GB, free: 292 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.4305, allocations: 4.375 kB / 0.7698 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.4305, allocations: 8.375 kB / 0.7698 GB, free: 280 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002261/0.4308, allocations: 74.22 kB / 0.7699 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.4308, allocations: 192 / 0.7699 GB, free: 200 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.4308, allocations: 11.94 kB / 0.7699 GB, free: 188 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.4308, allocations: 4 kB / 0.7699 GB, free: 184 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002277/0.431, allocations: 47.95 kB / 0.77 GB, free: 136 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005295/0.4316, allocations: 320.6 kB / 0.7703 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002708/0.4319, allocations: 78.53 kB / 0.7704 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.432, allocations: 32.84 kB / 0.7704 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.432, allocations: 0 / 0.7704 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.432, allocations: 34.5 kB / 0.7704 GB, free: 15.61 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.432, allocations: 0 / 0.7704 GB, free: 15.61 MB / 0.545 GB Notification: Performance of matching and sorting (n=11): time 0.00156/0.4336, allocations: 0.6539 MB / 0.7711 GB, free: 14.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.4337, allocations: 59.39 kB / 0.7711 GB, free: 14.79 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.024e-05/0.4337, allocations: 101.8 kB / 0.7712 GB, free: 14.68 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.4337, allocations: 33.7 kB / 0.7712 GB, free: 14.64 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.479e-05/0.4338, allocations: 88.03 kB / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.216e-05/0.4338, allocations: 39.45 kB / 0.7714 GB, free: 14.51 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-05/0.4339, allocations: 29.7 kB / 0.7714 GB, free: 14.48 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.434, allocations: 318.8 kB / 0.7717 GB, free: 14.16 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.4341, allocations: 31.98 kB / 0.7717 GB, free: 14.12 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001199/0.4342, allocations: 34.84 kB / 0.7718 GB, free: 14.09 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.4345, allocations: 76.83 kB / 0.7718 GB, free: 14.02 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.4345, allocations: 3.938 kB / 0.7718 GB, free: 14.01 MB / 0.545 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003115/0.4348, allocations: 117.5 kB / 0.7719 GB, free: 13.89 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.4348, allocations: 8 kB / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.4349, allocations: 96 / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.044e-05/0.4349, allocations: 3.938 kB / 0.772 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.435, allocations: 27.98 kB / 0.772 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.435, allocations: 4 kB / 0.772 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.001e-05/0.4351, allocations: 15.92 kB / 0.772 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.4351, allocations: 4 kB / 0.772 GB, free: 13.83 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 (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.741e-05/0.4352, allocations: 120.2 kB / 0.7721 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.26e-05/0.4352, allocations: 7.906 kB / 0.7721 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003732/0.4356, allocations: 121.6 kB / 0.7722 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.4356, allocations: 4 kB / 0.7723 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4356, allocations: 0 / 0.7723 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.4357, allocations: 7.938 kB / 0.7723 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005364/0.4362, allocations: 374.4 kB / 0.7726 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.4362, allocations: 0 / 0.7726 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.4364, allocations: 31.97 kB / 0.7726 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.4364, allocations: 4 kB / 0.7727 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.4364, allocations: 3.938 kB / 0.7727 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.4364, allocations: 0 / 0.7727 GB, free: 13.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4364, allocations: 4 kB / 0.7727 GB, free: 13.09 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004861/0.4369, allocations: 251.3 kB / 0.7729 GB, free: 12.83 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.901e-05/0.4369, allocations: 81.14 kB / 0.773 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.437, allocations: 3.938 kB / 0.773 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.4371, allocations: 7.984 kB / 0.773 GB, free: 12.72 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.829e-05/0.4371, allocations: 12.06 kB / 0.773 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.4371, allocations: 7.984 kB / 0.773 GB, free: 12.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.342e-05/0.4372, allocations: 79.28 kB / 0.7731 GB, free: 12.62 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4372, allocations: 0 / 0.7731 GB, free: 12.62 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002658/0.4374, allocations: 39.94 kB / 0.7731 GB, free: 12.59 MB / 0.545 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.0001923/0.4376, allocations: 143.1 kB / 0.7733 GB, free: 12.44 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003099/0.438, allocations: 90.45 kB / 0.7733 GB, free: 12.35 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.438, allocations: 4 kB / 0.7733 GB, free: 12.35 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.4381, allocations: 47.91 kB / 0.7734 GB, free: 12.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.4384, allocations: 8 kB / 0.7734 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005826/0.439, allocations: 310.6 kB / 0.7737 GB, free: 11.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.4393, allocations: 0.6924 MB / 0.7744 GB, free: 11.24 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.241e-05/0.4393, allocations: 16.59 kB / 0.7744 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.748e-05/0.4394, allocations: 11.44 kB / 0.7744 GB, free: 11.21 MB / 0.545 GB Notification: Performance of SimCode: time 2.21e-07/0.4394, allocations: 4 kB / 0.7744 GB, free: 11.21 MB / 0.545 GB Notification: Performance of Templates: time 0.003305/0.4427, allocations: 1.149 MB / 0.7755 GB, free: 10.11 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)