Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 103.9 kB / 16.35 MB, free: 5.875 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.001683/0.001683, allocations: 195.5 kB / 17.29 MB, free: 5.516 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 14.97 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00217/0.00217, allocations: 285.3 kB / 291.4 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9609/0.9609, allocations: 169.3 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001726/0.001726, allocations: 97.55 kB / 0.5967 GB, free: 14.4 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1561, allocations: 86.98 MB / 0.6816 GB, free: 7.418 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002295/0.1584, allocations: 1.262 MB / 0.6828 GB, free: 6.145 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009395/0.1594, allocations: 0.615 MB / 0.6834 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.21e-05/0.1594, allocations: 0 / 0.6834 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.456e-05/0.1594, allocations: 0 / 0.6834 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.338e-05/0.1595, allocations: 3.938 kB / 0.6834 GB, free: 5.523 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005318/0.16, allocations: 154.4 kB / 0.6836 GB, free: 5.375 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.679e-05/0.1601, allocations: 23.92 kB / 0.6836 GB, free: 5.352 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.404e-05/0.1601, allocations: 0 / 0.6836 GB, free: 5.352 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.388e-05/0.1602, allocations: 11.94 kB / 0.6836 GB, free: 5.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.536e-05/0.1602, allocations: 7.984 kB / 0.6836 GB, free: 5.332 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.014e-05/0.1602, allocations: 0 / 0.6836 GB, free: 5.332 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004757/0.1607, allocations: 347.3 kB / 0.684 GB, free: 4.992 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.097e-05/0.1607, allocations: 3.938 kB / 0.684 GB, free: 4.988 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.204e-05/0.1608, allocations: 8 kB / 0.684 GB, free: 4.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002397/0.161, allocations: 155.6 kB / 0.6841 GB, free: 4.828 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.161, allocations: 4 kB / 0.6841 GB, free: 4.824 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.161, allocations: 0 / 0.6841 GB, free: 4.824 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.161, allocations: 0 / 0.6841 GB, free: 4.824 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003467/0.1614, allocations: 359.4 kB / 0.6845 GB, free: 4.422 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.1614, allocations: 8.031 kB / 0.6845 GB, free: 4.414 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.1615, allocations: 0.9375 kB / 0.6845 GB, free: 4.414 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.1616, allocations: 172.3 kB / 0.6846 GB, free: 4.207 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.1616, allocations: 4.312 kB / 0.6846 GB, free: 4.203 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/0.1616, allocations: 8.375 kB / 0.6847 GB, free: 4.195 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.959e-05/0.1617, allocations: 38.25 kB / 0.6847 GB, free: 4.152 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.231e-06/0.1617, allocations: 192 / 0.6847 GB, free: 4.152 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.1617, allocations: 3.938 kB / 0.6847 GB, free: 4.148 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1618, allocations: 3.984 kB / 0.6847 GB, free: 4.145 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.616e-05/0.1618, allocations: 12 kB / 0.6847 GB, free: 4.133 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001406/0.1619, allocations: 153.7 kB / 0.6849 GB, free: 3.934 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.1621, allocations: 54.55 kB / 0.6849 GB, free: 3.871 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.172e-05/0.1622, allocations: 16.94 kB / 0.6849 GB, free: 3.852 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.1622, allocations: 4 kB / 0.6849 GB, free: 3.848 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.1622, allocations: 30.56 kB / 0.685 GB, free: 3.809 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.1622, allocations: 0 / 0.685 GB, free: 3.809 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005511/0.1628, allocations: 310.1 kB / 0.6853 GB, free: 3.453 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.1628, allocations: 59.41 kB / 0.6853 GB, free: 3.383 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.381e-05/0.1629, allocations: 97.84 kB / 0.6854 GB, free: 3.277 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.1629, allocations: 29.7 kB / 0.6854 GB, free: 3.242 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.378e-05/0.1629, allocations: 84.14 kB / 0.6855 GB, free: 3.156 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.163, allocations: 11.72 kB / 0.6855 GB, free: 3.145 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.163, allocations: 25.7 kB / 0.6856 GB, free: 3.113 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.739e-05/0.1631, allocations: 314.8 kB / 0.6859 GB, free: 2.797 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.665e-05/0.1631, allocations: 11.98 kB / 0.6859 GB, free: 2.785 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.454e-05/0.1632, allocations: 19.91 kB / 0.6859 GB, free: 2.766 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.947e-05/0.1632, allocations: 36.86 kB / 0.6859 GB, free: 2.727 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.1632, allocations: 0 / 0.6859 GB, free: 2.727 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.276e-05/0.1633, allocations: 61.69 kB / 0.686 GB, free: 2.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.273e-05/0.1634, allocations: 7.938 kB / 0.686 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.1634, allocations: 0 / 0.686 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.1634, allocations: 4 kB / 0.686 GB, free: 2.648 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.035e-05/0.1634, allocations: 11.98 kB / 0.686 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.1634, allocations: 0 / 0.686 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.123e-05/0.1635, allocations: 4 kB / 0.686 GB, free: 2.633 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.1635, allocations: 11.88 kB / 0.686 GB, free: 2.621 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 (7): * Single equations (assignments): 7 * 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 6.82e-05/0.1636, allocations: 113.8 kB / 0.6861 GB, free: 2.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.1636, allocations: 11.84 kB / 0.6861 GB, free: 2.488 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.1637, allocations: 73.64 kB / 0.6862 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1637, allocations: 0 / 0.6862 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.1637, allocations: 0 / 0.6862 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1637, allocations: 0 / 0.6862 GB, free: 2.406 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.164, allocations: 319.3 kB / 0.6865 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1641, allocations: 4.031 kB / 0.6865 GB, free: 2.031 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.913e-05/0.1641, allocations: 8 kB / 0.6865 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.1641, allocations: 0 / 0.6865 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.1641, allocations: 7.984 kB / 0.6865 GB, free: 2.016 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1641, allocations: 0 / 0.6865 GB, free: 2.016 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.1642, allocations: 4.125 kB / 0.6865 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001624/0.1643, allocations: 180.9 kB / 0.6867 GB, free: 1.816 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.943e-05/0.1644, allocations: 89.06 kB / 0.6868 GB, free: 1.711 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.1644, allocations: 8 kB / 0.6868 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.051e-05/0.1645, allocations: 0 / 0.6868 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.575e-05/0.1645, allocations: 0 / 0.6868 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.1645, allocations: 7.984 kB / 0.6868 GB, free: 1.695 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.15e-05/0.1645, allocations: 83.27 kB / 0.6869 GB, free: 1.613 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1646, allocations: 0 / 0.6869 GB, free: 1.613 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002428/0.1648, allocations: 20 kB / 0.6869 GB, free: 1.594 MB / 494.1 MB 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 (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.0001599/0.165, allocations: 127.2 kB / 0.687 GB, free: 1.461 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.505e-05/0.1651, allocations: 35.98 kB / 0.6871 GB, free: 1.426 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1651, allocations: 0 / 0.6871 GB, free: 1.426 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.873e-05/0.1651, allocations: 19.94 kB / 0.6871 GB, free: 1.406 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/0.1653, allocations: 11.92 kB / 0.6871 GB, free: 1.395 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003448/0.1657, allocations: 176.2 kB / 0.6873 GB, free: 1.195 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.1659, allocations: 0.6807 MB / 0.6879 GB, free: 500 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.734e-05/0.1659, allocations: 8.125 kB / 0.6879 GB, free: 492 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.687e-05/0.166, allocations: 15.44 kB / 0.6879 GB, free: 480 kB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.166, allocations: 0 / 0.6879 GB, free: 480 kB / 494.1 MB Notification: Performance of Templates: time 0.2309/0.3969, allocations: 0.6538 MB / 0.6886 GB, free: 17.5 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)