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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 104.4 kB / 16.35 MB, free: 6.336 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.001132/0.001132, allocations: 195.4 kB / 17.29 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002094/0.002095, allocations: 283.8 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9327/0.9327, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 94.05 kB / 0.5967 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1517, allocations: 86.98 MB / 0.6816 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002491/0.1542, allocations: 1.465 MB / 0.683 GB, free: 6.008 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.1553, allocations: 0.6273 MB / 0.6836 GB, free: 5.379 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.007e-05/0.1553, allocations: 7.938 kB / 0.6837 GB, free: 5.371 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.925e-05/0.1554, allocations: 3.938 kB / 0.6837 GB, free: 5.367 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.347e-05/0.1554, allocations: 11.92 kB / 0.6837 GB, free: 5.355 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005113/0.1559, allocations: 159.3 kB / 0.6838 GB, free: 5.199 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.923e-05/0.156, allocations: 47.84 kB / 0.6839 GB, free: 5.152 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.525e-05/0.1561, allocations: 4 kB / 0.6839 GB, free: 5.148 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.999e-05/0.1561, allocations: 35.91 kB / 0.6839 GB, free: 5.113 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.068e-05/0.1562, allocations: 19.86 kB / 0.6839 GB, free: 5.094 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.35e-05/0.1562, allocations: 7.938 kB / 0.6839 GB, free: 5.086 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000444/0.1567, allocations: 351.3 kB / 0.6843 GB, free: 4.742 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.776e-05/0.1567, allocations: 11.98 kB / 0.6843 GB, free: 4.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.1567, allocations: 19.88 kB / 0.6843 GB, free: 4.711 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002538/0.157, allocations: 183.5 kB / 0.6845 GB, free: 4.531 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.157, allocations: 0 / 0.6845 GB, free: 4.531 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.157, allocations: 0 / 0.6845 GB, free: 4.531 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.157, allocations: 4 kB / 0.6845 GB, free: 4.527 MB / 494.1 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.0005351/0.1576, allocations: 391.3 kB / 0.6848 GB, free: 4.094 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.127e-05/0.1576, allocations: 16.02 kB / 0.6849 GB, free: 4.078 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.384e-05/0.1576, allocations: 4.938 kB / 0.6849 GB, free: 4.074 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.69e-05/0.1577, allocations: 172.2 kB / 0.685 GB, free: 3.867 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.1578, allocations: 4.375 kB / 0.685 GB, free: 3.863 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.383e-05/0.1578, allocations: 8.375 kB / 0.685 GB, free: 3.855 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.158, allocations: 78.16 kB / 0.6851 GB, free: 3.773 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.158, allocations: 4.188 kB / 0.6851 GB, free: 3.77 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.1581, allocations: 7.938 kB / 0.6851 GB, free: 3.762 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.1581, allocations: 0 / 0.6851 GB, free: 3.762 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002105/0.1583, allocations: 47.95 kB / 0.6852 GB, free: 3.715 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004876/0.1588, allocations: 328.6 kB / 0.6855 GB, free: 3.344 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.1591, allocations: 86.47 kB / 0.6856 GB, free: 3.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.1592, allocations: 36.8 kB / 0.6856 GB, free: 3.211 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.1592, allocations: 0 / 0.6856 GB, free: 3.211 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.943e-05/0.1592, allocations: 38.56 kB / 0.6856 GB, free: 3.164 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.1592, allocations: 0 / 0.6856 GB, free: 3.164 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001489/0.1607, allocations: 0.6346 MB / 0.6863 GB, free: 2.438 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.1608, allocations: 55.41 kB / 0.6863 GB, free: 2.371 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.713e-05/0.1609, allocations: 113.7 kB / 0.6864 GB, free: 2.25 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.1609, allocations: 25.7 kB / 0.6864 GB, free: 2.219 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.003e-05/0.1609, allocations: 96.03 kB / 0.6865 GB, free: 2.121 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.406e-05/0.161, allocations: 39.39 kB / 0.6866 GB, free: 2.082 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.161, allocations: 25.72 kB / 0.6866 GB, free: 2.051 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.627e-05/0.1611, allocations: 318.8 kB / 0.6869 GB, free: 1.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.1612, allocations: 27.98 kB / 0.6869 GB, free: 1.703 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.1614, allocations: 39.97 kB / 0.687 GB, free: 1.664 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.1616, allocations: 72.05 kB / 0.687 GB, free: 1.594 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-06/0.1616, allocations: 7.938 kB / 0.687 GB, free: 1.586 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002883/0.1619, allocations: 109.7 kB / 0.6872 GB, free: 1.473 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.1619, allocations: 4 kB / 0.6872 GB, free: 1.469 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1619, allocations: 3.938 kB / 0.6872 GB, free: 1.465 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.162, allocations: 0 / 0.6872 GB, free: 1.465 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.1621, allocations: 35.98 kB / 0.6872 GB, free: 1.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1621, allocations: 0 / 0.6872 GB, free: 1.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.241e-05/0.1622, allocations: 11.92 kB / 0.6872 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.1622, allocations: 0 / 0.6872 GB, free: 1.418 MB / 494.1 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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.33e-05/0.1623, allocations: 117.8 kB / 0.6873 GB, free: 1.293 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.1623, allocations: 4 kB / 0.6873 GB, free: 1.289 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003448/0.1627, allocations: 133.5 kB / 0.6874 GB, free: 1.152 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1627, allocations: 12 kB / 0.6875 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1627, allocations: 0 / 0.6875 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1627, allocations: 3.938 kB / 0.6875 GB, free: 1.137 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005204/0.1633, allocations: 382.5 kB / 0.6878 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1633, allocations: 0 / 0.6878 GB, free: 0.707 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001393/0.1634, allocations: 23.98 kB / 0.6879 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1634, allocations: 0 / 0.6879 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1634, allocations: 3.938 kB / 0.6879 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1635, allocations: 15.92 kB / 0.6879 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1635, allocations: 0 / 0.6879 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004564/0.1639, allocations: 243.4 kB / 0.6881 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.652e-05/0.164, allocations: 81.02 kB / 0.6882 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.164, allocations: 15.95 kB / 0.6882 GB, free: 304 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001124/0.1641, allocations: 7.938 kB / 0.6882 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.884e-05/0.1641, allocations: 12.05 kB / 0.6882 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.1642, allocations: 7.938 kB / 0.6882 GB, free: 276 kB / 494.1 MB Notification: Performance of sorting global known variables: time 3.174e-05/0.1642, allocations: 79.47 kB / 0.6883 GB, free: 196 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1642, allocations: 0 / 0.6883 GB, free: 196 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002726/0.1645, allocations: 39.98 kB / 0.6883 GB, free: 156 kB / 494.1 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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001954/0.1647, allocations: 139.2 kB / 0.6885 GB, free: 8 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2607/0.4254, allocations: 82.95 kB / 0.6885 GB, free: 18.26 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4254, allocations: 0.875 kB / 0.6885 GB, free: 18.26 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.4256, allocations: 50.2 kB / 0.6886 GB, free: 18.26 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/0.426, allocations: 7.75 kB / 0.6886 GB, free: 18.26 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006704/0.4266, allocations: 307.1 kB / 0.6889 GB, free: 18.12 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001247/0.4268, allocations: 0.6913 MB / 0.6896 GB, free: 17.42 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.426e-05/0.4268, allocations: 11.55 kB / 0.6896 GB, free: 17.42 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.208e-05/0.4269, allocations: 18.33 kB / 0.6896 GB, free: 17.41 MB / 494.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4269, allocations: 0 / 0.6896 GB, free: 17.41 MB / 494.1 MB Notification: Performance of Templates: time 0.00403/0.4309, allocations: 1.138 MB / 0.6907 GB, free: 17.36 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)