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.001029/0.001029, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009539/0.000954, allocations: 194 kB / 16.53 MB, free: 6.391 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.253/1.253, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002059/0.00206, allocations: 283 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8957/0.8957, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 95.11 kB / 0.5953 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1321, allocations: 86.99 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00213/0.1343, allocations: 1.284 MB / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000935/0.1353, allocations: 0.6111 MB / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.299e-05/0.1353, allocations: 0 / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.561e-05/0.1353, allocations: 0 / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.209e-05/0.1354, allocations: 7.938 kB / 0.6822 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004737/0.1358, allocations: 151.4 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.343e-05/0.1359, allocations: 27.92 kB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.727e-05/0.1359, allocations: 0 / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.944e-05/0.136, allocations: 15.92 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.78e-05/0.136, allocations: 19.92 kB / 0.6824 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.083e-05/0.1361, allocations: 0 / 0.6824 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004659/0.1365, allocations: 347.3 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.213e-05/0.1365, allocations: 4 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.51e-05/0.1366, allocations: 15.92 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.1368, allocations: 155.8 kB / 0.6829 GB, free: 13.95 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1368, allocations: 4 kB / 0.6829 GB, free: 13.95 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1368, allocations: 0 / 0.6829 GB, free: 13.95 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.1368, allocations: 0 / 0.6829 GB, free: 13.95 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.0003682/0.1372, allocations: 367.5 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.1373, allocations: 8.031 kB / 0.6832 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.096e-05/0.1373, allocations: 34.75 kB / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.929e-05/0.1373, allocations: 8.844 kB / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.516e-05/0.1374, allocations: 164.3 kB / 0.6834 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.1374, allocations: 4.375 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.1375, allocations: 384 / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001117/0.1376, allocations: 62.16 kB / 0.6835 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1376, allocations: 7.875 kB / 0.6835 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-06/0.1376, allocations: 0 / 0.6835 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1376, allocations: 8 kB / 0.6835 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.685e-05/0.1377, allocations: 19.92 kB / 0.6835 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.1378, allocations: 161.7 kB / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.431e-05/0.138, allocations: 58.56 kB / 0.6837 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.133e-05/0.138, allocations: 28.84 kB / 0.6838 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.138, allocations: 0 / 0.6838 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.1381, allocations: 42.5 kB / 0.6838 GB, free: 12.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.1381, allocations: 0 / 0.6838 GB, free: 12.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001037/0.1391, allocations: 0.5877 MB / 0.6844 GB, free: 12.14 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.1391, allocations: 55.41 kB / 0.6844 GB, free: 12.07 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.506e-05/0.1392, allocations: 105.8 kB / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.37e-05/0.1392, allocations: 25.7 kB / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.864e-05/0.1393, allocations: 80.14 kB / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.621e-05/0.1393, allocations: 43.44 kB / 0.6847 GB, free: 11.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.861e-05/0.1394, allocations: 25.72 kB / 0.6847 GB, free: 11.77 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.69e-05/0.1395, allocations: 318.8 kB / 0.685 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.753e-05/0.1395, allocations: 20 kB / 0.685 GB, free: 11.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.525e-05/0.1396, allocations: 19.98 kB / 0.685 GB, free: 11.41 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.807e-05/0.1397, allocations: 59.61 kB / 0.6851 GB, free: 11.35 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1397, allocations: 0 / 0.6851 GB, free: 11.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001339/0.1398, allocations: 101.5 kB / 0.6852 GB, free: 11.25 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.1398, allocations: 8 kB / 0.6852 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1398, allocations: 3.984 kB / 0.6852 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.1398, allocations: 0 / 0.6852 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.1399, allocations: 23.98 kB / 0.6852 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.14, allocations: 4 kB / 0.6852 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.247e-05/0.14, allocations: 0 / 0.6852 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-06/0.14, allocations: 8 kB / 0.6852 GB, free: 11.2 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.988e-05/0.1401, allocations: 119.1 kB / 0.6853 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.747e-05/0.1401, allocations: 11.84 kB / 0.6854 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001861/0.1403, allocations: 105.6 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.1403, allocations: 7.984 kB / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1403, allocations: 0 / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1403, allocations: 0 / 0.6855 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003414/0.1407, allocations: 350.7 kB / 0.6858 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1407, allocations: 7.938 kB / 0.6858 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.933e-05/0.1408, allocations: 16 kB / 0.6858 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.1408, allocations: 0 / 0.6858 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.1408, allocations: 11.98 kB / 0.6858 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1408, allocations: 0 / 0.6858 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1408, allocations: 0 / 0.6858 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002222/0.141, allocations: 219.4 kB / 0.686 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.607e-05/0.1411, allocations: 81.14 kB / 0.6861 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1411, allocations: 4.062 kB / 0.6861 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.382e-05/0.1412, allocations: 3.984 kB / 0.6861 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.555e-05/0.1412, allocations: 8 kB / 0.6861 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.1412, allocations: 4 kB / 0.6861 GB, free: 10.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.979e-05/0.1413, allocations: 83.22 kB / 0.6862 GB, free: 10.08 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1413, allocations: 0 / 0.6862 GB, free: 10.08 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002517/0.1415, allocations: 39.92 kB / 0.6863 GB, free: 10.04 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.0005348/0.1421, allocations: 0.7866 MB / 0.687 GB, free: 9.23 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.1422, allocations: 70.59 kB / 0.6871 GB, free: 9.164 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1422, allocations: 0 / 0.6871 GB, free: 9.164 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.518e-05/0.1423, allocations: 28 kB / 0.6871 GB, free: 9.137 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002091/0.1425, allocations: 9.625 kB / 0.6871 GB, free: 9.129 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.1438, allocations: 1.495 MB / 0.6886 GB, free: 7.559 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002252/0.144, allocations: 0.6884 MB / 0.6893 GB, free: 6.844 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.274e-05/0.1441, allocations: 7.938 kB / 0.6893 GB, free: 6.836 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.561e-05/0.1441, allocations: 23.42 kB / 0.6893 GB, free: 6.812 MB / 494.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1441, allocations: 4 kB / 0.6893 GB, free: 6.809 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01801/0.1622, allocations: 2.041 MB / 0.6913 GB, free: 4.926 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.877/7.039, allocations: 16.22 kB / 0.6913 GB, free: 4.914 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)