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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",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.0008907/0.0008907, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005335/0.005335, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.286/1.286, allocations: 223.2 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001689/0.001689, allocations: 271.2 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.902/0.902, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003896, allocations: 16 kB / 0.5988 GB, free: 28.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1338, allocations: 88.53 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001124/0.135, allocations: 0.9961 MB / 0.6862 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009001/0.1359, allocations: 0.62 MB / 0.6868 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.206e-05/0.1359, allocations: 0 / 0.6868 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.1359, allocations: 3.938 kB / 0.6868 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.297e-05/0.136, allocations: 3.984 kB / 0.6868 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.1364, allocations: 123.5 kB / 0.6869 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.362e-05/0.1364, allocations: 19.92 kB / 0.687 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.573e-05/0.1365, allocations: 10.14 kB / 0.687 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.986e-05/0.1365, allocations: 7.938 kB / 0.687 GB, free: 13.17 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.607e-05/0.1366, allocations: 7.984 kB / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.918e-06/0.1366, allocations: 3.938 kB / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004467/0.137, allocations: 339.4 kB / 0.6873 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.326e-05/0.137, allocations: 12.69 kB / 0.6873 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.763e-05/0.1371, allocations: 29.7 kB / 0.6874 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002175/0.1373, allocations: 146.1 kB / 0.6875 GB, free: 12.64 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1373, allocations: 0 / 0.6875 GB, free: 12.64 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.1373, allocations: 3.984 kB / 0.6875 GB, free: 12.64 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.806e-06/0.1373, allocations: 0 / 0.6875 GB, free: 12.64 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.0003343/0.1377, allocations: 351.5 kB / 0.6878 GB, free: 12.24 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1377, allocations: 14.34 kB / 0.6878 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.982e-05/0.1377, allocations: 30.75 kB / 0.6879 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.397e-05/0.1378, allocations: 8.844 kB / 0.6879 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.1379, allocations: 176.3 kB / 0.688 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.884e-06/0.1379, allocations: 384 / 0.688 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.553e-05/0.1379, allocations: 4.375 kB / 0.6881 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.597e-05/0.138, allocations: 39.03 kB / 0.6881 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.138, allocations: 5.656 kB / 0.6881 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.138, allocations: 7.938 kB / 0.6881 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.138, allocations: 0 / 0.6881 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.292e-05/0.1381, allocations: 8 kB / 0.6881 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001569/0.1382, allocations: 158.3 kB / 0.6883 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.1384, allocations: 52.02 kB / 0.6883 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.002e-05/0.1385, allocations: 16.94 kB / 0.6883 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.1385, allocations: 4.844 kB / 0.6883 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.1385, allocations: 31.09 kB / 0.6884 GB, free: 11.58 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.1385, allocations: 1.219 kB / 0.6884 GB, free: 11.58 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005268/0.139, allocations: 306.4 kB / 0.6887 GB, free: 11.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.1391, allocations: 55.41 kB / 0.6887 GB, free: 11.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.85e-05/0.1391, allocations: 97.84 kB / 0.6888 GB, free: 11.06 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.1392, allocations: 33.7 kB / 0.6888 GB, free: 11.02 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.578e-05/0.1392, allocations: 80.14 kB / 0.6889 GB, free: 10.94 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.331e-05/0.1392, allocations: 15.66 kB / 0.6889 GB, free: 10.92 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.738e-05/0.1393, allocations: 21.7 kB / 0.6889 GB, free: 10.89 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.582e-05/0.1394, allocations: 314.8 kB / 0.6892 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.389e-05/0.1394, allocations: 12 kB / 0.6893 GB, free: 10.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.023e-05/0.1394, allocations: 15.98 kB / 0.6893 GB, free: 10.55 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.831e-05/0.1395, allocations: 28.86 kB / 0.6893 GB, free: 10.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.1395, allocations: 0 / 0.6893 GB, free: 10.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.509e-05/0.1396, allocations: 77.75 kB / 0.6894 GB, free: 10.44 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.839e-06/0.1396, allocations: 4 kB / 0.6894 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.326e-06/0.1396, allocations: 0 / 0.6894 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.1396, allocations: 7.938 kB / 0.6894 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.882e-05/0.1397, allocations: 11.94 kB / 0.6894 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.1397, allocations: 0 / 0.6894 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.616e-05/0.1397, allocations: 3.938 kB / 0.6894 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-06/0.1397, allocations: 8 kB / 0.6894 GB, free: 10.4 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.737e-05/0.1398, allocations: 115.1 kB / 0.6895 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.309e-05/0.1398, allocations: 11.84 kB / 0.6895 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.1399, allocations: 65.66 kB / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1399, allocations: 0 / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.14, allocations: 0 / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.14, allocations: 4 kB / 0.6896 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002774/0.1402, allocations: 323.3 kB / 0.6899 GB, free: 9.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1403, allocations: 0 / 0.6899 GB, free: 9.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.806e-05/0.1403, allocations: 12.12 kB / 0.6899 GB, free: 9.809 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1403, allocations: 4 kB / 0.6899 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.1403, allocations: 4 kB / 0.6899 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1403, allocations: 0 / 0.6899 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1404, allocations: 0 / 0.6899 GB, free: 9.801 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001629/0.1405, allocations: 184.4 kB / 0.6901 GB, free: 9.602 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.954e-05/0.1406, allocations: 81.02 kB / 0.6902 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.1406, allocations: 7.984 kB / 0.6902 GB, free: 9.496 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.607e-05/0.1407, allocations: 0 / 0.6902 GB, free: 9.496 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.415e-05/0.1407, allocations: 8 kB / 0.6902 GB, free: 9.488 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.1407, allocations: 0 / 0.6902 GB, free: 9.488 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.956e-05/0.1407, allocations: 79.28 kB / 0.6903 GB, free: 9.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.1407, allocations: 0 / 0.6903 GB, free: 9.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000241/0.141, allocations: 23.92 kB / 0.6903 GB, free: 9.387 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.000425/0.1414, allocations: 0.7348 MB / 0.691 GB, free: 8.625 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 8.433e-05/0.1415, allocations: 35.92 kB / 0.691 GB, free: 8.59 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1415, allocations: 0 / 0.691 GB, free: 8.59 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.642e-05/0.1415, allocations: 23.92 kB / 0.6911 GB, free: 8.566 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002061/0.1418, allocations: 8.125 kB / 0.6911 GB, free: 8.559 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.1428, allocations: 1.352 MB / 0.6924 GB, free: 7.117 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.143, allocations: 0.677 MB / 0.6931 GB, free: 6.414 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.593e-05/0.1431, allocations: 4 kB / 0.6931 GB, free: 6.41 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.1431, allocations: 15.44 kB / 0.6931 GB, free: 6.395 MB / 494.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1431, allocations: 0 / 0.6931 GB, free: 6.395 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01037/0.1535, allocations: 1.432 MB / 0.6945 GB, free: 5.188 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002584/0.1538, allocations: 264 kB / 0.6947 GB, free: 4.887 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.547/1.7, allocations: 0 / 0.6947 GB, free: 4.887 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)