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.005655/0.005655, allocations: 102.3 kB / 15.73 MB, free: 6.055 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.001209/0.001209, allocations: 191 kB / 16.67 MB, free: 5.969 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002009/0.002009, allocations: 290.2 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9349/0.9349, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 96.28 kB / 0.6814 GB, free: 6.973 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4176/0.4194, allocations: 86.98 MB / 0.7664 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001969/0.4214, allocations: 1.279 MB / 0.7676 GB, free: 2.645 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009502/0.4224, allocations: 0.6167 MB / 0.7682 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.784e-05/0.4224, allocations: 0 / 0.7682 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 1.773e-05/0.4224, allocations: 0 / 0.7682 GB, free: 2.027 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.743e-05/0.4225, allocations: 7.938 kB / 0.7682 GB, free: 2.02 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004937/0.423, allocations: 143.4 kB / 0.7684 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 5.636e-05/0.4231, allocations: 23.86 kB / 0.7684 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.745e-05/0.4231, allocations: 4 kB / 0.7684 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.664e-05/0.4231, allocations: 15.98 kB / 0.7684 GB, free: 1.836 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.568e-05/0.4232, allocations: 11.92 kB / 0.7684 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.4232, allocations: 0 / 0.7684 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000481/0.4237, allocations: 339.3 kB / 0.7688 GB, free: 1.492 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 8.967e-06/0.4237, allocations: 4 kB / 0.7688 GB, free: 1.488 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.384e-05/0.4237, allocations: 15.92 kB / 0.7688 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002293/0.424, allocations: 145.9 kB / 0.7689 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.424, allocations: 0 / 0.7689 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.332e-06/0.424, allocations: 0 / 0.7689 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.424, allocations: 0 / 0.7689 GB, free: 1.336 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.0003675/0.4244, allocations: 363.4 kB / 0.7693 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.4244, allocations: 12.03 kB / 0.7693 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.043e-05/0.4244, allocations: 4.922 kB / 0.7693 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.528e-05/0.4245, allocations: 160.4 kB / 0.7694 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.4246, allocations: 4.375 kB / 0.7694 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.879e-05/0.4246, allocations: 384 / 0.7694 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.398e-05/0.4247, allocations: 46.19 kB / 0.7695 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.4247, allocations: 192 / 0.7695 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.4247, allocations: 3.938 kB / 0.7695 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.4247, allocations: 3.984 kB / 0.7695 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.595e-05/0.4248, allocations: 16 kB / 0.7695 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001428/0.4249, allocations: 153.7 kB / 0.7696 GB, free: 452 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.4251, allocations: 46.55 kB / 0.7697 GB, free: 396 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.175e-05/0.4251, allocations: 20.94 kB / 0.7697 GB, free: 372 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.4251, allocations: 0 / 0.7697 GB, free: 372 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.4252, allocations: 34.56 kB / 0.7697 GB, free: 328 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.4252, allocations: 7.938 kB / 0.7697 GB, free: 320 kB / 0.5294 GB Notification: Performance of matching and sorting (n=6): time 0.0005689/0.4257, allocations: 310.1 kB / 0.77 GB, free: 15.96 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/0.4258, allocations: 59.39 kB / 0.7701 GB, free: 15.89 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.931e-05/0.4259, allocations: 93.86 kB / 0.7702 GB, free: 15.79 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.238e-05/0.4259, allocations: 25.7 kB / 0.7702 GB, free: 15.75 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.023e-05/0.4259, allocations: 84.14 kB / 0.7703 GB, free: 15.67 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.426, allocations: 19.73 kB / 0.7703 GB, free: 15.65 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.426, allocations: 21.72 kB / 0.7703 GB, free: 15.62 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.286e-05/0.4261, allocations: 318.8 kB / 0.7706 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.363e-05/0.4261, allocations: 7.984 kB / 0.7706 GB, free: 15.29 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.168e-05/0.4261, allocations: 12 kB / 0.7707 GB, free: 15.28 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.473e-05/0.4262, allocations: 36.8 kB / 0.7707 GB, free: 15.24 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4262, allocations: 4.062 kB / 0.7707 GB, free: 15.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.265e-05/0.4263, allocations: 69.73 kB / 0.7708 GB, free: 15.16 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.4263, allocations: 7.938 kB / 0.7708 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.4263, allocations: 0 / 0.7708 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.4264, allocations: 4 kB / 0.7708 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.224e-05/0.4264, allocations: 15.98 kB / 0.7708 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.4264, allocations: 0 / 0.7708 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.831e-05/0.4264, allocations: 4 kB / 0.7708 GB, free: 15.13 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.019e-06/0.4265, allocations: 0 / 0.7708 GB, free: 15.13 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 6.422e-05/0.4265, allocations: 116.2 kB / 0.7709 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.114e-05/0.4265, allocations: 3.938 kB / 0.7709 GB, free: 15.01 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001349/0.4267, allocations: 77.64 kB / 0.771 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.4267, allocations: 4 kB / 0.771 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.4267, allocations: 0 / 0.771 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.4267, allocations: 0 / 0.771 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002868/0.427, allocations: 315.3 kB / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.427, allocations: 3.938 kB / 0.7713 GB, free: 14.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.945e-05/0.4271, allocations: 15.98 kB / 0.7713 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.4271, allocations: 0 / 0.7713 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/0.4271, allocations: 0 / 0.7713 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.4271, allocations: 4 kB / 0.7713 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4271, allocations: 0 / 0.7713 GB, free: 14.53 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001627/0.4273, allocations: 184.7 kB / 0.7715 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.325e-05/0.4273, allocations: 85.12 kB / 0.7716 GB, free: 14.23 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.4273, allocations: 8.125 kB / 0.7716 GB, free: 14.22 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.838e-05/0.4274, allocations: 4 kB / 0.7716 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.756e-05/0.4274, allocations: 7.984 kB / 0.7716 GB, free: 14.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.4275, allocations: 7.984 kB / 0.7716 GB, free: 14.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 2.883e-05/0.4275, allocations: 79.34 kB / 0.7717 GB, free: 14.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4275, allocations: 0 / 0.7717 GB, free: 14.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002329/0.4277, allocations: 24 kB / 0.7717 GB, free: 14.1 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.0001624/0.4279, allocations: 119.2 kB / 0.7718 GB, free: 13.97 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 9.62e-05/0.428, allocations: 39.92 kB / 0.7718 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.428, allocations: 0 / 0.7718 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.872e-05/0.428, allocations: 23.92 kB / 0.7719 GB, free: 13.91 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002057/0.4283, allocations: 8 kB / 0.7719 GB, free: 13.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003626/0.4286, allocations: 192.2 kB / 0.7721 GB, free: 13.68 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.4289, allocations: 0.6807 MB / 0.7727 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.06e-05/0.4289, allocations: 8.125 kB / 0.7727 GB, free: 12.97 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.92e-05/0.4289, allocations: 11.44 kB / 0.7727 GB, free: 12.96 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.4289, allocations: 0 / 0.7727 GB, free: 12.96 MB / 0.545 GB Notification: Performance of Templates: time 0.002803/0.4317, allocations: 0.6657 MB / 0.7734 GB, free: 12.34 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)