Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 179.1 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7968/0.7968, allocations: 133.6 MB / 141.6 MB, free: 2.898 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.67/1.67, allocations: 221.5 MB / 395.5 MB, free: 10.77 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009023/0.0009024, allocations: 99.14 kB / 478.2 MB, free: 1.328 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.083e-05/2.085e-05, allocations: 4 kB / 0.5536 GB, free: 8.949 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4921/0.4921, allocations: 82.3 MB / 0.6339 GB, free: 40.72 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1535/0.6457, allocations: 111.3 MB / 0.7426 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003652/0.6462, allocations: 75.95 kB / 0.7427 GB, free: 11.31 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.008404/0.6546, allocations: 2.862 MB / 0.7455 GB, free: 8.445 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.475e-06/0.6546, allocations: 0 / 0.7455 GB, free: 8.445 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.6547, allocations: 0 / 0.7455 GB, free: 8.445 MB / 0.5261 GB 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.0003396/0.655, allocations: 338.4 kB / 0.7458 GB, free: 8.07 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.6551, allocations: 16.03 kB / 0.7458 GB, free: 8.055 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.521e-05/0.6551, allocations: 3.906 kB / 0.7458 GB, free: 8.051 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.6552, allocations: 167 kB / 0.746 GB, free: 7.848 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.6553, allocations: 7.984 kB / 0.746 GB, free: 7.84 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.6553, allocations: 0 / 0.746 GB, free: 7.84 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.148e-05/0.6554, allocations: 8 kB / 0.746 GB, free: 7.832 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.866e-05/0.6555, allocations: 41.58 kB / 0.746 GB, free: 7.785 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.6555, allocations: 0 / 0.746 GB, free: 7.785 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.6555, allocations: 3.984 kB / 0.746 GB, free: 7.781 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.6555, allocations: 0 / 0.746 GB, free: 7.781 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001695/0.6557, allocations: 134.2 kB / 0.7462 GB, free: 7.613 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.6559, allocations: 42.61 kB / 0.7462 GB, free: 7.562 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.231e-05/0.6559, allocations: 16.86 kB / 0.7462 GB, free: 7.543 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.656, allocations: 0 / 0.7462 GB, free: 7.543 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.656, allocations: 34.56 kB / 0.7463 GB, free: 7.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=4): time 7.11e-07/0.656, allocations: 0 / 0.7463 GB, free: 7.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=6): time 0.0005952/0.6566, allocations: 286.3 kB / 0.7465 GB, free: 7.168 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.6566, allocations: 51.41 kB / 0.7466 GB, free: 7.105 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.277e-05/0.6567, allocations: 89 kB / 0.7467 GB, free: 7.012 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.791e-05/0.6568, allocations: 25.7 kB / 0.7467 GB, free: 6.98 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.307e-05/0.6568, allocations: 84.08 kB / 0.7468 GB, free: 6.895 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.6568, allocations: 23.7 kB / 0.7468 GB, free: 6.871 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/0.6569, allocations: 0 / 0.7468 GB, free: 6.871 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.657, allocations: 314.8 kB / 0.7471 GB, free: 6.555 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.212e-05/0.657, allocations: 12 kB / 0.7471 GB, free: 6.543 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.707e-05/0.657, allocations: 11.98 kB / 0.7471 GB, free: 6.531 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.102e-05/0.6571, allocations: 15.95 kB / 0.7471 GB, free: 6.516 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-07/0.6571, allocations: 0 / 0.7471 GB, free: 6.516 MB / 0.5261 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.007e-05/0.6572, allocations: 57.67 kB / 0.7472 GB, free: 6.453 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.6572, allocations: 7.938 kB / 0.7472 GB, free: 6.445 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.6572, allocations: 0 / 0.7472 GB, free: 6.445 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.6572, allocations: 4 kB / 0.7472 GB, free: 6.441 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.517e-05/0.6573, allocations: 15.98 kB / 0.7472 GB, free: 6.426 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.6573, allocations: 4 kB / 0.7472 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.807e-05/0.6573, allocations: 0 / 0.7472 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.6574, allocations: 4.375 kB / 0.7472 GB, free: 6.418 MB / 0.5261 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.583e-05/0.6574, allocations: 108.9 kB / 0.7473 GB, free: 6.305 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001071/0.6576, allocations: 57.59 kB / 0.7474 GB, free: 6.242 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-06/0.6576, allocations: 0 / 0.7474 GB, free: 6.242 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001675/0.6578, allocations: 74.2 kB / 0.7475 GB, free: 6.164 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.6578, allocations: 7.922 kB / 0.7475 GB, free: 6.156 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.6578, allocations: 0 / 0.7475 GB, free: 6.156 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.6578, allocations: 11.94 kB / 0.7475 GB, free: 6.145 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003051/0.6581, allocations: 280 kB / 0.7477 GB, free: 5.824 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.6581, allocations: 0 / 0.7477 GB, free: 5.824 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.092e-05/0.6582, allocations: 12 kB / 0.7478 GB, free: 5.812 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.6582, allocations: 0 / 0.7478 GB, free: 5.812 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.6582, allocations: 3.938 kB / 0.7478 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.6582, allocations: 0 / 0.7478 GB, free: 5.809 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.6582, allocations: 4 kB / 0.7478 GB, free: 5.805 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001997/0.6584, allocations: 186 kB / 0.7479 GB, free: 5.598 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.001e-05/0.6585, allocations: 85.14 kB / 0.748 GB, free: 5.496 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.6585, allocations: 0 / 0.748 GB, free: 5.496 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.336e-05/0.6586, allocations: 4 kB / 0.748 GB, free: 5.492 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.663e-05/0.6586, allocations: 3.984 kB / 0.748 GB, free: 5.488 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.6586, allocations: 7.953 kB / 0.748 GB, free: 5.48 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.506e-05/0.6587, allocations: 79.34 kB / 0.7481 GB, free: 5.402 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6587, allocations: 0 / 0.7481 GB, free: 5.402 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002472/0.6589, allocations: 27.94 kB / 0.7481 GB, free: 5.375 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_comp) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006291/0.6596, allocations: 0.8167 MB / 0.7489 GB, free: 4.523 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001044/0.6597, allocations: 32.19 kB / 0.749 GB, free: 4.492 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6597, allocations: 0 / 0.749 GB, free: 4.492 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 2.382e-05/0.6597, allocations: 12 kB / 0.749 GB, free: 4.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001698/0.6599, allocations: 11.94 kB / 0.749 GB, free: 4.469 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004739/0.6604, allocations: 186.7 kB / 0.7492 GB, free: 4.25 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.6606, allocations: 0.6845 MB / 0.7498 GB, free: 3.539 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 3.282e-05/0.6607, allocations: 7.938 kB / 0.7498 GB, free: 3.531 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.249e-05/0.6607, allocations: 19.42 kB / 0.7499 GB, free: 3.516 MB / 0.5261 GB Notification: Performance of SimCode: time 2.41e-07/0.6607, allocations: 0 / 0.7499 GB, free: 3.516 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01964/0.6803, allocations: 1.048 MB / 0.7509 GB, free: 2.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/0.6806, allocations: 177.2 kB / 0.7511 GB, free: 2.285 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.608/2.288, allocations: 1.719 kB / 0.7511 GB, free: 2.285 MB / 0.5261 GB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)