Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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: "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_dev_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_dev_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.001776/0.001776, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001991/0.001991, allocations: 192.7 kB / 16.13 MB, free: 6.66 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.332/1.332, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9083/0.9083, allocations: 135.1 MB / 425.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.00115, allocations: 63.59 kB / 0.5048 GB, free: 5.656 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1227, allocations: 80.91 MB / 0.5838 GB, free: 4.906 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002136/0.1249, allocations: 1.329 MB / 0.5851 GB, free: 3.555 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009816/0.1259, allocations: 0.6439 MB / 0.5857 GB, free: 2.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.445e-05/0.1259, allocations: 0 / 0.5857 GB, free: 2.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.895e-05/0.1259, allocations: 0 / 0.5857 GB, free: 2.91 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.431e-05/0.126, allocations: 7.938 kB / 0.5857 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004219/0.1264, allocations: 134.6 kB / 0.5859 GB, free: 2.777 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.56e-05/0.1264, allocations: 23.92 kB / 0.5859 GB, free: 2.754 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.448e-05/0.1265, allocations: 4 kB / 0.5859 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.387e-05/0.1265, allocations: 19.91 kB / 0.5859 GB, free: 2.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.316e-05/0.1266, allocations: 8 kB / 0.5859 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.353e-05/0.1266, allocations: 4 kB / 0.5859 GB, free: 2.719 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004722/0.127, allocations: 347.3 kB / 0.5863 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.363e-05/0.1271, allocations: 7.938 kB / 0.5863 GB, free: 2.371 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.365e-05/0.1271, allocations: 11.94 kB / 0.5863 GB, free: 2.359 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002496/0.1274, allocations: 155.9 kB / 0.5864 GB, free: 2.207 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1274, allocations: 4 kB / 0.5864 GB, free: 2.203 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.71e-07/0.1274, allocations: 0 / 0.5864 GB, free: 2.203 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.866e-06/0.1274, allocations: 0 / 0.5864 GB, free: 2.203 MB / 494.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.00037/0.1278, allocations: 373.4 kB / 0.5868 GB, free: 1.793 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.1278, allocations: 8.031 kB / 0.5868 GB, free: 1.785 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.067e-05/0.1279, allocations: 30.75 kB / 0.5868 GB, free: 1.746 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.674e-05/0.1279, allocations: 4.938 kB / 0.5868 GB, free: 1.742 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.878e-05/0.128, allocations: 168.3 kB / 0.587 GB, free: 1.539 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.128, allocations: 8.375 kB / 0.587 GB, free: 1.531 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.978e-05/0.128, allocations: 12.38 kB / 0.587 GB, free: 1.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.1281, allocations: 49.56 kB / 0.5871 GB, free: 1.465 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.1282, allocations: 0 / 0.5871 GB, free: 1.465 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.1282, allocations: 8 kB / 0.5871 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1282, allocations: 0 / 0.5871 GB, free: 1.457 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.03e-05/0.1282, allocations: 19.98 kB / 0.5871 GB, free: 1.438 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001628/0.1284, allocations: 165.6 kB / 0.5872 GB, free: 1.227 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.865e-05/0.1285, allocations: 62.48 kB / 0.5873 GB, free: 1.156 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.978e-05/0.1286, allocations: 28.86 kB / 0.5873 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.1286, allocations: 7.922 kB / 0.5873 GB, free: 1.117 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.1286, allocations: 34.56 kB / 0.5874 GB, free: 1.074 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.1286, allocations: 3.938 kB / 0.5874 GB, free: 1.07 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.00106/0.1297, allocations: 0.5802 MB / 0.5879 GB, free: 408 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.1297, allocations: 51.41 kB / 0.588 GB, free: 344 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.473e-05/0.1298, allocations: 93.86 kB / 0.5881 GB, free: 240 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.1298, allocations: 29.7 kB / 0.5881 GB, free: 204 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.339e-05/0.1299, allocations: 80.14 kB / 0.5882 GB, free: 120 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.5e-05/0.1299, allocations: 43.38 kB / 0.5882 GB, free: 76 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.018e-05/0.13, allocations: 25.72 kB / 0.5882 GB, free: 44 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1301, allocations: 327 kB / 0.5886 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.289e-05/0.1302, allocations: 19.98 kB / 0.5886 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.07e-05/0.1302, allocations: 24 kB / 0.5886 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.1303, allocations: 64.66 kB / 0.5887 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-06/0.1303, allocations: 0 / 0.5887 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001469/0.1305, allocations: 100.7 kB / 0.5888 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.1305, allocations: 4 kB / 0.5888 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1305, allocations: 0 / 0.5888 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.1305, allocations: 4 kB / 0.5888 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.1306, allocations: 27.98 kB / 0.5888 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.1306, allocations: 3.984 kB / 0.5888 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.508e-05/0.1307, allocations: 3.938 kB / 0.5888 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.1307, allocations: 8 kB / 0.5888 GB, free: 15.45 MB / 0.4981 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.371e-05/0.1308, allocations: 113.8 kB / 0.5889 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.524e-05/0.1308, allocations: 7.984 kB / 0.5889 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000188/0.131, allocations: 101.6 kB / 0.589 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.131, allocations: 0 / 0.589 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.131, allocations: 7.938 kB / 0.589 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.131, allocations: 0 / 0.589 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003867/0.1314, allocations: 358.4 kB / 0.5894 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1314, allocations: 0 / 0.5894 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001085/0.1315, allocations: 19.98 kB / 0.5894 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1315, allocations: 0 / 0.5894 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.1316, allocations: 4 kB / 0.5894 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.798e-06/0.1316, allocations: 0 / 0.5894 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1316, allocations: 3.938 kB / 0.5894 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/0.1318, allocations: 219.4 kB / 0.5896 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.922e-05/0.1319, allocations: 85.09 kB / 0.5897 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.1319, allocations: 3.938 kB / 0.5897 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.295e-05/0.132, allocations: 8 kB / 0.5897 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.004e-05/0.132, allocations: 7.984 kB / 0.5897 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.132, allocations: 3.938 kB / 0.5897 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.998e-05/0.132, allocations: 79.28 kB / 0.5898 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1321, allocations: 4.156 kB / 0.5898 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002725/0.1323, allocations: 36 kB / 0.5898 GB, free: 14.3 MB / 0.4981 GB 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.0005929/0.1329, allocations: 0.785 MB / 0.5906 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000128/0.1331, allocations: 63.91 kB / 0.5907 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1331, allocations: 0 / 0.5907 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.946e-05/0.1331, allocations: 36.05 kB / 0.5907 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.1334, allocations: 11.94 kB / 0.5907 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.1347, allocations: 1.508 MB / 0.5922 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.135, allocations: 0.6848 MB / 0.5928 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.671e-05/0.135, allocations: 11.98 kB / 0.5929 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.702e-05/0.135, allocations: 19.44 kB / 0.5929 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1351, allocations: 0 / 0.5929 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1072/0.2422, allocations: 1.889 MB / 0.5947 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002277/0.2425, allocations: 244 kB / 0.5949 GB, free: 9.082 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/1.974, allocations: 9.062 kB / 0.595 GB, free: 9.078 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)