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/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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007443/0.0007446, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.0008724/0.0008724, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9749/0.9749, allocations: 143.4 MB / 434.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000328/0.000328, allocations: 12 kB / 0.5161 GB, free: 11.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1545/0.1548, allocations: 83.41 MB / 0.5975 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001412/0.1563, allocations: 1.181 MB / 0.5987 GB, free: 6.547 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000898/0.1572, allocations: 0.5844 MB / 0.5993 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.315e-05/0.1572, allocations: 0 / 0.5993 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.1573, allocations: 0 / 0.5993 GB, free: 5.961 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.645e-05/0.1573, allocations: 7.938 kB / 0.5993 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000461/0.1578, allocations: 131.6 kB / 0.5994 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.861e-05/0.1579, allocations: 47.84 kB / 0.5994 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.622e-05/0.1579, allocations: 4 kB / 0.5995 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.125e-05/0.158, allocations: 23.91 kB / 0.5995 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.341e-05/0.158, allocations: 19.92 kB / 0.5995 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.158, allocations: 4 kB / 0.5995 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004546/0.1585, allocations: 343.3 kB / 0.5998 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.405e-05/0.1585, allocations: 11.98 kB / 0.5998 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.897e-05/0.1586, allocations: 37.64 kB / 0.5999 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001736/0.1587, allocations: 116 kB / 0.6 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1587, allocations: 0 / 0.6 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.153e-06/0.1587, allocations: 0 / 0.6 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.1588, allocations: 0 / 0.6 GB, free: 5.223 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.0005069/0.1593, allocations: 391.1 kB / 0.6004 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.1593, allocations: 16.03 kB / 0.6004 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.079e-05/0.1594, allocations: 38.55 kB / 0.6004 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.003e-05/0.1594, allocations: 11.86 kB / 0.6004 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.1595, allocations: 171 kB / 0.6006 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.1595, allocations: 7.984 kB / 0.6006 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.1596, allocations: 8 kB / 0.6006 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.1598, allocations: 89.27 kB / 0.6007 GB, free: 4.406 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.1598, allocations: 4 kB / 0.6007 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.1598, allocations: 0 / 0.6007 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1598, allocations: 0 / 0.6007 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.1601, allocations: 55.95 kB / 0.6007 GB, free: 4.348 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004988/0.1606, allocations: 332.6 kB / 0.6011 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000244/0.1608, allocations: 90.53 kB / 0.6011 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.644e-05/0.1609, allocations: 28.84 kB / 0.6012 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.1609, allocations: 0 / 0.6012 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.161, allocations: 42.52 kB / 0.6012 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 9.01e-07/0.161, allocations: 7.875 kB / 0.6012 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001499/0.1625, allocations: 0.6697 MB / 0.6019 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/0.1625, allocations: 51.41 kB / 0.6019 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.165e-05/0.1626, allocations: 105.8 kB / 0.602 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.1626, allocations: 25.7 kB / 0.602 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.202e-05/0.1627, allocations: 92.05 kB / 0.6021 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.1627, allocations: 43.44 kB / 0.6022 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.23e-06/0.1627, allocations: 0 / 0.6022 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1629, allocations: 318.8 kB / 0.6025 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.163, allocations: 31.98 kB / 0.6025 GB, free: 2.328 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.1631, allocations: 35.97 kB / 0.6025 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.1632, allocations: 48.11 kB / 0.6026 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.1632, allocations: 0 / 0.6026 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000292/0.1635, allocations: 129.5 kB / 0.6027 GB, free: 2.113 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.1636, allocations: 5.875 kB / 0.6027 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1636, allocations: 4 kB / 0.6027 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.1636, allocations: 3.938 kB / 0.6027 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.1637, allocations: 27.98 kB / 0.6028 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.1637, allocations: 0 / 0.6028 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.619e-05/0.1638, allocations: 8 kB / 0.6028 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.1638, allocations: 3.984 kB / 0.6028 GB, free: 2.062 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.953e-05/0.1639, allocations: 117.8 kB / 0.6029 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.904e-05/0.1639, allocations: 11.95 kB / 0.6029 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003433/0.1643, allocations: 137.4 kB / 0.603 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1643, allocations: 3.938 kB / 0.603 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.1643, allocations: 4.172 kB / 0.603 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1643, allocations: 4 kB / 0.603 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005129/0.1648, allocations: 398.5 kB / 0.6034 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1649, allocations: 0 / 0.6034 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/0.165, allocations: 31.97 kB / 0.6034 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.165, allocations: 0 / 0.6034 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.165, allocations: 4 kB / 0.6034 GB, free: 1.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.165, allocations: 4 kB / 0.6035 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.165, allocations: 4 kB / 0.6035 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004407/0.1655, allocations: 263.3 kB / 0.6037 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.392e-05/0.1655, allocations: 85.05 kB / 0.6038 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.1656, allocations: 4 kB / 0.6038 GB, free: 0.9023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.1657, allocations: 7.984 kB / 0.6038 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.399e-05/0.1657, allocations: 4 kB / 0.6038 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.1657, allocations: 11.98 kB / 0.6038 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.536e-05/0.1658, allocations: 79.28 kB / 0.6039 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1658, allocations: 0 / 0.6039 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002696/0.166, allocations: 40 kB / 0.6039 GB, free: 0.7617 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 (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.2706/0.4366, allocations: 0.8288 MB / 0.6047 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004158/0.4371, allocations: 84.81 kB / 0.6048 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.4371, allocations: 0.8438 kB / 0.6048 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001281/0.4372, allocations: 53.38 kB / 0.6049 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.4376, allocations: 7.094 kB / 0.6049 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.4388, allocations: 0.7517 MB / 0.6056 GB, free: 40.35 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.4389, allocations: 0.6898 MB / 0.6063 GB, free: 39.65 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.812e-05/0.439, allocations: 15.25 kB / 0.6063 GB, free: 39.65 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.197e-05/0.4391, allocations: 23.81 kB / 0.6063 GB, free: 39.64 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.4391, allocations: 0 / 0.6063 GB, free: 39.64 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01208/0.4512, allocations: 2.102 MB / 0.6084 GB, free: 39.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001361/0.4513, allocations: 237.3 kB / 0.6086 GB, free: 39.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.666/2.118, allocations: 2.594 kB / 0.6086 GB, free: 39.28 MB / 0.4981 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) Environment - environmentSimulation: