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.0008076/0.0008076, 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.0008812/0.0008813, 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.321/1.321, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001749/0.001749, allocations: 278.3 kB / 291.4 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9581/0.9581, allocations: 169.5 MB / 0.5 GB, free: 14.22 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003977/0.0003977, allocations: 16.75 kB / 0.598 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1387, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001391/0.1401, allocations: 1.175 MB / 0.6856 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009109/0.1411, allocations: 0.5806 MB / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.712e-05/0.1411, allocations: 0 / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.826e-05/0.1411, allocations: 7.453 kB / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.184e-05/0.1412, allocations: 3.938 kB / 0.6862 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.1416, allocations: 131.6 kB / 0.6863 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.282e-05/0.1417, allocations: 47.84 kB / 0.6864 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.267e-05/0.1418, allocations: 4 kB / 0.6864 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.274e-05/0.1418, allocations: 20.55 kB / 0.6864 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.963e-05/0.1419, allocations: 27.91 kB / 0.6864 GB, free: 13.47 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.1419, allocations: 4.625 kB / 0.6864 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004652/0.1424, allocations: 339.3 kB / 0.6868 GB, free: 13.13 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.817e-05/0.1424, allocations: 8.547 kB / 0.6868 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.465e-05/0.1424, allocations: 34.52 kB / 0.6868 GB, free: 13.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.1426, allocations: 123.9 kB / 0.6869 GB, free: 12.96 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1426, allocations: 1.656 kB / 0.6869 GB, free: 12.96 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1426, allocations: 0 / 0.6869 GB, free: 12.96 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.1427, allocations: 0 / 0.6869 GB, free: 12.96 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.000495/0.1432, allocations: 393.1 kB / 0.6873 GB, free: 12.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.1432, allocations: 12.03 kB / 0.6873 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.1432, allocations: 7.953 kB / 0.6873 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001043/0.1433, allocations: 171.4 kB / 0.6875 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.1434, allocations: 6.438 kB / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.1434, allocations: 8 kB / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002202/0.1436, allocations: 82.27 kB / 0.6876 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.1436, allocations: 0 / 0.6876 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.1437, allocations: 0.6562 kB / 0.6876 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.004e-06/0.1437, allocations: 7.984 kB / 0.6876 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002167/0.1439, allocations: 65.75 kB / 0.6876 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005057/0.1444, allocations: 324.2 kB / 0.688 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.1447, allocations: 85.12 kB / 0.688 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.1448, allocations: 33.88 kB / 0.6881 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.1448, allocations: 9.047 kB / 0.6881 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.1449, allocations: 30.56 kB / 0.6881 GB, free: 11.61 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.1449, allocations: 0.9688 kB / 0.6881 GB, free: 11.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001521/0.1464, allocations: 0.6774 MB / 0.6888 GB, free: 10.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.1464, allocations: 55.41 kB / 0.6888 GB, free: 10.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.66e-05/0.1465, allocations: 101.8 kB / 0.6889 GB, free: 10.66 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.1465, allocations: 25.7 kB / 0.6889 GB, free: 10.63 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.122e-05/0.1466, allocations: 96.05 kB / 0.689 GB, free: 10.53 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.1466, allocations: 39.39 kB / 0.6891 GB, free: 10.49 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-06/0.1466, allocations: 4 kB / 0.6891 GB, free: 10.49 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.1467, allocations: 314.8 kB / 0.6894 GB, free: 10.17 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1469, allocations: 35.98 kB / 0.6894 GB, free: 10.14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.147, allocations: 42.22 kB / 0.6895 GB, free: 10.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001233/0.1471, allocations: 44.05 kB / 0.6895 GB, free: 10.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.1471, allocations: 0 / 0.6895 GB, free: 10.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000301/0.1475, allocations: 125.5 kB / 0.6896 GB, free: 9.926 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.1475, allocations: 4 kB / 0.6896 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1475, allocations: 4 kB / 0.6896 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.1475, allocations: 4 kB / 0.6896 GB, free: 9.914 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.1476, allocations: 23.98 kB / 0.6896 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.1477, allocations: 4 kB / 0.6897 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.257e-05/0.1477, allocations: 11.98 kB / 0.6897 GB, free: 9.875 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-06/0.1477, allocations: 4 kB / 0.6897 GB, free: 9.871 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.377e-05/0.1478, allocations: 114.5 kB / 0.6898 GB, free: 9.75 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.848e-05/0.1479, allocations: 11.86 kB / 0.6898 GB, free: 9.738 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003554/0.1482, allocations: 137.5 kB / 0.6899 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.1482, allocations: 4 kB / 0.6899 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1483, allocations: 0 / 0.6899 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1483, allocations: 0 / 0.6899 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005256/0.1488, allocations: 394.4 kB / 0.6903 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1488, allocations: 0 / 0.6903 GB, free: 9.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.1489, allocations: 35.97 kB / 0.6903 GB, free: 9.117 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.149, allocations: 0 / 0.6903 GB, free: 9.117 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.149, allocations: 0 / 0.6903 GB, free: 9.117 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.149, allocations: 8 kB / 0.6903 GB, free: 9.109 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.149, allocations: 0 / 0.6903 GB, free: 9.109 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004658/0.1495, allocations: 267.3 kB / 0.6906 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.236e-05/0.1495, allocations: 89.14 kB / 0.6907 GB, free: 8.727 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.1495, allocations: 0 / 0.6907 GB, free: 8.727 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.1497, allocations: 11.98 kB / 0.6907 GB, free: 8.715 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.132e-05/0.1497, allocations: 11.98 kB / 0.6907 GB, free: 8.703 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.1497, allocations: 3.984 kB / 0.6907 GB, free: 8.699 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.129e-05/0.1497, allocations: 79.28 kB / 0.6908 GB, free: 8.621 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1497, allocations: 0 / 0.6908 GB, free: 8.621 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002691/0.15, allocations: 40 kB / 0.6908 GB, free: 8.582 MB / 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 (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.0001838/0.1502, allocations: 135.2 kB / 0.6909 GB, free: 8.441 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002977/0.1505, allocations: 95.02 kB / 0.691 GB, free: 8.352 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.1505, allocations: 4 kB / 0.691 GB, free: 8.348 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.1507, allocations: 55.91 kB / 0.6911 GB, free: 8.293 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.1509, allocations: 11.95 kB / 0.6911 GB, free: 8.281 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006056/0.1516, allocations: 377.3 kB / 0.6915 GB, free: 7.883 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002261/0.1518, allocations: 0.6887 MB / 0.6921 GB, free: 7.168 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.818e-05/0.1519, allocations: 16.61 kB / 0.6922 GB, free: 7.152 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.909e-05/0.1519, allocations: 15.44 kB / 0.6922 GB, free: 7.137 MB / 494.1 MB Notification: Performance of SimCode: time 3e-07/0.1519, allocations: 0 / 0.6922 GB, free: 7.137 MB / 494.1 MB Notification: Performance of Templates: time 0.003204/0.1551, allocations: 1.076 MB / 0.6932 GB, free: 6.105 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)