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.003904/0.003904, allocations: 96.7 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.00117/0.00117, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002397/0.002396, allocations: 287.1 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9446/0.9446, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002562/0.002562, allocations: 95.84 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1456, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002177/0.1478, allocations: 1.284 MB / 0.7672 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009509/0.1488, allocations: 0.6111 MB / 0.7678 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.342e-05/0.1488, allocations: 0 / 0.7678 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.626e-05/0.1488, allocations: 0 / 0.7678 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.976e-05/0.1489, allocations: 3.938 kB / 0.7678 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004728/0.1493, allocations: 154 kB / 0.7679 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.021e-05/0.1494, allocations: 15.94 kB / 0.7679 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.336e-05/0.1494, allocations: 11.98 kB / 0.7679 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.017e-05/0.1495, allocations: 7.938 kB / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.29e-05/0.1495, allocations: 8 kB / 0.7679 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.277e-06/0.1495, allocations: 0 / 0.7679 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004761/0.15, allocations: 343.3 kB / 0.7683 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.187e-05/0.15, allocations: 7.938 kB / 0.7683 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.019e-05/0.1501, allocations: 7.984 kB / 0.7683 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002299/0.1503, allocations: 147.8 kB / 0.7684 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1503, allocations: 0 / 0.7684 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1503, allocations: 0 / 0.7684 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.1503, allocations: 4 kB / 0.7684 GB, free: 6.355 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.000403/0.1507, allocations: 367 kB / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.1508, allocations: 12.03 kB / 0.7688 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.1508, allocations: 34.75 kB / 0.7688 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.427e-05/0.1508, allocations: 0.9375 kB / 0.7688 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.151, allocations: 168.3 kB / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.151, allocations: 8.312 kB / 0.769 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.151, allocations: 384 / 0.769 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.935e-05/0.1511, allocations: 46.19 kB / 0.769 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.1511, allocations: 7.938 kB / 0.7691 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.1511, allocations: 0 / 0.7691 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.1512, allocations: 0 / 0.7691 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.637e-05/0.1512, allocations: 19.92 kB / 0.7691 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001613/0.1514, allocations: 153.7 kB / 0.7692 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001616/0.1515, allocations: 42.56 kB / 0.7693 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.014e-05/0.1516, allocations: 16.86 kB / 0.7693 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.1516, allocations: 7.938 kB / 0.7693 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/0.1516, allocations: 34.56 kB / 0.7693 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.1516, allocations: 0 / 0.7693 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0005469/0.1522, allocations: 302.4 kB / 0.7696 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.1522, allocations: 51.41 kB / 0.7697 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.531e-05/0.1523, allocations: 97.86 kB / 0.7697 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.1523, allocations: 25.7 kB / 0.7698 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.076e-05/0.1524, allocations: 92.12 kB / 0.7699 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.862e-05/0.1524, allocations: 23.78 kB / 0.7699 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.1524, allocations: 21.72 kB / 0.7699 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1526, allocations: 318.8 kB / 0.7702 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.17e-05/0.1526, allocations: 4 kB / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.101e-05/0.1526, allocations: 12 kB / 0.7702 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.239e-05/0.1527, allocations: 40.78 kB / 0.7703 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.1527, allocations: 0 / 0.7703 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.864e-05/0.1528, allocations: 73.58 kB / 0.7703 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.1528, allocations: 4 kB / 0.7703 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.1528, allocations: 0 / 0.7703 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.1528, allocations: 0 / 0.7703 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.916e-05/0.1529, allocations: 12 kB / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1529, allocations: 3.938 kB / 0.7703 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.89e-05/0.1529, allocations: 0.5156 kB / 0.7703 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.227e-06/0.1529, allocations: 8 kB / 0.7704 GB, free: 4.105 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.902e-05/0.153, allocations: 110.4 kB / 0.7705 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.745e-05/0.153, allocations: 11.94 kB / 0.7705 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.1532, allocations: 73.7 kB / 0.7705 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1532, allocations: 3.938 kB / 0.7705 GB, free: 3.895 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1532, allocations: 3.984 kB / 0.7706 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1532, allocations: 0 / 0.7706 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000315/0.1535, allocations: 319.3 kB / 0.7709 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.1535, allocations: 7.984 kB / 0.7709 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.102e-05/0.1536, allocations: 8 kB / 0.7709 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.1536, allocations: 4.031 kB / 0.7709 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-06/0.1536, allocations: 4 kB / 0.7709 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1536, allocations: 240 / 0.7709 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1536, allocations: 0 / 0.7709 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001813/0.1538, allocations: 188.7 kB / 0.7711 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.42e-05/0.1539, allocations: 81.14 kB / 0.7711 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.1539, allocations: 0 / 0.7711 GB, free: 3.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.296e-05/0.154, allocations: 16.05 kB / 0.7712 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.154, allocations: 0 / 0.7712 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.154, allocations: 4 kB / 0.7712 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.685e-05/0.1541, allocations: 75.28 kB / 0.7712 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1541, allocations: 0 / 0.7712 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000319/0.1544, allocations: 27.88 kB / 0.7713 GB, free: 3.074 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.0005041/0.1549, allocations: 0.7366 MB / 0.772 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 9.398e-05/0.155, allocations: 32.23 kB / 0.772 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.155, allocations: 0 / 0.772 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 3.105e-05/0.155, allocations: 23.92 kB / 0.772 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002755/0.1553, allocations: 10.28 kB / 0.772 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.1566, allocations: 1.323 MB / 0.7733 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.1569, allocations: 0.6768 MB / 0.774 GB, free: 136 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.147e-05/0.1569, allocations: 11.98 kB / 0.774 GB, free: 124 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.65e-05/0.1569, allocations: 11.44 kB / 0.774 GB, free: 112 kB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.1569, allocations: 0 / 0.774 GB, free: 112 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.025/1.182, allocations: 1.648 MB / 0.7756 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.97/15.15, allocations: 11.52 kB / 0.7756 GB, free: 14.36 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)