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.7277/0.7277, allocations: 128.7 MB / 143.7 MB, free: 2.336 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 176.4 kB / 173.7 MB, free: 6.141 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.437/1.437, allocations: 205.4 MB / 409 MB, free: 10.54 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.0008515/0.0008512, allocations: 83.69 kB / 486.5 MB, free: 13.04 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003544, allocations: 9.5 kB / 0.5604 GB, free: 97.47 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1261, allocations: 76.77 MB / 0.6354 GB, free: 30.49 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.2569, allocations: 104.3 MB / 0.7372 GB, free: 6.086 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.2572, allocations: 83.95 kB / 0.7373 GB, free: 6.004 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.01405/0.2713, allocations: 4.586 MB / 0.7418 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.354e-06/0.2713, allocations: 0 / 0.7418 GB, free: 1.41 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.294e-06/0.2713, allocations: 4 kB / 0.7418 GB, free: 1.406 MB / 0.5105 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.0004693/0.2718, allocations: 379.2 kB / 0.7422 GB, free: 0.9883 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.2718, allocations: 8.031 kB / 0.7422 GB, free: 0.9805 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5e-05/0.2719, allocations: 38.55 kB / 0.7422 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.451e-05/0.2719, allocations: 11.86 kB / 0.7422 GB, free: 0.9219 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.2721, allocations: 167 kB / 0.7424 GB, free: 0.7188 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.2721, allocations: 4 kB / 0.7424 GB, free: 0.7148 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.2721, allocations: 12 kB / 0.7424 GB, free: 0.7031 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004766/0.2726, allocations: 109.5 kB / 0.7425 GB, free: 0.5898 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.2726, allocations: 0 / 0.7425 GB, free: 0.5898 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.2727, allocations: 8 kB / 0.7425 GB, free: 0.582 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.2727, allocations: 3.953 kB / 0.7425 GB, free: 0.5781 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.2731, allocations: 83.92 kB / 0.7426 GB, free: 0.4961 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005655/0.2737, allocations: 336.7 kB / 0.7429 GB, free: 120 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2748/0.5485, allocations: 110.7 kB / 0.743 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003357/0.5488, allocations: 101.1 kB / 0.7431 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.5489, allocations: 33.66 kB / 0.7431 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=7): time 2.845e-06/0.5489, allocations: 0 / 0.7431 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.005088/0.554, allocations: 1.069 MB / 0.7442 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.818e-05/0.554, allocations: 57.31 kB / 0.7442 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.793e-05/0.5541, allocations: 95.38 kB / 0.7443 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.5541, allocations: 31.92 kB / 0.7444 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.539e-05/0.5542, allocations: 92.64 kB / 0.7444 GB, free: 109 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.681e-05/0.5542, allocations: 34.94 kB / 0.7445 GB, free: 109 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.161e-05/0.5542, allocations: 6.375 kB / 0.7445 GB, free: 109 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.733e-05/0.5543, allocations: 317.3 kB / 0.7448 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.5546, allocations: 62.83 kB / 0.7448 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002387/0.5548, allocations: 67.11 kB / 0.7449 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.555, allocations: 65.52 kB / 0.745 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.555, allocations: 7.766 kB / 0.745 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004989/0.5555, allocations: 184.5 kB / 0.7452 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.5556, allocations: 5.844 kB / 0.7452 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.83e-06/0.5556, allocations: 0.7812 kB / 0.7452 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.5556, allocations: 6.922 kB / 0.7452 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/0.5559, allocations: 40.84 kB / 0.7452 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.5559, allocations: 3.938 kB / 0.7452 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/0.5562, allocations: 21.08 kB / 0.7452 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.5562, allocations: 13.28 kB / 0.7452 GB, free: 108.6 MB / 0.5105 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.069e-05/0.5563, allocations: 116.5 kB / 0.7454 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.525e-05/0.5563, allocations: 7.328 kB / 0.7454 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.068e-05/0.5564, allocations: 11.38 kB / 0.7454 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.5564, allocations: 3.469 kB / 0.7454 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5564, allocations: 0 / 0.7454 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.5564, allocations: 6.297 kB / 0.7454 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007313/0.5571, allocations: 461.4 kB / 0.7458 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.5572, allocations: 0.5625 kB / 0.7458 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003224/0.5575, allocations: 45.16 kB / 0.7459 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.5575, allocations: 0 / 0.7459 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.5575, allocations: 11.62 kB / 0.7459 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.5575, allocations: 2.125 kB / 0.7459 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.5575, allocations: 4 kB / 0.7459 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007543/0.5583, allocations: 351.5 kB / 0.7462 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 2.167e-05/0.5583, allocations: 84.11 kB / 0.7463 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.5584, allocations: 3.344 kB / 0.7463 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.5586, allocations: 28.2 kB / 0.7463 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.5587, allocations: 8.516 kB / 0.7463 GB, free: 108 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.5587, allocations: 5.688 kB / 0.7463 GB, free: 108 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 2.587e-05/0.5587, allocations: 83.75 kB / 0.7464 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5587, allocations: 3.828 kB / 0.7464 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002429/0.559, allocations: 22.47 kB / 0.7464 GB, free: 107.9 MB / 0.5105 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 (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.0009309/0.5599, allocations: 0.892 MB / 0.7473 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004906/0.5604, allocations: 151.6 kB / 0.7475 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.686e-06/0.5605, allocations: 4 kB / 0.7475 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.5607, allocations: 79.05 kB / 0.7475 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.5609, allocations: 5.203 kB / 0.7475 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002201/0.5631, allocations: 0.9588 MB / 0.7485 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.5632, allocations: 0.6934 MB / 0.7492 GB, free: 106 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001303/0.5634, allocations: 21.77 kB / 0.7492 GB, free: 106 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.516e-05/0.5635, allocations: 20.59 kB / 0.7492 GB, free: 106 MB / 0.5105 GB Notification: Performance of SimCode: time 5.71e-07/0.5635, allocations: 0 / 0.7492 GB, free: 106 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0136/0.5771, allocations: 1.978 MB / 0.7511 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001628/0.5773, allocations: 231.9 kB / 0.7514 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.56/2.138, allocations: 0 / 0.7514 GB, free: 105.6 MB / 0.5105 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)