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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.0007156/0.0007156, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.0043/0.0043, allocations: 172.2 kB / 16.27 MB, free: 6.66 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: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001693/0.001693, allocations: 266.2 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8941/0.8941, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003967/0.0003967, allocations: 17.23 kB / 0.5988 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1397, allocations: 88.54 MB / 0.6852 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001354/0.1411, allocations: 1.188 MB / 0.6864 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009329/0.142, allocations: 0.6376 MB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.961e-05/0.1421, allocations: 1.938 kB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.674e-05/0.1421, allocations: 0 / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.29e-05/0.1421, allocations: 7.922 kB / 0.687 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004186/0.1426, allocations: 135.6 kB / 0.6872 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.649e-05/0.1426, allocations: 51.84 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.642e-05/0.1427, allocations: 0.8438 kB / 0.6872 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.961e-05/0.1427, allocations: 26.33 kB / 0.6872 GB, free: 12.91 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.309e-05/0.1428, allocations: 35.83 kB / 0.6873 GB, free: 12.88 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.342e-05/0.1428, allocations: 4 kB / 0.6873 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004349/0.1432, allocations: 339.3 kB / 0.6876 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.499e-05/0.1433, allocations: 11.98 kB / 0.6876 GB, free: 12.53 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.878e-05/0.1433, allocations: 49.56 kB / 0.6877 GB, free: 12.47 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.1435, allocations: 176 kB / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.1436, allocations: 0 / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1436, allocations: 2.344 kB / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.1436, allocations: 0 / 0.6878 GB, free: 12.3 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.0004935/0.1441, allocations: 396 kB / 0.6882 GB, free: 11.86 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.1441, allocations: 8.031 kB / 0.6882 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.249e-05/0.1442, allocations: 39.39 kB / 0.6883 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.541e-05/0.1442, allocations: 6.125 kB / 0.6883 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.38e-05/0.1443, allocations: 176.2 kB / 0.6884 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.1443, allocations: 4.375 kB / 0.6884 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.1443, allocations: 11.78 kB / 0.6884 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.1446, allocations: 78.22 kB / 0.6885 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.1446, allocations: 3.938 kB / 0.6885 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.1446, allocations: 4 kB / 0.6885 GB, free: 11.49 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.1446, allocations: 3.938 kB / 0.6885 GB, free: 11.49 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/0.1449, allocations: 58.11 kB / 0.6886 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004786/0.1454, allocations: 326.8 kB / 0.6889 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002843/0.1457, allocations: 91.97 kB / 0.689 GB, free: 10.97 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.1458, allocations: 40.92 kB / 0.689 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.1458, allocations: 3.984 kB / 0.689 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.1458, allocations: 38.56 kB / 0.6891 GB, free: 10.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.1458, allocations: 0 / 0.6891 GB, free: 10.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001525/0.1474, allocations: 0.6618 MB / 0.6897 GB, free: 10.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.1474, allocations: 51.41 kB / 0.6898 GB, free: 10.06 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.3e-05/0.1475, allocations: 109.8 kB / 0.6899 GB, free: 9.941 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.1475, allocations: 33.64 kB / 0.6899 GB, free: 9.902 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.511e-05/0.1475, allocations: 88.05 kB / 0.69 GB, free: 9.812 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.674e-05/0.1476, allocations: 43.39 kB / 0.69 GB, free: 9.77 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.1476, allocations: 13.72 kB / 0.69 GB, free: 9.75 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.776e-05/0.1477, allocations: 322.8 kB / 0.6903 GB, free: 9.426 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.1478, allocations: 31.92 kB / 0.6904 GB, free: 9.395 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.148, allocations: 44.09 kB / 0.6904 GB, free: 9.352 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002526/0.1482, allocations: 88.08 kB / 0.6905 GB, free: 9.266 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.1482, allocations: 0 / 0.6905 GB, free: 9.266 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000309/0.1486, allocations: 121.6 kB / 0.6906 GB, free: 9.141 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1486, allocations: 4 kB / 0.6906 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.1486, allocations: 0 / 0.6906 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/0.1486, allocations: 0 / 0.6906 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.1488, allocations: 35.92 kB / 0.6906 GB, free: 9.102 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.423e-06/0.1488, allocations: 7.922 kB / 0.6907 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.946e-05/0.1489, allocations: 11.98 kB / 0.6907 GB, free: 9.082 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.1489, allocations: 4 kB / 0.6907 GB, free: 9.078 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 7.291e-05/0.1489, allocations: 119.2 kB / 0.6908 GB, free: 8.953 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.742e-05/0.149, allocations: 4 kB / 0.6908 GB, free: 8.949 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003739/0.1494, allocations: 141.7 kB / 0.6909 GB, free: 8.805 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1494, allocations: 8 kB / 0.6909 GB, free: 8.797 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1494, allocations: 7.922 kB / 0.6909 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1494, allocations: 0 / 0.6909 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000523/0.1499, allocations: 378.5 kB / 0.6913 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1499, allocations: 3.984 kB / 0.6913 GB, free: 8.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.1501, allocations: 35.92 kB / 0.6913 GB, free: 8.324 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1501, allocations: 3.938 kB / 0.6913 GB, free: 8.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.1501, allocations: 0 / 0.6913 GB, free: 8.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1501, allocations: 11.94 kB / 0.6914 GB, free: 8.309 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1501, allocations: 0 / 0.6914 GB, free: 8.309 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004847/0.1506, allocations: 263.7 kB / 0.6916 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.606e-05/0.1507, allocations: 81.02 kB / 0.6917 GB, free: 7.938 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.858e-05/0.1507, allocations: 7.938 kB / 0.6917 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.1508, allocations: 12.02 kB / 0.6917 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.745e-05/0.1508, allocations: 7.984 kB / 0.6917 GB, free: 7.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.1508, allocations: 8 kB / 0.6917 GB, free: 7.902 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.989e-05/0.1509, allocations: 79.34 kB / 0.6918 GB, free: 7.824 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1509, allocations: 4 kB / 0.6918 GB, free: 7.82 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002648/0.1512, allocations: 36 kB / 0.6918 GB, free: 7.785 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 (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.0007949/0.152, allocations: 0.8332 MB / 0.6926 GB, free: 6.926 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003024/0.1523, allocations: 95.83 kB / 0.6927 GB, free: 6.832 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1523, allocations: 4.062 kB / 0.6927 GB, free: 6.828 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.1524, allocations: 47.91 kB / 0.6928 GB, free: 6.781 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.1527, allocations: 12 kB / 0.6928 GB, free: 6.77 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/0.1546, allocations: 1.673 MB / 0.6944 GB, free: 5.02 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.1548, allocations: 0.7003 MB / 0.6951 GB, free: 4.293 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.674e-05/0.1549, allocations: 12.61 kB / 0.6951 GB, free: 4.281 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.808e-05/0.1549, allocations: 27.42 kB / 0.6952 GB, free: 4.254 MB / 494.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1549, allocations: 0 / 0.6952 GB, free: 4.254 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01107/0.166, allocations: 2.1 MB / 0.6972 GB, free: 2.379 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000248/0.1663, allocations: 264.2 kB / 0.6975 GB, free: 2.051 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.516/1.683, allocations: 3.938 kB / 0.6975 GB, free: 2.047 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)