Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.001035/0.001035, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001078/0.001078, allocations: 196.9 kB / 16.14 MB, free: 6.715 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.291/1.291, allocations: 222.9 MB / 239.8 MB, free: 4.656 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002234/0.002234, allocations: 278.9 kB / 290.2 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9367/0.9367, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 93.05 kB / 0.5946 GB, free: 28.44 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1366, allocations: 86.99 MB / 0.6796 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002084/0.1387, allocations: 1.318 MB / 0.6808 GB, free: 15.79 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009086/0.1396, allocations: 0.6301 MB / 0.6815 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.276e-05/0.1396, allocations: 0 / 0.6815 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.698e-05/0.1397, allocations: 0 / 0.6815 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.701e-05/0.1397, allocations: 8.672 kB / 0.6815 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.1401, allocations: 124.2 kB / 0.6816 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.124e-05/0.1402, allocations: 23.86 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.167e-05/0.1402, allocations: 4 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.647e-05/0.1402, allocations: 4 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.999e-05/0.1403, allocations: 15.92 kB / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.718e-06/0.1403, allocations: 0 / 0.6816 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004277/0.1407, allocations: 343.3 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.1407, allocations: 4 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.907e-05/0.1408, allocations: 3.938 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.141, allocations: 147.9 kB / 0.6821 GB, free: 14.49 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.141, allocations: 7.922 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.141, allocations: 4 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.995e-06/0.141, allocations: 0 / 0.6821 GB, free: 14.48 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.0003345/0.1414, allocations: 351.5 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.1414, allocations: 8.031 kB / 0.6825 GB, free: 14.08 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.874e-05/0.1414, allocations: 34.75 kB / 0.6825 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.42e-05/0.1415, allocations: 8.844 kB / 0.6825 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.301e-05/0.1416, allocations: 164.4 kB / 0.6827 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.584e-06/0.1416, allocations: 384 / 0.6827 GB, free: 13.83 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.1416, allocations: 4.375 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.7e-05/0.1417, allocations: 50.17 kB / 0.6827 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1417, allocations: 7.938 kB / 0.6827 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-06/0.1417, allocations: 0 / 0.6827 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.1417, allocations: 0 / 0.6827 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.321e-05/0.1418, allocations: 8 kB / 0.6827 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001436/0.1419, allocations: 161.6 kB / 0.6829 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001614/0.1421, allocations: 42.61 kB / 0.6829 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.358e-05/0.1421, allocations: 28.88 kB / 0.6829 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.1421, allocations: 0 / 0.6829 GB, free: 13.46 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.1422, allocations: 30.56 kB / 0.683 GB, free: 13.43 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 8.11e-07/0.1422, allocations: 3.938 kB / 0.683 GB, free: 13.42 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005287/0.1427, allocations: 310.2 kB / 0.6833 GB, free: 13.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.1427, allocations: 51.41 kB / 0.6833 GB, free: 13 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.644e-05/0.1428, allocations: 101.8 kB / 0.6834 GB, free: 12.89 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.1428, allocations: 25.7 kB / 0.6834 GB, free: 12.86 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.756e-05/0.1429, allocations: 84.14 kB / 0.6835 GB, free: 12.78 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.489e-05/0.1429, allocations: 23.64 kB / 0.6836 GB, free: 12.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.1429, allocations: 21.7 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.597e-05/0.143, allocations: 314.8 kB / 0.6839 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.467e-05/0.1431, allocations: 11.98 kB / 0.6839 GB, free: 12.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.205e-05/0.1431, allocations: 15.94 kB / 0.6839 GB, free: 12.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.445e-05/0.1431, allocations: 40.8 kB / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.1432, allocations: 64 / 0.6839 GB, free: 12.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.069e-05/0.1432, allocations: 69.53 kB / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.1433, allocations: 8 kB / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.1433, allocations: 0 / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.236e-06/0.1433, allocations: 0 / 0.684 GB, free: 12.26 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.8e-05/0.1433, allocations: 11.98 kB / 0.684 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1433, allocations: 4 kB / 0.684 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.785e-05/0.1434, allocations: 4 kB / 0.684 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.1434, allocations: 0 / 0.684 GB, free: 12.24 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.827e-05/0.1435, allocations: 119.1 kB / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.173e-05/0.1435, allocations: 3.938 kB / 0.6841 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001265/0.1436, allocations: 77.58 kB / 0.6842 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1436, allocations: 4.516 kB / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1436, allocations: 0 / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1436, allocations: 0 / 0.6842 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002775/0.1439, allocations: 315.3 kB / 0.6845 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1439, allocations: 0 / 0.6845 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.827e-05/0.144, allocations: 16.03 kB / 0.6845 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.144, allocations: 0 / 0.6845 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.144, allocations: 7.969 kB / 0.6845 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.144, allocations: 0 / 0.6845 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.144, allocations: 4 kB / 0.6846 GB, free: 11.63 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001655/0.1442, allocations: 180.2 kB / 0.6847 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.384e-05/0.1442, allocations: 85.12 kB / 0.6848 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.332e-05/0.1443, allocations: 8.062 kB / 0.6848 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.719e-05/0.1443, allocations: 192 / 0.6848 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.464e-05/0.1444, allocations: 8 kB / 0.6848 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.1444, allocations: 3.984 kB / 0.6848 GB, free: 11.31 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.593e-05/0.1444, allocations: 79.28 kB / 0.6849 GB, free: 11.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1444, allocations: 0 / 0.6849 GB, free: 11.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.1446, allocations: 24 kB / 0.6849 GB, free: 11.21 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0004324/0.1451, allocations: 0.7328 MB / 0.6856 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 8.475e-05/0.1452, allocations: 35.92 kB / 0.6857 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1452, allocations: 0 / 0.6857 GB, free: 10.41 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.71e-05/0.1452, allocations: 19.94 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.1454, allocations: 2.391 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.1465, allocations: 1.332 MB / 0.687 GB, free: 8.977 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.1467, allocations: 0.681 MB / 0.6877 GB, free: 8.27 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.735e-05/0.1467, allocations: 4 kB / 0.6877 GB, free: 8.266 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.685e-05/0.1468, allocations: 11.44 kB / 0.6877 GB, free: 8.254 MB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1468, allocations: 0 / 0.6877 GB, free: 8.254 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01019/0.157, allocations: 1.469 MB / 0.6891 GB, free: 6.969 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.1572, allocations: 253 kB / 0.6894 GB, free: 6.719 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.54/1.697, allocations: 0 / 0.6894 GB, free: 6.719 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)