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.007251/0.007251, allocations: 101.2 kB / 15.73 MB, free: 6.059 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.001569/0.001569, allocations: 197 kB / 16.68 MB, free: 5.984 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9308/0.9308, allocations: 135.1 MB / 425.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 63.91 kB / 0.5851 GB, free: 3.82 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.4002, allocations: 80.92 MB / 0.6642 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002122/0.4023, allocations: 1.475 MB / 0.6656 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009034/0.4032, allocations: 0.6227 MB / 0.6662 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.815e-05/0.4033, allocations: 1.125 kB / 0.6662 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.386e-05/0.4033, allocations: 7.922 kB / 0.6662 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.559e-05/0.4034, allocations: 8.969 kB / 0.6662 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005297/0.4039, allocations: 162.2 kB / 0.6664 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.311e-05/0.404, allocations: 51.53 kB / 0.6664 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.144e-05/0.4041, allocations: 6.453 kB / 0.6664 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.5e-05/0.4041, allocations: 25.52 kB / 0.6665 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.47e-05/0.4042, allocations: 24.55 kB / 0.6665 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.4042, allocations: 4.281 kB / 0.6665 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004296/0.4046, allocations: 347.4 kB / 0.6668 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.786e-05/0.4047, allocations: 14.98 kB / 0.6668 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.526e-05/0.4047, allocations: 31.72 kB / 0.6669 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.405, allocations: 181.6 kB / 0.667 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.405, allocations: 0 / 0.667 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.763e-06/0.405, allocations: 0 / 0.667 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.405, allocations: 1.531 kB / 0.667 GB, free: 5.074 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.0005213/0.4055, allocations: 394.5 kB / 0.6674 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.4056, allocations: 9.438 kB / 0.6674 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.918e-05/0.4056, allocations: 36.5 kB / 0.6675 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.298e-05/0.4057, allocations: 4.75 kB / 0.6675 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.668e-05/0.4058, allocations: 186.7 kB / 0.6676 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.4058, allocations: 7.312 kB / 0.6677 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.55e-05/0.4058, allocations: 12.06 kB / 0.6677 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.406, allocations: 78.94 kB / 0.6677 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.4061, allocations: 0 / 0.6677 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.4061, allocations: 1.5 kB / 0.6677 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.4061, allocations: 1.25 kB / 0.6677 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001972/0.4063, allocations: 52.23 kB / 0.6678 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004508/0.4067, allocations: 324.4 kB / 0.6681 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.407, allocations: 75.88 kB / 0.6682 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.431e-05/0.4071, allocations: 31.53 kB / 0.6682 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.4071, allocations: 9.266 kB / 0.6682 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/0.4071, allocations: 40.05 kB / 0.6682 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.4071, allocations: 0 / 0.6682 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001348/0.4085, allocations: 0.6483 MB / 0.6689 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.038e-05/0.4085, allocations: 52.66 kB / 0.6689 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.555e-05/0.4086, allocations: 99.3 kB / 0.669 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.4086, allocations: 26.95 kB / 0.6691 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.803e-05/0.4086, allocations: 98.25 kB / 0.6691 GB, free: 3 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.69e-05/0.4087, allocations: 39.31 kB / 0.6692 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.94e-05/0.4087, allocations: 31.38 kB / 0.6692 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.074e-05/0.4088, allocations: 320.1 kB / 0.6695 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.4089, allocations: 29.89 kB / 0.6695 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.409, allocations: 35.69 kB / 0.6696 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.4092, allocations: 77.55 kB / 0.6697 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.52e-07/0.4092, allocations: 0 / 0.6697 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002648/0.4095, allocations: 118.9 kB / 0.6698 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.4095, allocations: 5.062 kB / 0.6698 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.4095, allocations: 3.984 kB / 0.6698 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.4095, allocations: 4.875 kB / 0.6698 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.4097, allocations: 29.3 kB / 0.6698 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.4097, allocations: 0 / 0.6698 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.581e-05/0.4097, allocations: 8.234 kB / 0.6698 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.517e-06/0.4098, allocations: 6.75 kB / 0.6698 GB, free: 2.457 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 5.854e-05/0.4098, allocations: 118.1 kB / 0.6699 GB, free: 2.336 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.4099, allocations: 7.812 kB / 0.6699 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003229/0.4102, allocations: 127.2 kB / 0.6701 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.4102, allocations: 1.438 kB / 0.6701 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4102, allocations: 0 / 0.6701 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.4102, allocations: 0 / 0.6701 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004365/0.4107, allocations: 389.7 kB / 0.6704 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4107, allocations: 4 kB / 0.6704 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/0.4108, allocations: 28.47 kB / 0.6705 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.4108, allocations: 0 / 0.6705 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.4108, allocations: 1.406 kB / 0.6705 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4108, allocations: 1.312 kB / 0.6705 GB, free: 1.867 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.4108, allocations: 3.938 kB / 0.6705 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004055/0.4112, allocations: 251.6 kB / 0.6707 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.823e-05/0.4113, allocations: 83.58 kB / 0.6708 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.529e-05/0.4113, allocations: 5.375 kB / 0.6708 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.4114, allocations: 8.016 kB / 0.6708 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.159e-05/0.4114, allocations: 6.922 kB / 0.6708 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.508e-06/0.4114, allocations: 4.156 kB / 0.6708 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.126e-05/0.4115, allocations: 86.19 kB / 0.6709 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4115, allocations: 0 / 0.6709 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002603/0.4117, allocations: 42.62 kB / 0.6709 GB, free: 1.465 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.0006116/0.4124, allocations: 0.8137 MB / 0.6717 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002709/0.4126, allocations: 96.8 kB / 0.6718 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4127, allocations: 0.9688 kB / 0.6718 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.4128, allocations: 48.33 kB / 0.6719 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.4131, allocations: 10.23 kB / 0.6719 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001756/0.4148, allocations: 1.603 MB / 0.6735 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.4151, allocations: 0.6913 MB / 0.6741 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.3e-05/0.4152, allocations: 15.56 kB / 0.6741 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.78e-05/0.4152, allocations: 21.03 kB / 0.6742 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of SimCode: time 2.7e-07/0.4152, allocations: 0 / 0.6742 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.4366, allocations: 2.32 MB / 0.6764 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.37/7.807, allocations: 14.7 kB / 0.6764 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)