Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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/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_DerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",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.001016/0.001016, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0009702/0.0009702, allocations: 190.8 kB / 16.25 MB, free: 6.621 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.173/1.173, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6869/0.6869, allocations: 132.2 MB / 422.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 60.28 kB / 0.5014 GB, free: 4.109 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3161, allocations: 80.2 MB / 0.5797 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.00218/0.3183, allocations: 1.333 MB / 0.581 GB, free: 3.625 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007996/0.3191, allocations: 0.6068 MB / 0.5816 GB, free: 3.203 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.294e-05/0.3192, allocations: 0.8125 kB / 0.5816 GB, free: 3.203 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.3192, allocations: 4.781 kB / 0.5816 GB, free: 3.199 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.463e-05/0.3192, allocations: 8.641 kB / 0.5816 GB, free: 3.191 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005365/0.3198, allocations: 127.5 kB / 0.5817 GB, free: 3.137 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.716e-05/0.3199, allocations: 19.83 kB / 0.5817 GB, free: 3.129 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.188e-05/0.3199, allocations: 2.281 kB / 0.5817 GB, free: 3.129 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.113e-05/0.3199, allocations: 9.219 kB / 0.5817 GB, free: 3.125 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.89e-05/0.32, allocations: 8.781 kB / 0.5818 GB, free: 3.121 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 9.828e-06/0.32, allocations: 1.469 kB / 0.5818 GB, free: 3.121 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000467/0.3205, allocations: 345.7 kB / 0.5821 GB, free: 3.02 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.232e-05/0.3205, allocations: 7.453 kB / 0.5821 GB, free: 3.016 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 1.989e-05/0.3205, allocations: 6.938 kB / 0.5821 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002503/0.3208, allocations: 149.3 kB / 0.5822 GB, free: 2.965 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3208, allocations: 0 / 0.5822 GB, free: 2.965 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3208, allocations: 0 / 0.5822 GB, free: 2.965 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.3208, allocations: 0 / 0.5822 GB, free: 2.965 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003075/0.3211, allocations: 359.9 kB / 0.5826 GB, free: 2.59 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.3211, allocations: 9.875 kB / 0.5826 GB, free: 2.59 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.482e-05/0.3212, allocations: 41.25 kB / 0.5826 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.318e-05/0.3212, allocations: 1.453 kB / 0.5826 GB, free: 2.543 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.854e-05/0.3213, allocations: 166.8 kB / 0.5828 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.718e-06/0.3213, allocations: 5.5 kB / 0.5828 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.857e-05/0.3213, allocations: 3.25 kB / 0.5828 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.556e-05/0.3214, allocations: 46.58 kB / 0.5828 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.3214, allocations: 0.625 kB / 0.5828 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.3214, allocations: 0.8125 kB / 0.5828 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.3214, allocations: 1.938 kB / 0.5828 GB, free: 2.297 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.531e-05/0.3215, allocations: 11.31 kB / 0.5829 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001071/0.3216, allocations: 163.1 kB / 0.583 GB, free: 2.094 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.3217, allocations: 43.44 kB / 0.5831 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.875e-05/0.3218, allocations: 18.06 kB / 0.5831 GB, free: 2.051 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.3218, allocations: 13.05 kB / 0.5831 GB, free: 2.039 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.311e-05/0.3218, allocations: 36.47 kB / 0.5831 GB, free: 1.996 MB / 430.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.3218, allocations: 0 / 0.5831 GB, free: 1.996 MB / 430.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005017/0.3223, allocations: 301.6 kB / 0.5834 GB, free: 1.719 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.505e-05/0.3224, allocations: 60.31 kB / 0.5835 GB, free: 1.648 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.758e-05/0.3224, allocations: 100.6 kB / 0.5836 GB, free: 1.547 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.254e-06/0.3224, allocations: 25.7 kB / 0.5836 GB, free: 1.516 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.158e-05/0.3224, allocations: 80.89 kB / 0.5837 GB, free: 1.434 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.3225, allocations: 23.92 kB / 0.5837 GB, free: 1.414 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.3225, allocations: 21.38 kB / 0.5837 GB, free: 1.395 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.195e-05/0.3225, allocations: 320 kB / 0.584 GB, free: 1.074 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.374e-05/0.3226, allocations: 8.078 kB / 0.584 GB, free: 1.074 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.18e-05/0.3226, allocations: 16.45 kB / 0.584 GB, free: 1.066 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.01e-05/0.3226, allocations: 37.19 kB / 0.5841 GB, free: 1.043 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.3226, allocations: 1.375 kB / 0.5841 GB, free: 1.043 MB / 430.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.512e-05/0.3227, allocations: 71.14 kB / 0.5841 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.3228, allocations: 5.719 kB / 0.5841 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.3228, allocations: 0 / 0.5841 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.3228, allocations: 0.7188 kB / 0.5841 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.037e-05/0.3228, allocations: 12.25 kB / 0.5842 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.3228, allocations: 64 / 0.5842 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.927e-05/0.3229, allocations: 8.969 kB / 0.5842 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.3229, allocations: 6.469 kB / 0.5842 GB, free: 0.9805 MB / 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 (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 3.896e-05/0.3229, allocations: 117.6 kB / 0.5843 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.133e-05/0.3229, allocations: 6.453 kB / 0.5843 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.3231, allocations: 73.12 kB / 0.5844 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3231, allocations: 0.9062 kB / 0.5844 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.3231, allocations: 0.5625 kB / 0.5844 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3231, allocations: 1.922 kB / 0.5844 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.3233, allocations: 319.5 kB / 0.5847 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3233, allocations: 1.312 kB / 0.5847 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.02e-05/0.3234, allocations: 11.19 kB / 0.5847 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3234, allocations: 2.375 kB / 0.5847 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.3234, allocations: 0 / 0.5847 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.3234, allocations: 1.469 kB / 0.5847 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3234, allocations: 1.156 kB / 0.5847 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001324/0.3235, allocations: 184.4 kB / 0.5849 GB, free: 316 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.572e-05/0.3236, allocations: 81.5 kB / 0.5849 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.3236, allocations: 1.766 kB / 0.5849 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.018e-05/0.3237, allocations: 5.562 kB / 0.5849 GB, free: 216 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.759e-05/0.3237, allocations: 7.688 kB / 0.585 GB, free: 212 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-06/0.3237, allocations: 3.031 kB / 0.585 GB, free: 212 kB / 430.1 MB Notification: Performance of sorting global known variables: time 1.764e-05/0.3237, allocations: 83.61 kB / 0.585 GB, free: 132 kB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3237, allocations: 0 / 0.585 GB, free: 132 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.000269/0.324, allocations: 23.16 kB / 0.5851 GB, free: 124 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0004251/0.3244, allocations: 0.7372 MB / 0.5858 GB, free: 15.42 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.864e-05/0.3246, allocations: 36.81 kB / 0.5858 GB, free: 15.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3246, allocations: 4.969 kB / 0.5858 GB, free: 15.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.859e-05/0.3246, allocations: 20.38 kB / 0.5858 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.3248, allocations: 11.33 kB / 0.5858 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.3259, allocations: 1.325 MB / 0.5871 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.3261, allocations: 0.6809 MB / 0.5878 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.99e-05/0.3261, allocations: 4.688 kB / 0.5878 GB, free: 13.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.671e-05/0.3262, allocations: 10.61 kB / 0.5878 GB, free: 13.4 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3262, allocations: 0 / 0.5878 GB, free: 13.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03425/0.3604, allocations: 1.481 MB / 0.5893 GB, free: 13.19 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001666/0.3606, allocations: 226.3 kB / 0.5895 GB, free: 12.94 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.652/2.012, allocations: 0 / 0.5895 GB, free: 12.94 MB / 446.1 MB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)