Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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_DerivativeCheck,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",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.0009622/0.0009621, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.001152/0.001152, allocations: 177.3 kB / 15.95 MB, free: 216 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.334/1.334, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.021/1.021, allocations: 143.3 MB / 434.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003371/0.0003371, allocations: 8 kB / 0.5159 GB, free: 11.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1781, allocations: 83.42 MB / 0.5974 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001357/0.1795, allocations: 0.9862 MB / 0.5983 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006/0.1801, allocations: 327.2 kB / 0.5986 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.304e-05/0.1802, allocations: 0 / 0.5986 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.355e-05/0.1802, allocations: 0 / 0.5986 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.65e-05/0.1802, allocations: 7.969 kB / 0.5986 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.1806, allocations: 63.78 kB / 0.5987 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.889e-05/0.1806, allocations: 11.98 kB / 0.5987 GB, free: 6.395 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.414e-05/0.1807, allocations: 7.984 kB / 0.5987 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.506e-05/0.1807, allocations: 7.938 kB / 0.5987 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.044e-05/0.1808, allocations: 8 kB / 0.5987 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.245e-05/0.1808, allocations: 4 kB / 0.5987 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002752/0.1811, allocations: 183.6 kB / 0.5989 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.686e-06/0.1811, allocations: 0 / 0.5989 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.971e-05/0.1811, allocations: 29.7 kB / 0.599 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.1812, allocations: 56.16 kB / 0.599 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1813, allocations: 0 / 0.599 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.893e-06/0.1813, allocations: 0 / 0.599 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.1813, allocations: 0 / 0.599 GB, free: 6.098 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000424/0.1817, allocations: 335.2 kB / 0.5993 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.1818, allocations: 19.97 kB / 0.5993 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.685e-05/0.1818, allocations: 38.5 kB / 0.5994 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.431e-05/0.1818, allocations: 3.953 kB / 0.5994 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.182, allocations: 163.1 kB / 0.5995 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.182, allocations: 0 / 0.5995 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.182, allocations: 0 / 0.5995 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.781e-05/0.1821, allocations: 41.69 kB / 0.5996 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1821, allocations: 0 / 0.5996 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.1821, allocations: 0 / 0.5996 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.1821, allocations: 0 / 0.5996 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.34e-05/0.1822, allocations: 23.94 kB / 0.5996 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001603/0.1824, allocations: 153.7 kB / 0.5997 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.1825, allocations: 46.5 kB / 0.5998 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1826, allocations: 4 kB / 0.5998 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.1826, allocations: 30.56 kB / 0.5998 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1826, allocations: 0 / 0.5998 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.000612/0.1832, allocations: 310.3 kB / 0.6001 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.242e-05/0.1833, allocations: 55.34 kB / 0.6002 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.804e-05/0.1834, allocations: 105.8 kB / 0.6003 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.1834, allocations: 25.7 kB / 0.6003 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.967e-05/0.1834, allocations: 88.08 kB / 0.6004 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.1834, allocations: 15.72 kB / 0.6004 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-06/0.1835, allocations: 0 / 0.6004 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1836, allocations: 326.8 kB / 0.6007 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.221e-05/0.1836, allocations: 7.938 kB / 0.6007 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.144e-05/0.1836, allocations: 15.98 kB / 0.6007 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.014e-05/0.1837, allocations: 12 kB / 0.6007 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.02e-07/0.1837, allocations: 0 / 0.6007 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.187e-05/0.1838, allocations: 61.61 kB / 0.6008 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1838, allocations: 11.98 kB / 0.6008 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1838, allocations: 0 / 0.6008 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1838, allocations: 0 / 0.6008 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.416e-05/0.1839, allocations: 8 kB / 0.6008 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1839, allocations: 3.938 kB / 0.6008 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.775e-05/0.1839, allocations: 8 kB / 0.6008 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-06/0.1839, allocations: 3.953 kB / 0.6008 GB, free: 3.949 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 (7): * Single equations (assignments): 7 * 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.27e-05/0.184, allocations: 113.8 kB / 0.6009 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-06/0.184, allocations: 0 / 0.6009 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.1842, allocations: 69.64 kB / 0.601 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1842, allocations: 0 / 0.601 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1842, allocations: 4 kB / 0.601 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.1842, allocations: 0 / 0.601 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000334/0.1845, allocations: 323.5 kB / 0.6013 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1846, allocations: 7.984 kB / 0.6013 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.94e-05/0.1846, allocations: 8 kB / 0.6013 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.1846, allocations: 4 kB / 0.6013 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.1846, allocations: 0 / 0.6013 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1847, allocations: 3.938 kB / 0.6013 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1847, allocations: 0 / 0.6013 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001997/0.1849, allocations: 198 kB / 0.6015 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/0.1849, allocations: 77.11 kB / 0.6016 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.1849, allocations: 8.031 kB / 0.6016 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.285e-05/0.185, allocations: 3.984 kB / 0.6016 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.332e-05/0.1851, allocations: 11.89 kB / 0.6016 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.1851, allocations: 0 / 0.6016 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.194e-05/0.1851, allocations: 79.28 kB / 0.6017 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1851, allocations: 8 kB / 0.6017 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002467/0.1854, allocations: 27.92 kB / 0.6017 GB, free: 2.898 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0005445/0.1859, allocations: 0.8033 MB / 0.6025 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001059/0.186, allocations: 35.98 kB / 0.6026 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1861, allocations: 0 / 0.6026 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.088e-05/0.1861, allocations: 19.98 kB / 0.6026 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001519/0.1862, allocations: 7.953 kB / 0.6026 GB, free: 2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007653/0.187, allocations: 492.3 kB / 0.6031 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.1873, allocations: 0.6809 MB / 0.6037 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.517e-05/0.1874, allocations: 12.06 kB / 0.6037 GB, free: 0.75 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.717e-05/0.1874, allocations: 15.36 kB / 0.6037 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1874, allocations: 0 / 0.6037 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2649/0.4523, allocations: 1.397 MB / 0.6051 GB, free: 40.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001352/0.4525, allocations: 238.3 kB / 0.6053 GB, free: 39.98 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.58/2.032, allocations: 0 / 0.6053 GB, free: 39.98 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildSysPro_BuildSysPro_IBPSA_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) Environment - environmentSimulation: