Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.001153/0.001153, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001286/0.001286, allocations: 193.4 kB / 16.25 MB, free: 6.629 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.316/1.316, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001939/0.001939, allocations: 290.7 kB / 290.3 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8763/0.8763, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 94.67 kB / 0.5948 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1371, allocations: 86.98 MB / 0.6797 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002042/0.1392, allocations: 1.337 MB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008496/0.14, allocations: 0.6185 MB / 0.6816 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.747e-05/0.1401, allocations: 3.938 kB / 0.6816 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.514e-05/0.1401, allocations: 0.7188 kB / 0.6816 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.473e-05/0.1401, allocations: 3.938 kB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004607/0.1406, allocations: 135.6 kB / 0.6818 GB, free: 14.86 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.61e-05/0.1407, allocations: 23.92 kB / 0.6818 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.448e-05/0.1407, allocations: 4.625 kB / 0.6818 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.097e-05/0.1407, allocations: 15.92 kB / 0.6818 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.472e-05/0.1408, allocations: 19.91 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.1408, allocations: 4 kB / 0.6818 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00044/0.1412, allocations: 339.3 kB / 0.6822 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.792e-05/0.1413, allocations: 11.98 kB / 0.6822 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.07e-05/0.1413, allocations: 11.94 kB / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.1415, allocations: 155.8 kB / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1415, allocations: 0 / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1415, allocations: 0 / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.1415, allocations: 0 / 0.6823 GB, free: 14.28 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000356/0.1419, allocations: 363.5 kB / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.1419, allocations: 8.031 kB / 0.6827 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.09e-05/0.142, allocations: 38.75 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.502e-05/0.142, allocations: 4.844 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.924e-05/0.1421, allocations: 180.3 kB / 0.6829 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.1421, allocations: 384 / 0.6829 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.044e-05/0.1421, allocations: 12.31 kB / 0.6829 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.959e-05/0.1422, allocations: 50.19 kB / 0.683 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.1423, allocations: 3.938 kB / 0.683 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.968e-06/0.1423, allocations: 4 kB / 0.683 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.586e-06/0.1423, allocations: 4 kB / 0.683 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.152e-05/0.1423, allocations: 19.98 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001376/0.1425, allocations: 157.7 kB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.904e-05/0.1426, allocations: 62.55 kB / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.915e-05/0.1426, allocations: 20.86 kB / 0.6832 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.137e-05/0.1427, allocations: 7.984 kB / 0.6832 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.59e-05/0.1427, allocations: 46.5 kB / 0.6833 GB, free: 13.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.1427, allocations: 0 / 0.6833 GB, free: 13.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009912/0.1437, allocations: 0.5915 MB / 0.6839 GB, free: 12.46 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.897e-05/0.1437, allocations: 51.5 kB / 0.6839 GB, free: 12.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.376e-05/0.1438, allocations: 101.8 kB / 0.684 GB, free: 12.29 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.1438, allocations: 25.7 kB / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.595e-05/0.1438, allocations: 84.14 kB / 0.6841 GB, free: 12.17 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.1439, allocations: 39.45 kB / 0.6841 GB, free: 12.13 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.1439, allocations: 25.72 kB / 0.6842 GB, free: 12.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.628e-05/0.144, allocations: 314.8 kB / 0.6845 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.855e-05/0.1441, allocations: 23.98 kB / 0.6845 GB, free: 11.76 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.379e-05/0.1441, allocations: 20.12 kB / 0.6845 GB, free: 11.74 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.239e-05/0.1442, allocations: 63.47 kB / 0.6846 GB, free: 11.68 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.1442, allocations: 4 kB / 0.6846 GB, free: 11.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000142/0.1444, allocations: 97.56 kB / 0.6847 GB, free: 11.57 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.1444, allocations: 4 kB / 0.6847 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.1444, allocations: 0 / 0.6847 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.1444, allocations: 0 / 0.6847 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.159e-05/0.1445, allocations: 23.98 kB / 0.6847 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.1445, allocations: 0 / 0.6847 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.339e-05/0.1445, allocations: 0 / 0.6847 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.1445, allocations: 8 kB / 0.6847 GB, free: 11.54 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 6.553e-05/0.1446, allocations: 123.1 kB / 0.6848 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.1446, allocations: 7.844 kB / 0.6848 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001757/0.1448, allocations: 105.6 kB / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1448, allocations: 0 / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1448, allocations: 0 / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1448, allocations: 0 / 0.6849 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003453/0.1452, allocations: 362.5 kB / 0.6853 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1452, allocations: 4 kB / 0.6853 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.803e-05/0.1453, allocations: 23.98 kB / 0.6853 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.1453, allocations: 11.92 kB / 0.6853 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-06/0.1453, allocations: 0 / 0.6853 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1453, allocations: 0 / 0.6853 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1453, allocations: 0 / 0.6853 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002187/0.1456, allocations: 223.3 kB / 0.6855 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.966e-05/0.1456, allocations: 77.11 kB / 0.6856 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.1456, allocations: 8.094 kB / 0.6856 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.235e-05/0.1457, allocations: 4 kB / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.1458, allocations: 11.92 kB / 0.6856 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/0.1458, allocations: 4 kB / 0.6856 GB, free: 10.49 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.437e-05/0.1458, allocations: 75.28 kB / 0.6857 GB, free: 10.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1458, allocations: 0 / 0.6857 GB, free: 10.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002541/0.1461, allocations: 39.94 kB / 0.6857 GB, free: 10.38 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_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.000571/0.1466, allocations: 0.7827 MB / 0.6865 GB, free: 9.566 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001499/0.1468, allocations: 71.84 kB / 0.6866 GB, free: 9.496 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1468, allocations: 0 / 0.6866 GB, free: 9.496 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.564e-05/0.1469, allocations: 35.98 kB / 0.6866 GB, free: 9.461 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.1471, allocations: 10.25 kB / 0.6866 GB, free: 9.453 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.1484, allocations: 1.502 MB / 0.6881 GB, free: 7.875 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.1486, allocations: 0.6884 MB / 0.6888 GB, free: 7.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.482e-05/0.1487, allocations: 11.92 kB / 0.6888 GB, free: 7.148 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/0.1487, allocations: 19.44 kB / 0.6888 GB, free: 7.129 MB / 494.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1487, allocations: 4 kB / 0.6888 GB, free: 7.125 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01154/0.1603, allocations: 1.971 MB / 0.6907 GB, free: 5.355 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.1605, allocations: 258.6 kB / 0.691 GB, free: 5.105 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.601/1.762, allocations: 3.938 kB / 0.691 GB, free: 5.102 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)