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.007192/0.007192, allocations: 96.83 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.00191/0.00191, allocations: 197.2 kB / 16.68 MB, free: 5.977 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9654/0.9654, allocations: 135.6 MB / 426.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 71.88 kB / 0.5858 GB, free: 3.203 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3485, allocations: 81.01 MB / 0.6649 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001969/0.3505, allocations: 1.471 MB / 0.6663 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008751/0.3514, allocations: 0.6278 MB / 0.6669 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.939e-05/0.3515, allocations: 0 / 0.6669 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.431e-05/0.3515, allocations: 3.938 kB / 0.6669 GB, free: 5.195 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.603e-05/0.3516, allocations: 13.25 kB / 0.6669 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004618/0.352, allocations: 162.8 kB / 0.6671 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.172e-05/0.3521, allocations: 54.55 kB / 0.6672 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.549e-05/0.3522, allocations: 7.75 kB / 0.6672 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.174e-05/0.3522, allocations: 22.2 kB / 0.6672 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.867e-05/0.3523, allocations: 30.94 kB / 0.6672 GB, free: 5 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.376e-05/0.3523, allocations: 3.906 kB / 0.6672 GB, free: 5 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004205/0.3527, allocations: 344 kB / 0.6675 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.699e-05/0.3527, allocations: 14.66 kB / 0.6676 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.93e-05/0.3528, allocations: 24.66 kB / 0.6676 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002989/0.3531, allocations: 179.3 kB / 0.6677 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3531, allocations: 0 / 0.6677 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.392e-06/0.3531, allocations: 1.312 kB / 0.6678 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.3531, allocations: 0 / 0.6678 GB, free: 4.672 MB / 0.4981 GB 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.0004642/0.3536, allocations: 403.4 kB / 0.6681 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.3536, allocations: 12.61 kB / 0.6681 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.411e-05/0.3536, allocations: 37.69 kB / 0.6682 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.836e-05/0.3537, allocations: 7.703 kB / 0.6682 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.946e-05/0.3538, allocations: 171 kB / 0.6684 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.3538, allocations: 2.344 kB / 0.6684 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.296e-05/0.3538, allocations: 13.16 kB / 0.6684 GB, free: 4 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002128/0.354, allocations: 84.14 kB / 0.6684 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.354, allocations: 0 / 0.6684 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.3541, allocations: 5.188 kB / 0.6685 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3541, allocations: 2.094 kB / 0.6685 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002333/0.3543, allocations: 48.52 kB / 0.6685 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000424/0.3547, allocations: 332.5 kB / 0.6688 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.355, allocations: 83.83 kB / 0.6689 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3551, allocations: 30.03 kB / 0.6689 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.3552, allocations: 5.375 kB / 0.6689 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.179e-05/0.3552, allocations: 31.78 kB / 0.669 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.3552, allocations: 1.156 kB / 0.669 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001441/0.3566, allocations: 0.6521 MB / 0.6696 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.915e-05/0.3567, allocations: 56.97 kB / 0.6697 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.483e-05/0.3567, allocations: 102.1 kB / 0.6698 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.3567, allocations: 30.8 kB / 0.6698 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.287e-05/0.3568, allocations: 86.78 kB / 0.6699 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.404e-05/0.3568, allocations: 35.78 kB / 0.6699 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.3568, allocations: 31.64 kB / 0.6699 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.629e-05/0.3569, allocations: 316.2 kB / 0.6702 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.357, allocations: 37.94 kB / 0.6703 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.3572, allocations: 27.3 kB / 0.6703 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.3574, allocations: 77.17 kB / 0.6704 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.012e-06/0.3574, allocations: 0 / 0.6704 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002996/0.3577, allocations: 118.7 kB / 0.6705 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.3577, allocations: 5.5 kB / 0.6705 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3578, allocations: 3.984 kB / 0.6705 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3578, allocations: 9.031 kB / 0.6705 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.3579, allocations: 24.58 kB / 0.6705 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.3579, allocations: 5.219 kB / 0.6705 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.41e-05/0.358, allocations: 6.844 kB / 0.6705 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-06/0.358, allocations: 3.625 kB / 0.6705 GB, free: 2.055 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 4.935e-05/0.3581, allocations: 120.2 kB / 0.6707 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.987e-05/0.3581, allocations: 7.734 kB / 0.6707 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003474/0.3585, allocations: 135.8 kB / 0.6708 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3585, allocations: 1.344 kB / 0.6708 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3585, allocations: 0 / 0.6708 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3585, allocations: 3.984 kB / 0.6708 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004598/0.359, allocations: 381.9 kB / 0.6712 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.359, allocations: 0 / 0.6712 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001432/0.3591, allocations: 28.2 kB / 0.6712 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3591, allocations: 4 kB / 0.6712 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.3591, allocations: 9.516 kB / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3591, allocations: 1.5 kB / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3592, allocations: 0 / 0.6712 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004508/0.3596, allocations: 256.8 kB / 0.6714 GB, free: 1.254 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.579e-05/0.3596, allocations: 82.38 kB / 0.6715 GB, free: 1.156 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.58e-05/0.3597, allocations: 5.594 kB / 0.6715 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.3598, allocations: 3.938 kB / 0.6715 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.302e-05/0.3598, allocations: 12.08 kB / 0.6715 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.886e-06/0.3598, allocations: 3.031 kB / 0.6715 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.005e-05/0.3598, allocations: 81.55 kB / 0.6716 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3598, allocations: 1.094 kB / 0.6716 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002678/0.3601, allocations: 42.22 kB / 0.6717 GB, free: 1.051 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.0006482/0.3608, allocations: 0.816 MB / 0.6725 GB, free: 320 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003177/0.3611, allocations: 81.42 kB / 0.6725 GB, free: 292 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3611, allocations: 3.938 kB / 0.6725 GB, free: 288 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.3613, allocations: 52.44 kB / 0.6726 GB, free: 264 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002756/0.3615, allocations: 7.75 kB / 0.6726 GB, free: 260 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001999/0.3635, allocations: 1.599 MB / 0.6742 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.3639, allocations: 0.6946 MB / 0.6748 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.217e-05/0.3639, allocations: 7.484 kB / 0.6748 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.018e-05/0.364, allocations: 29.36 kB / 0.6749 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of SimCode: time 2.7e-07/0.364, allocations: 0 / 0.6749 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2715/0.6355, allocations: 2.336 MB / 0.6772 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.64/9.275, allocations: 9.375 kB / 0.6772 GB, free: 12.9 MB / 0.5137 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 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)