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.001056/0.001056, 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.00101/0.00101, allocations: 193.4 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.239/1.239, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00209/0.00209, allocations: 286.7 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8889/0.8889, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 103.9 kB / 0.5954 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1301, allocations: 86.98 MB / 0.6803 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002237/0.1324, allocations: 1.268 MB / 0.6815 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009141/0.1333, allocations: 0.6214 MB / 0.6821 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.976e-05/0.1334, allocations: 0 / 0.6821 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.348e-05/0.1334, allocations: 0 / 0.6821 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.403e-05/0.1334, allocations: 3.938 kB / 0.6821 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005221/0.134, allocations: 147.4 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.778e-05/0.134, allocations: 19.92 kB / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.423e-05/0.1341, allocations: 0 / 0.6823 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.297e-05/0.1341, allocations: 15.94 kB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.099e-05/0.1342, allocations: 7.984 kB / 0.6823 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.1342, allocations: 0 / 0.6823 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004834/0.1347, allocations: 347.3 kB / 0.6827 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.249e-05/0.1347, allocations: 7.938 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.951e-05/0.1347, allocations: 4 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.1349, allocations: 155.8 kB / 0.6828 GB, free: 13.97 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.135, allocations: 4 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.135, allocations: 0 / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.135, allocations: 0 / 0.6828 GB, free: 13.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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003659/0.1353, allocations: 359.5 kB / 0.6832 GB, free: 13.56 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.1354, allocations: 8.031 kB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.043e-05/0.1354, allocations: 30.75 kB / 0.6832 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.751e-05/0.1355, allocations: 12.83 kB / 0.6832 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.1356, allocations: 168.3 kB / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.923e-06/0.1356, allocations: 384 / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.1356, allocations: 4.375 kB / 0.6834 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.811e-05/0.1357, allocations: 38.25 kB / 0.6834 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.1357, allocations: 3.938 kB / 0.6834 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.1357, allocations: 8 kB / 0.6834 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.888e-06/0.1357, allocations: 0 / 0.6834 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.375e-05/0.1358, allocations: 4 kB / 0.6834 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001638/0.1359, allocations: 165.6 kB / 0.6836 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.1361, allocations: 42.55 kB / 0.6836 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.321e-05/0.1362, allocations: 20.94 kB / 0.6836 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.404e-05/0.1362, allocations: 0 / 0.6836 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.1362, allocations: 38.56 kB / 0.6837 GB, free: 12.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.1362, allocations: 0 / 0.6837 GB, free: 12.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005603/0.1368, allocations: 306.5 kB / 0.684 GB, free: 12.55 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.1368, allocations: 55.39 kB / 0.684 GB, free: 12.49 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.615e-05/0.1369, allocations: 101.8 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.1369, allocations: 25.7 kB / 0.6842 GB, free: 12.35 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.486e-05/0.1369, allocations: 84.14 kB / 0.6842 GB, free: 12.26 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.137, allocations: 27.64 kB / 0.6843 GB, free: 12.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.508e-05/0.137, allocations: 17.72 kB / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.022e-05/0.1371, allocations: 310.8 kB / 0.6846 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.864e-05/0.1371, allocations: 19.92 kB / 0.6846 GB, free: 11.88 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.285e-05/0.1372, allocations: 15.98 kB / 0.6846 GB, free: 11.86 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.357e-05/0.1372, allocations: 29 kB / 0.6846 GB, free: 11.83 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/0.1372, allocations: 0 / 0.6846 GB, free: 11.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001021/0.1373, allocations: 73.53 kB / 0.6847 GB, free: 11.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.1374, allocations: 12 kB / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.1374, allocations: 0 / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.1374, allocations: 0 / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.372e-05/0.1375, allocations: 15.92 kB / 0.6847 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.1375, allocations: 0 / 0.6847 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.896e-05/0.1375, allocations: 7.938 kB / 0.6847 GB, free: 11.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-06/0.1375, allocations: 0 / 0.6847 GB, free: 11.72 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.038e-05/0.1376, allocations: 111.2 kB / 0.6848 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.205e-05/0.1376, allocations: 7.938 kB / 0.6849 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001328/0.1377, allocations: 77.58 kB / 0.6849 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1377, allocations: 0 / 0.6849 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1377, allocations: 4.125 kB / 0.6849 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1377, allocations: 0 / 0.6849 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002806/0.138, allocations: 315.4 kB / 0.6852 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.138, allocations: 0 / 0.6852 GB, free: 11.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.052e-05/0.1381, allocations: 11.98 kB / 0.6852 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.778e-06/0.1381, allocations: 4 kB / 0.6852 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.1381, allocations: 7.938 kB / 0.6853 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1381, allocations: 4.031 kB / 0.6853 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1381, allocations: 0 / 0.6853 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001776/0.1383, allocations: 180.2 kB / 0.6854 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.1384, allocations: 81.09 kB / 0.6855 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.1384, allocations: 4.031 kB / 0.6855 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.822e-05/0.1385, allocations: 0 / 0.6855 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.903e-05/0.1385, allocations: 12.05 kB / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.1385, allocations: 4 kB / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.297e-05/0.1386, allocations: 79.28 kB / 0.6856 GB, free: 10.72 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1386, allocations: 0 / 0.6856 GB, free: 10.72 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002427/0.1388, allocations: 16 kB / 0.6856 GB, free: 10.71 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.0004822/0.1393, allocations: 0.7367 MB / 0.6863 GB, free: 9.941 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001138/0.1394, allocations: 43.92 kB / 0.6864 GB, free: 9.898 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1394, allocations: 0 / 0.6864 GB, free: 9.898 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.934e-05/0.1395, allocations: 16 kB / 0.6864 GB, free: 9.883 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.1397, allocations: 0 / 0.6864 GB, free: 9.883 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.1408, allocations: 1.319 MB / 0.6877 GB, free: 8.48 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.1411, allocations: 0.6862 MB / 0.6884 GB, free: 7.77 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.104e-05/0.1411, allocations: 8 kB / 0.6884 GB, free: 7.762 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.803e-05/0.1412, allocations: 15.44 kB / 0.6884 GB, free: 7.746 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1412, allocations: 0 / 0.6884 GB, free: 7.746 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01733/0.1585, allocations: 1.627 MB / 0.69 GB, free: 6.297 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.735/6.893, allocations: 5.938 kB / 0.69 GB, free: 6.293 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)