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.008203/0.008203, allocations: 99.14 kB / 15.73 MB, free: 6.035 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.001372/0.001372, allocations: 196.9 kB / 16.67 MB, free: 5.965 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9744/0.9744, allocations: 135.1 MB / 425.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 59.91 kB / 0.5851 GB, free: 3.867 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4381/0.4395, allocations: 80.92 MB / 0.6642 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002128/0.4416, allocations: 1.47 MB / 0.6656 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008521/0.4425, allocations: 0.6231 MB / 0.6662 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.951e-05/0.4426, allocations: 1.344 kB / 0.6662 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.071e-05/0.4426, allocations: 3.938 kB / 0.6662 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.465e-05/0.4427, allocations: 17.25 kB / 0.6662 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005381/0.4432, allocations: 162.6 kB / 0.6664 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.995e-05/0.4433, allocations: 51.27 kB / 0.6664 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.582e-05/0.4434, allocations: 2.75 kB / 0.6664 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.119e-05/0.4434, allocations: 25.98 kB / 0.6665 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.181e-05/0.4435, allocations: 26.75 kB / 0.6665 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.39e-05/0.4435, allocations: 4.094 kB / 0.6665 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004185/0.4439, allocations: 349.3 kB / 0.6668 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.465e-05/0.4439, allocations: 17.28 kB / 0.6668 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.095e-05/0.444, allocations: 20.84 kB / 0.6669 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002479/0.4442, allocations: 180.9 kB / 0.667 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4442, allocations: 1.5 kB / 0.667 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.252e-06/0.4442, allocations: 0 / 0.667 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.4442, allocations: 0 / 0.667 GB, free: 5.098 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.0004999/0.4447, allocations: 394.2 kB / 0.6674 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.4448, allocations: 10.12 kB / 0.6674 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.265e-05/0.4448, allocations: 41.38 kB / 0.6675 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.343e-05/0.4449, allocations: 8.812 kB / 0.6675 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.348e-05/0.4449, allocations: 173.4 kB / 0.6676 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.445, allocations: 7.5 kB / 0.6676 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.119e-05/0.445, allocations: 12.03 kB / 0.6677 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.4452, allocations: 82.45 kB / 0.6677 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.4452, allocations: 1.031 kB / 0.6677 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.4453, allocations: 5.031 kB / 0.6677 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.4453, allocations: 1.312 kB / 0.6677 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.4455, allocations: 53.05 kB / 0.6678 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004531/0.446, allocations: 324.4 kB / 0.6681 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.4462, allocations: 79.53 kB / 0.6682 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.4464, allocations: 35.88 kB / 0.6682 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.4464, allocations: 0 / 0.6682 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.83e-05/0.4464, allocations: 36.19 kB / 0.6682 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 9.22e-07/0.4464, allocations: 0 / 0.6682 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001473/0.4479, allocations: 0.6491 MB / 0.6689 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.4479, allocations: 52.81 kB / 0.6689 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.676e-05/0.448, allocations: 103.2 kB / 0.669 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.448, allocations: 25.7 kB / 0.6691 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.448, allocations: 98.83 kB / 0.6691 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.63e-05/0.4481, allocations: 35.11 kB / 0.6692 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.4481, allocations: 31.14 kB / 0.6692 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.016e-05/0.4482, allocations: 315.9 kB / 0.6695 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.4483, allocations: 30.62 kB / 0.6695 GB, free: 2.633 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.4484, allocations: 31.98 kB / 0.6696 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.4487, allocations: 80.89 kB / 0.6697 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.4487, allocations: 0 / 0.6697 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002925/0.449, allocations: 115.5 kB / 0.6698 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.449, allocations: 8.859 kB / 0.6698 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.449, allocations: 0 / 0.6698 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.449, allocations: 5.406 kB / 0.6698 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/0.4492, allocations: 32.23 kB / 0.6698 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.4492, allocations: 1.5 kB / 0.6698 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.217e-05/0.4492, allocations: 6.719 kB / 0.6698 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.4493, allocations: 3.844 kB / 0.6698 GB, free: 2.488 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 6.088e-05/0.4493, allocations: 125.9 kB / 0.6699 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.4494, allocations: 3.969 kB / 0.6699 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003443/0.4497, allocations: 130.3 kB / 0.6701 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.4497, allocations: 1.594 kB / 0.6701 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.4497, allocations: 0 / 0.6701 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.4497, allocations: 5.203 kB / 0.6701 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.4502, allocations: 389 kB / 0.6704 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.4502, allocations: 0 / 0.6704 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.4504, allocations: 23.67 kB / 0.6705 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.4504, allocations: 1.125 kB / 0.6705 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.4504, allocations: 5.484 kB / 0.6705 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4504, allocations: 1.344 kB / 0.6705 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4504, allocations: 4 kB / 0.6705 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004471/0.4509, allocations: 256.4 kB / 0.6707 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.976e-05/0.4509, allocations: 82.39 kB / 0.6708 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.4509, allocations: 5.469 kB / 0.6708 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001198/0.4511, allocations: 7.859 kB / 0.6708 GB, free: 1.586 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.762e-05/0.4511, allocations: 7.969 kB / 0.6708 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.4511, allocations: 2.812 kB / 0.6708 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.332e-05/0.4511, allocations: 89.86 kB / 0.6709 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4511, allocations: 1.156 kB / 0.6709 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000276/0.4514, allocations: 37.59 kB / 0.6709 GB, free: 1.484 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.0006916/0.4521, allocations: 0.8171 MB / 0.6717 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003277/0.4524, allocations: 88.42 kB / 0.6718 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4525, allocations: 1.281 kB / 0.6718 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001364/0.4526, allocations: 43.47 kB / 0.6719 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.4529, allocations: 8.844 kB / 0.6719 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.4548, allocations: 1.604 MB / 0.6734 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.4551, allocations: 0.6912 MB / 0.6741 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.896e-05/0.4551, allocations: 15.16 kB / 0.6741 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.065e-05/0.4552, allocations: 25.14 kB / 0.6742 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of SimCode: time 3.21e-07/0.4552, allocations: 1.125 kB / 0.6742 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02082/0.476, allocations: 2.354 MB / 0.6765 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.985, allocations: 11.98 kB / 0.6765 GB, free: 13.32 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)