Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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: "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000958/0.0009582, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007625/0.007625, allocations: 170 kB / 16.26 MB, free: 6.613 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.314/1.314, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7475/0.7475, allocations: 132.3 MB / 423.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003029/0.000303, allocations: 12.81 kB / 0.5041 GB, free: 3.785 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.3359, allocations: 81.57 MB / 0.5838 GB, free: 3.855 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001128/0.3371, allocations: 1.005 MB / 0.5847 GB, free: 3.109 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008896/0.338, allocations: 0.6168 MB / 0.5853 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.896e-05/0.338, allocations: 3.938 kB / 0.5853 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.429e-05/0.338, allocations: 5.625 kB / 0.5853 GB, free: 2.68 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.724e-05/0.3381, allocations: 2.172 kB / 0.5853 GB, free: 2.68 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005037/0.3386, allocations: 128.5 kB / 0.5855 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.957e-05/0.3387, allocations: 25 kB / 0.5855 GB, free: 2.613 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.99e-05/0.3387, allocations: 2.141 kB / 0.5855 GB, free: 2.613 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.278e-05/0.3387, allocations: 15.88 kB / 0.5855 GB, free: 2.605 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.128e-05/0.3388, allocations: 20.34 kB / 0.5855 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.062e-05/0.3388, allocations: 1.031 kB / 0.5855 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000512/0.3393, allocations: 338.1 kB / 0.5859 GB, free: 2.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.44e-05/0.3393, allocations: 11.11 kB / 0.5859 GB, free: 2.492 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.975e-05/0.3394, allocations: 39.44 kB / 0.5859 GB, free: 2.453 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002685/0.3397, allocations: 151.4 kB / 0.586 GB, free: 2.406 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.696e-06/0.3397, allocations: 5.062 kB / 0.5861 GB, free: 2.402 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3397, allocations: 4 kB / 0.5861 GB, free: 2.398 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.3397, allocations: 0 / 0.5861 GB, free: 2.398 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002928/0.34, allocations: 362.1 kB / 0.5864 GB, free: 2.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.34, allocations: 10.06 kB / 0.5864 GB, free: 2.02 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.62e-05/0.3401, allocations: 33.11 kB / 0.5864 GB, free: 1.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.683e-05/0.3401, allocations: 7.094 kB / 0.5865 GB, free: 1.977 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.365e-05/0.3402, allocations: 167.9 kB / 0.5866 GB, free: 1.777 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.3402, allocations: 1.031 kB / 0.5866 GB, free: 1.777 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.3402, allocations: 8.156 kB / 0.5866 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.3403, allocations: 57.78 kB / 0.5867 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.3403, allocations: 0.75 kB / 0.5867 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.457e-06/0.3404, allocations: 0.7812 kB / 0.5867 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3404, allocations: 1.312 kB / 0.5867 GB, free: 1.727 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.016e-05/0.3404, allocations: 18.7 kB / 0.5867 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001224/0.3405, allocations: 166.3 kB / 0.5869 GB, free: 1.523 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.462e-05/0.3406, allocations: 65.02 kB / 0.5869 GB, free: 1.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.238e-05/0.3407, allocations: 28.39 kB / 0.5869 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.189e-05/0.3407, allocations: 5.297 kB / 0.5869 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.621e-05/0.3407, allocations: 37.09 kB / 0.587 GB, free: 1.418 MB / 430.1 MB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.3408, allocations: 0 / 0.587 GB, free: 1.418 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.000999/0.3418, allocations: 0.5981 MB / 0.5876 GB, free: 0.8906 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.3418, allocations: 54.16 kB / 0.5876 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.88e-05/0.3419, allocations: 98.44 kB / 0.5877 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.157e-05/0.3419, allocations: 25.7 kB / 0.5877 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.646e-05/0.3419, allocations: 85.48 kB / 0.5878 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.717e-05/0.3419, allocations: 38.75 kB / 0.5879 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.788e-05/0.342, allocations: 14.48 kB / 0.5879 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.754e-05/0.342, allocations: 322.9 kB / 0.5882 GB, free: 248 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.609e-05/0.3421, allocations: 23.28 kB / 0.5882 GB, free: 240 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.824e-05/0.3421, allocations: 21.42 kB / 0.5882 GB, free: 236 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.617e-05/0.3422, allocations: 59.78 kB / 0.5883 GB, free: 204 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.3422, allocations: 3.938 kB / 0.5883 GB, free: 200 kB / 430.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001487/0.3424, allocations: 96.42 kB / 0.5884 GB, free: 144 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.3424, allocations: 5.594 kB / 0.5884 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3424, allocations: 96 / 0.5884 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3424, allocations: 6.328 kB / 0.5884 GB, free: 140 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.3426, allocations: 31.88 kB / 0.5884 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.3426, allocations: 0.5625 kB / 0.5884 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.627e-05/0.3426, allocations: 1.922 kB / 0.5884 GB, free: 128 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.576e-06/0.3426, allocations: 2.656 kB / 0.5884 GB, free: 128 kB / 430.1 MB 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 5.924e-05/0.3427, allocations: 118.7 kB / 0.5885 GB, free: 4 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.46e-05/0.3427, allocations: 2.75 kB / 0.5885 GB, free: 4 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.3429, allocations: 106.1 kB / 0.5886 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.343, allocations: 1.25 kB / 0.5886 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.343, allocations: 4.562 kB / 0.5886 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.343, allocations: 1.406 kB / 0.5886 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.3434, allocations: 355.6 kB / 0.589 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3434, allocations: 0.7812 kB / 0.589 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.3435, allocations: 24.61 kB / 0.589 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.3435, allocations: 1.156 kB / 0.589 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.3436, allocations: 8.562 kB / 0.589 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3436, allocations: 1.578 kB / 0.589 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3436, allocations: 0.5625 kB / 0.589 GB, free: 15.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002346/0.3438, allocations: 220.9 kB / 0.5892 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.677e-05/0.3439, allocations: 87.38 kB / 0.5893 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.3439, allocations: 2.078 kB / 0.5893 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.562e-05/0.344, allocations: 3.016 kB / 0.5893 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.344, allocations: 5.391 kB / 0.5893 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.344, allocations: 16.72 kB / 0.5893 GB, free: 15.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.372e-05/0.3441, allocations: 81.17 kB / 0.5894 GB, free: 15.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3441, allocations: 0 / 0.5894 GB, free: 15.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.3443, allocations: 41.89 kB / 0.5895 GB, free: 15.22 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0005464/0.3449, allocations: 0.7708 MB / 0.5902 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001415/0.3451, allocations: 63.42 kB / 0.5903 GB, free: 14.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3451, allocations: 1.125 kB / 0.5903 GB, free: 14.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 5.172e-05/0.3451, allocations: 36.97 kB / 0.5903 GB, free: 14.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.3454, allocations: 10.09 kB / 0.5903 GB, free: 14.48 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.3468, allocations: 1.542 MB / 0.5918 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.347, allocations: 0.685 MB / 0.5925 GB, free: 12.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.885e-05/0.3471, allocations: 16.11 kB / 0.5925 GB, free: 12.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.109e-05/0.3471, allocations: 21.89 kB / 0.5925 GB, free: 12.39 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3471, allocations: 0 / 0.5925 GB, free: 12.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1002/0.4473, allocations: 1.823 MB / 0.5943 GB, free: 12.24 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001867/0.4475, allocations: 242.9 kB / 0.5945 GB, free: 11.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.593/2.04, allocations: 3.125 kB / 0.5945 GB, free: 11.98 MB / 446.1 MB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)