Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/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_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001131/0.001131, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 193.5 kB / 16.53 MB, free: 6.664 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9326/0.9326, allocations: 135.1 MB / 425.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002136/0.002136, allocations: 67.75 kB / 0.5054 GB, free: 5.227 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1538, allocations: 80.93 MB / 0.5845 GB, free: 4.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002677/0.1565, allocations: 1.459 MB / 0.5859 GB, free: 2.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009833/0.1575, allocations: 0.6321 MB / 0.5865 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.854e-05/0.1576, allocations: 0 / 0.5865 GB, free: 2.348 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.135e-05/0.1576, allocations: 3.938 kB / 0.5865 GB, free: 2.344 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.605e-05/0.1577, allocations: 11.91 kB / 0.5865 GB, free: 2.332 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006021/0.1583, allocations: 158.5 kB / 0.5867 GB, free: 2.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.265e-05/0.1584, allocations: 55.78 kB / 0.5867 GB, free: 2.125 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.1e-05/0.1585, allocations: 7.984 kB / 0.5867 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.462e-05/0.1585, allocations: 15.94 kB / 0.5868 GB, free: 2.102 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.835e-05/0.1586, allocations: 31.89 kB / 0.5868 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.1586, allocations: 4 kB / 0.5868 GB, free: 2.066 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004907/0.1591, allocations: 347.3 kB / 0.5871 GB, free: 1.727 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.299e-05/0.1591, allocations: 19.91 kB / 0.5871 GB, free: 1.707 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.1592, allocations: 23.88 kB / 0.5872 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002892/0.1595, allocations: 175.9 kB / 0.5873 GB, free: 1.512 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.984e-06/0.1595, allocations: 4 kB / 0.5873 GB, free: 1.508 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1595, allocations: 3.938 kB / 0.5873 GB, free: 1.504 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1595, allocations: 0 / 0.5873 GB, free: 1.504 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006248/0.1601, allocations: 399.2 kB / 0.5877 GB, free: 1.066 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.1602, allocations: 12.03 kB / 0.5877 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.868e-05/0.1602, allocations: 38.75 kB / 0.5878 GB, free: 1.008 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.021e-05/0.1603, allocations: 8.844 kB / 0.5878 GB, free: 1 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.1604, allocations: 164.4 kB / 0.5879 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.1605, allocations: 4.375 kB / 0.5879 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/0.1605, allocations: 4.375 kB / 0.5879 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.1608, allocations: 89.56 kB / 0.588 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.1608, allocations: 7.844 kB / 0.588 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.1608, allocations: 4 kB / 0.588 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1608, allocations: 0 / 0.588 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.1611, allocations: 51.95 kB / 0.5881 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006006/0.1617, allocations: 328.6 kB / 0.5884 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.162, allocations: 86.47 kB / 0.5885 GB, free: 176 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.1621, allocations: 24.84 kB / 0.5885 GB, free: 148 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.1622, allocations: 4 kB / 0.5885 GB, free: 144 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.818e-05/0.1622, allocations: 30.56 kB / 0.5885 GB, free: 104 kB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.1622, allocations: 0 / 0.5885 GB, free: 104 kB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001698/0.1639, allocations: 0.65 MB / 0.5892 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.243e-05/0.1639, allocations: 55.41 kB / 0.5892 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.918e-05/0.164, allocations: 101.8 kB / 0.5893 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.1641, allocations: 33.7 kB / 0.5894 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/0.1641, allocations: 80.14 kB / 0.5894 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.1641, allocations: 39.45 kB / 0.5895 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.521e-05/0.1642, allocations: 25.7 kB / 0.5895 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.149e-05/0.1643, allocations: 322.8 kB / 0.5898 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000134/0.1644, allocations: 31.97 kB / 0.5898 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.1646, allocations: 31.98 kB / 0.5899 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002516/0.1648, allocations: 75.95 kB / 0.5899 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1648, allocations: 0 / 0.5899 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003147/0.1652, allocations: 117.7 kB / 0.5901 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.1652, allocations: 8 kB / 0.5901 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1652, allocations: 3.984 kB / 0.5901 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.1652, allocations: 7.875 kB / 0.5901 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.1654, allocations: 31.92 kB / 0.5901 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.1654, allocations: 0 / 0.5901 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.721e-05/0.1655, allocations: 8 kB / 0.5901 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.1655, allocations: 4 kB / 0.5901 GB, free: 14.35 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 8.956e-05/0.1656, allocations: 117.8 kB / 0.5902 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.1656, allocations: 3.906 kB / 0.5902 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003881/0.166, allocations: 133.5 kB / 0.5904 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.166, allocations: 7.938 kB / 0.5904 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.166, allocations: 0 / 0.5904 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.166, allocations: 3.984 kB / 0.5904 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000555/0.1666, allocations: 378.5 kB / 0.5907 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1666, allocations: 3.938 kB / 0.5907 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.1668, allocations: 32.11 kB / 0.5908 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.1668, allocations: 0 / 0.5908 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.1668, allocations: 8.078 kB / 0.5908 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1668, allocations: 11.94 kB / 0.5908 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1668, allocations: 3.984 kB / 0.5908 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004929/0.1673, allocations: 250.1 kB / 0.591 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.409e-05/0.1674, allocations: 85.08 kB / 0.5911 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.765e-05/0.1674, allocations: 0 / 0.5911 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.1675, allocations: 12.06 kB / 0.5911 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.833e-05/0.1675, allocations: 7.984 kB / 0.5911 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.1676, allocations: 4 kB / 0.5911 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.371e-05/0.1676, allocations: 79.27 kB / 0.5912 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.21e-07/0.1676, allocations: 7.938 kB / 0.5912 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002715/0.1679, allocations: 36 kB / 0.5912 GB, free: 13.07 MB / 0.4981 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.0007908/0.1687, allocations: 0.8177 MB / 0.592 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003212/0.169, allocations: 87.89 kB / 0.5921 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.169, allocations: 0 / 0.5921 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.1692, allocations: 47.91 kB / 0.5922 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.1695, allocations: 12.67 kB / 0.5922 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/0.1714, allocations: 1.589 MB / 0.5937 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002044/0.1716, allocations: 0.6962 MB / 0.5944 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.677e-05/0.1716, allocations: 16.73 kB / 0.5944 GB, free: 9.684 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.705e-05/0.1717, allocations: 19.44 kB / 0.5945 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1717, allocations: 4 kB / 0.5945 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.1906, allocations: 2.278 MB / 0.5967 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.218/7.409, allocations: 5.438 kB / 0.5967 GB, free: 7.547 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)