Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.8253/0.8253, allocations: 141.8 MB / 149.3 MB, free: 9.219 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 188.6 kB / 182.2 MB, free: 9.426 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 221.5 MB / 436.4 MB, free: 13.32 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.0008763/0.0008766, allocations: 97.5 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001843/0.001843, allocations: 286.8 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.822e-05/2.83e-05, allocations: 4 kB / 0.6766 GB, free: 12.71 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4914/0.4915, allocations: 82.77 MB / 0.7575 GB, free: 31.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1484/0.6399, allocations: 109.5 MB / 0.8644 GB, free: 2.203 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.6402, allocations: 75.95 kB / 0.8645 GB, free: 2.129 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01267/0.6529, allocations: 4.306 MB / 0.8687 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.863e-06/0.6529, allocations: 0 / 0.8687 GB, free: 13.82 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.6529, allocations: 0 / 0.8687 GB, free: 13.82 MB / 0.5417 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.000476/0.6534, allocations: 374.3 kB / 0.8691 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.6535, allocations: 8.031 kB / 0.8691 GB, free: 13.4 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.758e-05/0.6535, allocations: 7.906 kB / 0.8691 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.6537, allocations: 167 kB / 0.8692 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.6537, allocations: 4 kB / 0.8692 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.489e-05/0.6538, allocations: 4 kB / 0.8692 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000124/0.6539, allocations: 31.98 kB / 0.8693 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.654, allocations: 65.67 kB / 0.8693 GB, free: 13.08 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.654, allocations: 3.906 kB / 0.8693 GB, free: 13.08 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.6541, allocations: 3.984 kB / 0.8693 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.6541, allocations: 4 kB / 0.8693 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005697/0.6547, allocations: 305.1 kB / 0.8696 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.6548, allocations: 62.5 kB / 0.8697 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.336e-05/0.6548, allocations: 20.86 kB / 0.8697 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.6549, allocations: 0 / 0.8697 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.6549, allocations: 34.55 kB / 0.8697 GB, free: 12.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.6549, allocations: 3.938 kB / 0.8698 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0008778/0.6558, allocations: 0.5219 MB / 0.8703 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.6558, allocations: 55.36 kB / 0.8703 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.464e-05/0.6559, allocations: 96.98 kB / 0.8704 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.6559, allocations: 25.7 kB / 0.8704 GB, free: 11.78 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.496e-05/0.656, allocations: 88.14 kB / 0.8705 GB, free: 11.69 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.551e-05/0.656, allocations: 39.45 kB / 0.8706 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.981e-06/0.656, allocations: 3.938 kB / 0.8706 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.6561, allocations: 314.8 kB / 0.8709 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.375e-05/0.6562, allocations: 27.94 kB / 0.8709 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.359e-05/0.6562, allocations: 20 kB / 0.8709 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.518e-05/0.6563, allocations: 21.48 kB / 0.8709 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.6563, allocations: 0 / 0.8709 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001368/0.6564, allocations: 89.72 kB / 0.871 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.6565, allocations: 8 kB / 0.871 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.6565, allocations: 0 / 0.871 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.6565, allocations: 0 / 0.871 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.6567, allocations: 31.98 kB / 0.871 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.6567, allocations: 3.984 kB / 0.871 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.221e-05/0.6568, allocations: 11.95 kB / 0.8711 GB, free: 11.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.6568, allocations: 7.938 kB / 0.8711 GB, free: 11.11 MB / 0.5417 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 (13): * Single equations (assignments): 13 * 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 7.871e-05/0.6569, allocations: 101 kB / 0.8712 GB, free: 11 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001367/0.657, allocations: 85.58 kB / 0.8712 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.473e-05/0.657, allocations: 4 kB / 0.8712 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001919/0.6572, allocations: 109.9 kB / 0.8714 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-06/0.6572, allocations: 0 / 0.8714 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.6573, allocations: 7.953 kB / 0.8714 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.6573, allocations: 0 / 0.8714 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003376/0.6576, allocations: 331.1 kB / 0.8717 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.6576, allocations: 0 / 0.8717 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.6578, allocations: 35.92 kB / 0.8717 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.6578, allocations: 0 / 0.8717 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.6578, allocations: 0 / 0.8717 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.6578, allocations: 3.953 kB / 0.8717 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.6578, allocations: 4 kB / 0.8717 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.6581, allocations: 211.5 kB / 0.8719 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.284e-05/0.6581, allocations: 81.02 kB / 0.872 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.067e-05/0.6582, allocations: 8.016 kB / 0.872 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.6583, allocations: 4 kB / 0.872 GB, free: 10.04 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.6583, allocations: 11.94 kB / 0.872 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.6583, allocations: 4 kB / 0.872 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.412e-05/0.6584, allocations: 87.52 kB / 0.8721 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6584, allocations: 0 / 0.8721 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002947/0.6587, allocations: 39.94 kB / 0.8721 GB, free: 9.902 MB / 0.5417 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 () * 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 (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.0006226/0.6593, allocations: 0.7923 MB / 0.8729 GB, free: 9.086 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001423/0.6595, allocations: 63.92 kB / 0.873 GB, free: 9.023 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.654e-06/0.6595, allocations: 4.062 kB / 0.873 GB, free: 9.02 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.294e-05/0.6595, allocations: 28 kB / 0.873 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001964/0.6597, allocations: 12.59 kB / 0.873 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006491/0.6604, allocations: 294.2 kB / 0.8733 GB, free: 8.656 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.6607, allocations: 0.6933 MB / 0.874 GB, free: 7.938 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.29e-05/0.6607, allocations: 12.59 kB / 0.874 GB, free: 7.926 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.226e-05/0.6608, allocations: 31.38 kB / 0.874 GB, free: 7.895 MB / 0.5417 GB Notification: Performance of SimCode: time 2.5e-07/0.6608, allocations: 0 / 0.874 GB, free: 7.895 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02158/0.6824, allocations: 1.686 MB / 0.8757 GB, free: 6.254 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002275/0.6827, allocations: 205.3 kB / 0.8759 GB, free: 5.988 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.662/2.345, allocations: 0 / 0.8759 GB, free: 5.988 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)