Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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/BuildSysPro 3.5.0/package.mo): time 0.7254/0.7254, allocations: 127.3 MB / 139.8 MB, free: 15.43 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 179.8 kB / 169.7 MB, free: 1.746 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.1 MB / 404.5 MB, free: 1.633 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008155/0.0008155, allocations: 74.48 kB / 481.8 MB, free: 4.293 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.564e-05/3.579e-05, allocations: 4 kB / 0.5533 GB, free: 54.72 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1317, allocations: 76.75 MB / 0.6283 GB, free: 9.906 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4577/0.5894, allocations: 104.2 MB / 0.73 GB, free: 9.242 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.5897, allocations: 87.31 kB / 0.7301 GB, free: 9.191 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01322/0.603, allocations: 4.572 MB / 0.7345 GB, free: 5.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.603, allocations: 3.938 kB / 0.7345 GB, free: 5.316 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.603, allocations: 4 kB / 0.7345 GB, free: 5.312 MB / 490.7 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.0004461/0.6035, allocations: 377.3 kB / 0.7349 GB, free: 4.906 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.6035, allocations: 8.031 kB / 0.7349 GB, free: 4.898 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.864e-05/0.6036, allocations: 38.06 kB / 0.7349 GB, free: 4.855 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.304e-05/0.6036, allocations: 12.64 kB / 0.735 GB, free: 4.844 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001311/0.6038, allocations: 163.1 kB / 0.7351 GB, free: 4.645 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.418e-05/0.6038, allocations: 4 kB / 0.7351 GB, free: 4.641 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.6038, allocations: 7.5 kB / 0.7351 GB, free: 4.637 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003791/0.6042, allocations: 94.95 kB / 0.7352 GB, free: 4.551 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.6042, allocations: 0 / 0.7352 GB, free: 4.551 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.6043, allocations: 7.438 kB / 0.7352 GB, free: 4.547 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.625e-06/0.6043, allocations: 7.953 kB / 0.7352 GB, free: 4.539 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000232/0.6045, allocations: 49.34 kB / 0.7353 GB, free: 4.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005463/0.6051, allocations: 331.1 kB / 0.7356 GB, free: 4.145 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002998/0.6054, allocations: 92.78 kB / 0.7357 GB, free: 4.059 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.56e-05/0.6054, allocations: 24.11 kB / 0.7357 GB, free: 4.039 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000199/0.6056, allocations: 93.09 kB / 0.7358 GB, free: 3.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.6057, allocations: 34.56 kB / 0.7358 GB, free: 3.887 MB / 490.7 MB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.6057, allocations: 0 / 0.7358 GB, free: 3.887 MB / 490.7 MB Notification: Performance of matching and sorting (n=11): time 0.003341/0.609, allocations: 0.8389 MB / 0.7366 GB, free: 3.023 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.6091, allocations: 55.41 kB / 0.7367 GB, free: 2.957 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.906e-05/0.6092, allocations: 100.6 kB / 0.7368 GB, free: 2.855 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.362e-05/0.6092, allocations: 28.95 kB / 0.7368 GB, free: 2.824 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.77e-05/0.6093, allocations: 88.05 kB / 0.7369 GB, free: 2.734 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.731e-05/0.6093, allocations: 38.45 kB / 0.7369 GB, free: 2.703 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.153e-05/0.6093, allocations: 0 / 0.7369 GB, free: 2.703 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.6095, allocations: 322.7 kB / 0.7373 GB, free: 2.383 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.794e-05/0.6095, allocations: 33.55 kB / 0.7373 GB, free: 2.359 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.43e-05/0.6096, allocations: 30.38 kB / 0.7373 GB, free: 2.34 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.181e-05/0.6097, allocations: 34.36 kB / 0.7373 GB, free: 2.316 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.6097, allocations: 7.953 kB / 0.7374 GB, free: 2.309 MB / 490.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002134/0.6099, allocations: 119.1 kB / 0.7375 GB, free: 2.207 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.6099, allocations: 4 kB / 0.7375 GB, free: 2.203 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.6099, allocations: 0 / 0.7375 GB, free: 2.203 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.61, allocations: 0 / 0.7375 GB, free: 2.203 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003232/0.6103, allocations: 47.28 kB / 0.7375 GB, free: 2.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.6103, allocations: 0.5469 kB / 0.7375 GB, free: 2.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002079/0.6105, allocations: 28.06 kB / 0.7375 GB, free: 2.133 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.725e-05/0.6105, allocations: 7.938 kB / 0.7375 GB, free: 2.125 MB / 490.7 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 () * 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.536e-05/0.6106, allocations: 104 kB / 0.7376 GB, free: 2.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.55e-05/0.6107, allocations: 19.11 kB / 0.7377 GB, free: 2.004 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.6107, allocations: 7.656 kB / 0.7377 GB, free: 2.004 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.6107, allocations: 4 kB / 0.7377 GB, free: 2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.6107, allocations: 0 / 0.7377 GB, free: 2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.6107, allocations: 3.984 kB / 0.7377 GB, free: 1.996 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004998/0.6112, allocations: 399.5 kB / 0.7381 GB, free: 1.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.6113, allocations: 0 / 0.7381 GB, free: 1.59 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003177/0.6116, allocations: 43.95 kB / 0.7381 GB, free: 1.547 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.6116, allocations: 0 / 0.7381 GB, free: 1.547 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.6116, allocations: 4 kB / 0.7381 GB, free: 1.543 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.6116, allocations: 0 / 0.7381 GB, free: 1.543 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.6116, allocations: 3.938 kB / 0.7381 GB, free: 1.539 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003628/0.612, allocations: 263.8 kB / 0.7384 GB, free: 1.309 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.853e-05/0.6121, allocations: 81.09 kB / 0.7384 GB, free: 1.211 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.6121, allocations: 3.25 kB / 0.7384 GB, free: 1.211 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002833/0.6124, allocations: 20.02 kB / 0.7385 GB, free: 1.191 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.216e-05/0.6124, allocations: 11.73 kB / 0.7385 GB, free: 1.184 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.455e-05/0.6124, allocations: 8.062 kB / 0.7385 GB, free: 1.176 MB / 490.7 MB Notification: Performance of sorting global known variables: time 4.274e-05/0.6125, allocations: 87.44 kB / 0.7386 GB, free: 1.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6125, allocations: 0 / 0.7386 GB, free: 1.09 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.000231/0.6127, allocations: 27.06 kB / 0.7386 GB, free: 1.066 MB / 490.7 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 () * 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.0006431/0.6134, allocations: 0.8012 MB / 0.7394 GB, free: 292 kB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001911/0.6136, allocations: 94.47 kB / 0.7395 GB, free: 220 kB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.6136, allocations: 0 / 0.7395 GB, free: 220 kB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 7.826e-05/0.6137, allocations: 43.19 kB / 0.7395 GB, free: 188 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/0.6139, allocations: 12.02 kB / 0.7395 GB, free: 180 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.615, allocations: 381.3 kB / 0.7399 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.6153, allocations: 0.6965 MB / 0.7406 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0001292/0.6154, allocations: 16.66 kB / 0.7406 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.156e-05/0.6155, allocations: 28.86 kB / 0.7406 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of SimCode: time 2.044e-06/0.6155, allocations: 0 / 0.7406 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01258/0.6281, allocations: 1.964 MB / 0.7425 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002028/0.6284, allocations: 202.1 kB / 0.7427 GB, free: 13.04 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.563/2.192, allocations: 0 / 0.7427 GB, free: 13.04 MB / 0.4948 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)