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.0009856/0.0009856, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001039/0.001039, allocations: 192.7 kB / 16.13 MB, free: 6.707 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.24/1.24, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001953/0.001953, allocations: 286.6 kB / 290.2 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.884/0.884, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 90.42 kB / 0.5946 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1401, allocations: 86.98 MB / 0.6796 GB, free: 1.051 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002213/0.1424, allocations: 1.334 MB / 0.6809 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009392/0.1433, allocations: 0.6318 MB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.402e-05/0.1434, allocations: 0 / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.89e-05/0.1434, allocations: 0 / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.31e-05/0.1434, allocations: 3.938 kB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004164/0.1439, allocations: 123.6 kB / 0.6816 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.255e-05/0.1439, allocations: 23.92 kB / 0.6816 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.716e-05/0.144, allocations: 4 kB / 0.6816 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.149e-05/0.144, allocations: 7.938 kB / 0.6816 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.228e-05/0.144, allocations: 11.98 kB / 0.6816 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.006e-05/0.1441, allocations: 0 / 0.6816 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004469/0.1445, allocations: 343.3 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.049e-05/0.1445, allocations: 11.88 kB / 0.682 GB, free: 14.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.087e-05/0.1445, allocations: 7.938 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.1448, allocations: 143.9 kB / 0.6821 GB, free: 14.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1448, allocations: 0 / 0.6821 GB, free: 14.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.01e-07/0.1448, allocations: 4 kB / 0.6821 GB, free: 14.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.1448, allocations: 0 / 0.6821 GB, free: 14.41 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.0003708/0.1452, allocations: 363.5 kB / 0.6825 GB, free: 14 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.1452, allocations: 8.031 kB / 0.6825 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.472e-05/0.1453, allocations: 34.75 kB / 0.6825 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.635e-05/0.1453, allocations: 4.844 kB / 0.6825 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.927e-05/0.1454, allocations: 164.4 kB / 0.6827 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.1454, allocations: 8.312 kB / 0.6827 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.442e-05/0.1454, allocations: 384 / 0.6827 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.945e-05/0.1455, allocations: 46.25 kB / 0.6827 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.1456, allocations: 3.938 kB / 0.6827 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.515e-06/0.1456, allocations: 0 / 0.6827 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1456, allocations: 0 / 0.6827 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.82e-05/0.1456, allocations: 12 kB / 0.6827 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.1458, allocations: 157.6 kB / 0.6829 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.146, allocations: 46.55 kB / 0.6829 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.624e-05/0.146, allocations: 24.94 kB / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.146, allocations: 0 / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.1461, allocations: 34.56 kB / 0.683 GB, free: 13.35 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 8.52e-07/0.1461, allocations: 0 / 0.683 GB, free: 13.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005617/0.1466, allocations: 310.4 kB / 0.6833 GB, free: 12.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/0.1467, allocations: 51.41 kB / 0.6833 GB, free: 12.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.955e-05/0.1467, allocations: 101.8 kB / 0.6834 GB, free: 12.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.1468, allocations: 29.7 kB / 0.6835 GB, free: 12.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.312e-05/0.1468, allocations: 80.14 kB / 0.6835 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.1468, allocations: 27.64 kB / 0.6836 GB, free: 12.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.241e-05/0.1469, allocations: 21.7 kB / 0.6836 GB, free: 12.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.917e-05/0.147, allocations: 318.8 kB / 0.6839 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.257e-05/0.147, allocations: 4 kB / 0.6839 GB, free: 12.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.415e-05/0.147, allocations: 19.92 kB / 0.6839 GB, free: 12.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.916e-05/0.1471, allocations: 32.86 kB / 0.6839 GB, free: 12.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.92e-07/0.1471, allocations: 4 kB / 0.684 GB, free: 12.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.215e-05/0.1472, allocations: 69.53 kB / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.1472, allocations: 4 kB / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1472, allocations: 0 / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.1472, allocations: 0 / 0.684 GB, free: 12.19 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.097e-05/0.1473, allocations: 19.92 kB / 0.684 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.1473, allocations: 0 / 0.684 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.951e-05/0.1473, allocations: 0 / 0.684 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.1473, allocations: 7.938 kB / 0.684 GB, free: 12.16 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.985e-05/0.1474, allocations: 115.2 kB / 0.6842 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.134e-05/0.1474, allocations: 3.938 kB / 0.6842 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001252/0.1476, allocations: 73.66 kB / 0.6842 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1476, allocations: 3.984 kB / 0.6842 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1476, allocations: 128 / 0.6842 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.225e-06/0.1476, allocations: 0 / 0.6842 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002972/0.1479, allocations: 319.3 kB / 0.6845 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1479, allocations: 0 / 0.6845 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.629e-05/0.148, allocations: 12 kB / 0.6846 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.148, allocations: 4.031 kB / 0.6846 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-06/0.148, allocations: 0 / 0.6846 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.148, allocations: 7.984 kB / 0.6846 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.148, allocations: 7.875 kB / 0.6846 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001563/0.1482, allocations: 176.2 kB / 0.6847 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.527e-05/0.1482, allocations: 85.12 kB / 0.6848 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.1483, allocations: 64 / 0.6848 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.016e-05/0.1483, allocations: 8 kB / 0.6848 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.459e-05/0.1484, allocations: 4 kB / 0.6848 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.042e-06/0.1484, allocations: 4 kB / 0.6848 GB, free: 11.24 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.021e-05/0.1484, allocations: 79.27 kB / 0.6849 GB, free: 11.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1484, allocations: 0 / 0.6849 GB, free: 11.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002339/0.1486, allocations: 24 kB / 0.6849 GB, free: 11.14 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.0004564/0.1491, allocations: 0.7328 MB / 0.6856 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.015e-05/0.1492, allocations: 35.92 kB / 0.6857 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1492, allocations: 0 / 0.6857 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.576e-05/0.1492, allocations: 16 kB / 0.6857 GB, free: 10.33 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002125/0.1495, allocations: 4 kB / 0.6857 GB, free: 10.32 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.1505, allocations: 1.333 MB / 0.687 GB, free: 8.906 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.1508, allocations: 0.6849 MB / 0.6877 GB, free: 8.195 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.131e-05/0.1508, allocations: 8.031 kB / 0.6877 GB, free: 8.188 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.618e-05/0.1508, allocations: 11.44 kB / 0.6877 GB, free: 8.176 MB / 494.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1509, allocations: 0 / 0.6877 GB, free: 8.176 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01099/0.1618, allocations: 1.492 MB / 0.6891 GB, free: 6.879 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002448/0.1621, allocations: 264.6 kB / 0.6894 GB, free: 6.566 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.512/1.674, allocations: 2.344 kB / 0.6894 GB, free: 6.566 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)