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.00466/0.00466, allocations: 102.8 kB / 15.74 MB, free: 6.496 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.001122/0.001122, allocations: 195.5 kB / 16.68 MB, free: 6.375 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.304/1.304, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002372/0.002372, allocations: 286.1 kB / 290.8 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.017/1.017, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002526/0.002526, allocations: 99.86 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.137, allocations: 86.98 MB / 0.7659 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002235/0.1393, allocations: 1.469 MB / 0.7673 GB, free: 7.422 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009788/0.1403, allocations: 0.631 MB / 0.768 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3e-05/0.1403, allocations: 0 / 0.768 GB, free: 6.789 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.39e-05/0.1403, allocations: 7.922 kB / 0.768 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.233e-05/0.1404, allocations: 11.88 kB / 0.768 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005189/0.1409, allocations: 155.4 kB / 0.7681 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.896e-05/0.141, allocations: 51.66 kB / 0.7682 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.66e-05/0.141, allocations: 4 kB / 0.7682 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.708e-05/0.1411, allocations: 27.91 kB / 0.7682 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.282e-05/0.1411, allocations: 23.86 kB / 0.7682 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.1412, allocations: 4 kB / 0.7682 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004579/0.1416, allocations: 355.2 kB / 0.7686 GB, free: 6.16 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.945e-05/0.1417, allocations: 15.98 kB / 0.7686 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.907e-05/0.1417, allocations: 19.88 kB / 0.7686 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.142, allocations: 183.6 kB / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.142, allocations: 0 / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of FrontEnd: time 9.72e-07/0.142, allocations: 0 / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.142, allocations: 0 / 0.7688 GB, free: 5.945 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005341/0.1425, allocations: 402.9 kB / 0.7692 GB, free: 5.5 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1426, allocations: 16.03 kB / 0.7692 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.252e-05/0.1426, allocations: 34.75 kB / 0.7692 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.831e-05/0.1426, allocations: 4.938 kB / 0.7692 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.1428, allocations: 176.2 kB / 0.7694 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.1428, allocations: 8.359 kB / 0.7694 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/0.1428, allocations: 4.375 kB / 0.7694 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002105/0.143, allocations: 82.22 kB / 0.7695 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.143, allocations: 7.938 kB / 0.7695 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.1431, allocations: 0 / 0.7695 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-06/0.1431, allocations: 4 kB / 0.7695 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.1433, allocations: 51.58 kB / 0.7695 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004814/0.1438, allocations: 324.6 kB / 0.7698 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/0.144, allocations: 86.53 kB / 0.7699 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.645e-05/0.1441, allocations: 32.77 kB / 0.77 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.1441, allocations: 4 kB / 0.77 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.1442, allocations: 30.56 kB / 0.77 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.1442, allocations: 0 / 0.77 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.001466/0.1456, allocations: 0.6464 MB / 0.7706 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.418e-05/0.1457, allocations: 55.34 kB / 0.7707 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.055e-05/0.1458, allocations: 105.8 kB / 0.7708 GB, free: 3.613 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.1458, allocations: 29.7 kB / 0.7708 GB, free: 3.578 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.261e-05/0.1458, allocations: 92.09 kB / 0.7709 GB, free: 3.484 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.91e-05/0.1459, allocations: 47.58 kB / 0.7709 GB, free: 3.438 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.574e-05/0.1459, allocations: 29.7 kB / 0.771 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1461, allocations: 314.8 kB / 0.7713 GB, free: 3.086 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.1462, allocations: 31.97 kB / 0.7713 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.1463, allocations: 35.97 kB / 0.7713 GB, free: 3.02 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.1465, allocations: 72.88 kB / 0.7714 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1465, allocations: 7.922 kB / 0.7714 GB, free: 2.938 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002876/0.1468, allocations: 113.8 kB / 0.7715 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1469, allocations: 4 kB / 0.7715 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.1469, allocations: 4 kB / 0.7715 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.1469, allocations: 0 / 0.7715 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.147, allocations: 23.98 kB / 0.7716 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.147, allocations: 3.938 kB / 0.7716 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.988e-05/0.1471, allocations: 12 kB / 0.7716 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.1471, allocations: 11.92 kB / 0.7716 GB, free: 2.762 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 (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 8.007e-05/0.1472, allocations: 114.5 kB / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.1472, allocations: 3.953 kB / 0.7717 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003198/0.1476, allocations: 125.5 kB / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1476, allocations: 0 / 0.7718 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1476, allocations: 3.938 kB / 0.7718 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1476, allocations: 7.984 kB / 0.7718 GB, free: 2.496 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005296/0.1481, allocations: 386.6 kB / 0.7722 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1481, allocations: 0 / 0.7722 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.1483, allocations: 27.98 kB / 0.7722 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.1483, allocations: 11.86 kB / 0.7722 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.1483, allocations: 4 kB / 0.7722 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1483, allocations: 0 / 0.7722 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.1483, allocations: 3.938 kB / 0.7722 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004417/0.1488, allocations: 247.4 kB / 0.7725 GB, free: 1.758 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.506e-05/0.1488, allocations: 85.09 kB / 0.7726 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.1488, allocations: 3.938 kB / 0.7726 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.149, allocations: 11.98 kB / 0.7726 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.627e-05/0.149, allocations: 4 kB / 0.7726 GB, free: 1.637 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.149, allocations: 12 kB / 0.7726 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.982e-05/0.149, allocations: 83.45 kB / 0.7727 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1491, allocations: 0 / 0.7727 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003313/0.1494, allocations: 39.88 kB / 0.7727 GB, free: 1.504 MB / 0.5606 GB 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.0007819/0.1502, allocations: 0.8255 MB / 0.7735 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002758/0.1505, allocations: 87.83 kB / 0.7736 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1505, allocations: 0 / 0.7736 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.1506, allocations: 43.97 kB / 0.7736 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.1509, allocations: 11.5 kB / 0.7736 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2422/0.3931, allocations: 1.593 MB / 0.7752 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.323e-05/0.3932, allocations: 0.694 MB / 0.7759 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.756e-05/0.3933, allocations: 9.656 kB / 0.7759 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/0.3933, allocations: 25.86 kB / 0.7759 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of SimCode: time 4.11e-07/0.3933, allocations: 0 / 0.7759 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.772/3.166, allocations: 2.353 MB / 0.7782 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/14.72, allocations: 9.844 kB / 0.7782 GB, free: 12.64 MB / 0.5606 GB (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)