Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_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_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.001059/0.001059, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001022/0.001022, allocations: 198.5 kB / 16.14 MB, free: 6.715 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 / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7295/0.7295, allocations: 132.2 MB / 422.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 64.03 kB / 0.5012 GB, free: 4.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3226, allocations: 80.2 MB / 0.5795 GB, free: 4.543 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002173/0.3248, allocations: 1.535 MB / 0.581 GB, free: 3.473 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00089/0.3257, allocations: 0.6496 MB / 0.5816 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.2e-05/0.3258, allocations: 0 / 0.5816 GB, free: 3.023 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.828e-05/0.3258, allocations: 13.14 kB / 0.5817 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.342e-05/0.3258, allocations: 1.5 kB / 0.5817 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.3263, allocations: 139.3 kB / 0.5818 GB, free: 2.945 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 6.435e-05/0.3263, allocations: 49.14 kB / 0.5818 GB, free: 2.926 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.653e-05/0.3264, allocations: 2.984 kB / 0.5818 GB, free: 2.926 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.878e-05/0.3264, allocations: 25.52 kB / 0.5819 GB, free: 2.914 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.165e-05/0.3265, allocations: 21.81 kB / 0.5819 GB, free: 2.906 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.376e-05/0.3265, allocations: 6.406 kB / 0.5819 GB, free: 2.902 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000475/0.327, allocations: 347.6 kB / 0.5822 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.596e-05/0.327, allocations: 12.3 kB / 0.5822 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.052e-05/0.3271, allocations: 27.28 kB / 0.5823 GB, free: 2.777 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002659/0.3273, allocations: 170 kB / 0.5824 GB, free: 2.723 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3273, allocations: 0.9062 kB / 0.5824 GB, free: 2.723 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.42e-07/0.3273, allocations: 0 / 0.5824 GB, free: 2.723 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.116e-06/0.3274, allocations: 0 / 0.5824 GB, free: 2.723 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004609/0.3278, allocations: 406.2 kB / 0.5828 GB, free: 2.324 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.3279, allocations: 10.59 kB / 0.5828 GB, free: 2.324 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.722e-05/0.3279, allocations: 38.14 kB / 0.5829 GB, free: 2.281 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.3279, allocations: 7.969 kB / 0.5829 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.859e-05/0.328, allocations: 172.5 kB / 0.583 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.328, allocations: 2.75 kB / 0.583 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.3281, allocations: 14.31 kB / 0.583 GB, free: 2.066 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002201/0.3283, allocations: 79.19 kB / 0.5831 GB, free: 2.02 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3283, allocations: 0 / 0.5831 GB, free: 2.02 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.3283, allocations: 5.375 kB / 0.5831 GB, free: 2.016 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.3283, allocations: 2.031 kB / 0.5831 GB, free: 2.016 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.3286, allocations: 56.91 kB / 0.5832 GB, free: 2 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004527/0.329, allocations: 322.7 kB / 0.5835 GB, free: 1.703 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002647/0.3293, allocations: 79.53 kB / 0.5836 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.3294, allocations: 32.36 kB / 0.5836 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/0.3294, allocations: 1.188 kB / 0.5836 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.359e-05/0.3295, allocations: 32.38 kB / 0.5836 GB, free: 1.609 MB / 430.1 MB Notification: Performance of pre-optimization done (n=7): time 1.754e-06/0.3295, allocations: 7.922 kB / 0.5836 GB, free: 1.602 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.001429/0.3309, allocations: 0.6483 MB / 0.5843 GB, free: 1.074 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.533e-05/0.3309, allocations: 58.09 kB / 0.5843 GB, free: 1.008 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.347e-05/0.331, allocations: 101.3 kB / 0.5844 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.331, allocations: 25.7 kB / 0.5844 GB, free: 0.875 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.36e-05/0.331, allocations: 96.7 kB / 0.5845 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.722e-05/0.331, allocations: 39.56 kB / 0.5846 GB, free: 0.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.146e-05/0.3311, allocations: 28.84 kB / 0.5846 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.41e-05/0.3311, allocations: 318.8 kB / 0.5849 GB, free: 420 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.3313, allocations: 36.06 kB / 0.5849 GB, free: 408 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.3314, allocations: 28.77 kB / 0.585 GB, free: 404 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002357/0.3316, allocations: 74.64 kB / 0.585 GB, free: 372 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3316, allocations: 6.203 kB / 0.585 GB, free: 368 kB / 430.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002894/0.3319, allocations: 120.3 kB / 0.5852 GB, free: 308 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.332, allocations: 5.922 kB / 0.5852 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.332, allocations: 0 / 0.5852 GB, free: 308 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.332, allocations: 9.969 kB / 0.5852 GB, free: 300 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.3321, allocations: 24.83 kB / 0.5852 GB, free: 300 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3321, allocations: 1.344 kB / 0.5852 GB, free: 300 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.116e-05/0.3322, allocations: 4.828 kB / 0.5852 GB, free: 300 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.3322, allocations: 7.562 kB / 0.5852 GB, free: 296 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.041e-05/0.3323, allocations: 118.9 kB / 0.5853 GB, free: 172 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.3323, allocations: 7.406 kB / 0.5853 GB, free: 168 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003395/0.3327, allocations: 126.5 kB / 0.5855 GB, free: 100 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3327, allocations: 5.125 kB / 0.5855 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3327, allocations: 0 / 0.5855 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.3327, allocations: 2.703 kB / 0.5855 GB, free: 96 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005569/0.3333, allocations: 382.6 kB / 0.5858 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3333, allocations: 3.938 kB / 0.5858 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001463/0.3334, allocations: 25.03 kB / 0.5859 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3334, allocations: 5.375 kB / 0.5859 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.3335, allocations: 5.969 kB / 0.5859 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3335, allocations: 0.6562 kB / 0.5859 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.3335, allocations: 0 / 0.5859 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004862/0.334, allocations: 254.6 kB / 0.5861 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.95e-05/0.334, allocations: 85.23 kB / 0.5862 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.334, allocations: 9.031 kB / 0.5862 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.3342, allocations: 6.266 kB / 0.5862 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.371e-05/0.3342, allocations: 9.766 kB / 0.5862 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.3342, allocations: 3.766 kB / 0.5862 GB, free: 15.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.589e-05/0.3342, allocations: 80.3 kB / 0.5863 GB, free: 15.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3343, allocations: 0 / 0.5863 GB, free: 15.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002709/0.3345, allocations: 39.62 kB / 0.5863 GB, free: 15.38 MB / 446.1 MB 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.0008104/0.3353, allocations: 0.8226 MB / 0.5871 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002996/0.3357, allocations: 76.39 kB / 0.5872 GB, free: 14.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3357, allocations: 0.9062 kB / 0.5872 GB, free: 14.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.3358, allocations: 50.97 kB / 0.5873 GB, free: 14.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002684/0.3361, allocations: 8.422 kB / 0.5873 GB, free: 14.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.338, allocations: 1.618 MB / 0.5888 GB, free: 13.23 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.3382, allocations: 0.6905 MB / 0.5895 GB, free: 12.53 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.343e-05/0.3383, allocations: 17.22 kB / 0.5895 GB, free: 12.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.827e-05/0.3384, allocations: 27.86 kB / 0.5896 GB, free: 12.5 MB / 446.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3384, allocations: 0 / 0.5896 GB, free: 12.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1722/0.5106, allocations: 2.131 MB / 0.5916 GB, free: 12.25 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002597/0.5109, allocations: 234.3 kB / 0.5919 GB, free: 12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.242, allocations: 1.875 kB / 0.5919 GB, free: 12 MB / 446.1 MB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)