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.004668/0.004668, allocations: 100.1 kB / 15.73 MB, free: 6.047 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.001136/0.001136, allocations: 187.6 kB / 16.67 MB, free: 5.977 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.224/1.224, allocations: 222.9 MB / 240.4 MB, free: 4.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.002052/0.002052, allocations: 278.1 kB / 290.8 MB, free: 1.938 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8892/0.8892, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 102.4 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1482, allocations: 86.97 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00215/0.1503, allocations: 1.276 MB / 0.7671 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009351/0.1513, allocations: 0.6111 MB / 0.7677 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.41e-05/0.1513, allocations: 0 / 0.7677 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.1514, allocations: 0 / 0.7677 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.921e-05/0.1514, allocations: 7.938 kB / 0.7678 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005275/0.152, allocations: 139.4 kB / 0.7679 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.89e-05/0.152, allocations: 23.92 kB / 0.7679 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.828e-05/0.1521, allocations: 7.984 kB / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.734e-05/0.1521, allocations: 7.938 kB / 0.7679 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.571e-05/0.1522, allocations: 8 kB / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.088e-05/0.1522, allocations: 0 / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004445/0.1526, allocations: 347.3 kB / 0.7683 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.114e-05/0.1527, allocations: 3.938 kB / 0.7683 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.607e-05/0.1527, allocations: 11.98 kB / 0.7683 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.1529, allocations: 151.1 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1529, allocations: 4 kB / 0.7684 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1529, allocations: 0 / 0.7684 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.153, allocations: 4 kB / 0.7684 GB, free: 6.344 MB / 0.5606 GB 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.0003749/0.1533, allocations: 359.4 kB / 0.7688 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1534, allocations: 12.03 kB / 0.7688 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.791e-05/0.1534, allocations: 34.69 kB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.502e-05/0.1534, allocations: 0.9375 kB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.841e-05/0.1535, allocations: 164.4 kB / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.1536, allocations: 384 / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.816e-05/0.1536, allocations: 4.312 kB / 0.769 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.687e-05/0.1537, allocations: 46.25 kB / 0.769 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.1537, allocations: 7.875 kB / 0.769 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.1537, allocations: 3.984 kB / 0.769 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.1537, allocations: 4 kB / 0.769 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.835e-05/0.1538, allocations: 15.98 kB / 0.7691 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.1539, allocations: 161.6 kB / 0.7692 GB, free: 5.395 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001738/0.1541, allocations: 50.5 kB / 0.7693 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.349e-05/0.1541, allocations: 16.86 kB / 0.7693 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.1542, allocations: 4 kB / 0.7693 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.1542, allocations: 30.56 kB / 0.7693 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.1542, allocations: 0 / 0.7693 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0005644/0.1548, allocations: 310.3 kB / 0.7696 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.1548, allocations: 55.41 kB / 0.7697 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.29e-05/0.1549, allocations: 89.86 kB / 0.7697 GB, free: 4.754 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.1549, allocations: 33.7 kB / 0.7698 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.807e-05/0.1549, allocations: 88.12 kB / 0.7699 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.793e-05/0.155, allocations: 15.66 kB / 0.7699 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.264e-05/0.155, allocations: 21.72 kB / 0.7699 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.1551, allocations: 318.8 kB / 0.7702 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.49e-05/0.1551, allocations: 12 kB / 0.7702 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.435e-05/0.1551, allocations: 4 kB / 0.7702 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.675e-05/0.1552, allocations: 40.78 kB / 0.7702 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.92e-07/0.1552, allocations: 4 kB / 0.7703 GB, free: 4.199 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.188e-05/0.1553, allocations: 69.61 kB / 0.7703 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1553, allocations: 6.5 kB / 0.7703 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1553, allocations: 3.938 kB / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.1554, allocations: 4 kB / 0.7703 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.82e-05/0.1554, allocations: 8 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.1554, allocations: 0 / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.849e-05/0.1554, allocations: 4 kB / 0.7703 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.497e-06/0.1555, allocations: 4 kB / 0.7703 GB, free: 4.098 MB / 0.5606 GB 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.256e-05/0.1555, allocations: 118.4 kB / 0.7705 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.498e-05/0.1555, allocations: 11.92 kB / 0.7705 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.1557, allocations: 73.56 kB / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1557, allocations: 0 / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1557, allocations: 0 / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.1557, allocations: 0 / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002748/0.156, allocations: 315.4 kB / 0.7708 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.156, allocations: 3.984 kB / 0.7708 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.576e-05/0.1561, allocations: 8.188 kB / 0.7709 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.1561, allocations: 8.547 kB / 0.7709 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.253e-06/0.1561, allocations: 4 kB / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1561, allocations: 0 / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.1561, allocations: 3.938 kB / 0.7709 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.1563, allocations: 180.9 kB / 0.771 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.708e-05/0.1563, allocations: 77.11 kB / 0.7711 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.1563, allocations: 8 kB / 0.7711 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.782e-05/0.1564, allocations: 8.047 kB / 0.7711 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.47e-05/0.1564, allocations: 3.984 kB / 0.7711 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.379e-06/0.1564, allocations: 4 kB / 0.7711 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.127e-05/0.1565, allocations: 79.28 kB / 0.7712 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1565, allocations: 0 / 0.7712 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002343/0.1567, allocations: 20 kB / 0.7712 GB, free: 3.078 MB / 0.5606 GB 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.0004322/0.1572, allocations: 0.7443 MB / 0.772 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001031/0.1573, allocations: 35.92 kB / 0.772 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.1573, allocations: 3.938 kB / 0.772 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.57e-05/0.1573, allocations: 19.98 kB / 0.772 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002073/0.1575, allocations: 8 kB / 0.772 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.1586, allocations: 1.316 MB / 0.7733 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.1588, allocations: 0.6808 MB / 0.774 GB, free: 132 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.146e-05/0.1588, allocations: 16.03 kB / 0.774 GB, free: 116 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.894e-05/0.1588, allocations: 19.38 kB / 0.774 GB, free: 96 kB / 0.5606 GB Notification: Performance of SimCode: time 2e-07/0.1589, allocations: 0 / 0.774 GB, free: 96 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2986/0.4575, allocations: 1.66 MB / 0.7756 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.056/7.514, allocations: 1.719 kB / 0.7756 GB, free: 14.94 MB / 0.5606 GB (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)