Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_8_0_0_Buildings_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/Buildings 8.0.0/package.mo): time 2.654/2.654, allocations: 287.3 MB / 302.3 MB, free: 8.402 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001667/0.001667, allocations: 198 kB / 370.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.242/2.242, allocations: 205.4 MB / 0.6295 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001595/0.001595, allocations: 96.45 kB / 0.7428 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000485/0.0004855, allocations: 12.06 kB / 0.8657 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2344, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001619/0.2361, allocations: 1.179 MB / 0.9794 GB, free: 27.1 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007224/0.2369, allocations: 340.1 kB / 0.9798 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.485e-05/0.2369, allocations: 4 kB / 0.9798 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.867e-05/0.237, allocations: 7.922 kB / 0.9798 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.311e-05/0.237, allocations: 11.98 kB / 0.9798 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004491/0.2375, allocations: 76.77 kB / 0.9799 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.169e-05/0.2376, allocations: 27.97 kB / 0.9799 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 5.121e-05/0.2376, allocations: 0 / 0.9799 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.842e-05/0.2377, allocations: 31.84 kB / 0.9799 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.753e-05/0.2378, allocations: 19.92 kB / 0.9799 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.2378, allocations: 4 kB / 0.9799 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000344/0.2381, allocations: 183.7 kB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.743e-05/0.2382, allocations: 15.92 kB / 0.9801 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.614e-05/0.2382, allocations: 33.7 kB / 0.9802 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001757/0.2384, allocations: 72.11 kB / 0.9802 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.2384, allocations: 0 / 0.9802 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2384, allocations: 0 / 0.9802 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.2384, allocations: 0 / 0.9802 GB, free: 26.29 MB / 0.6198 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.0006216/0.2391, allocations: 379.2 kB / 0.9806 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.2391, allocations: 16.02 kB / 0.9806 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.746e-05/0.2392, allocations: 34.56 kB / 0.9806 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.408e-05/0.2392, allocations: 7.906 kB / 0.9806 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.922e-05/0.2393, allocations: 178.9 kB / 0.9808 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.2394, allocations: 4 kB / 0.9808 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.2394, allocations: 4 kB / 0.9808 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003307/0.2397, allocations: 81.66 kB / 0.9809 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.2398, allocations: 3.938 kB / 0.9809 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.2398, allocations: 8 kB / 0.9809 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.2398, allocations: 0 / 0.9809 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004163/0.2402, allocations: 61.7 kB / 0.981 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006513/0.2409, allocations: 324.7 kB / 0.9813 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000467/0.2414, allocations: 90.53 kB / 0.9814 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.787e-05/0.2414, allocations: 8.141 kB / 0.9814 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.2415, allocations: 34.5 kB / 0.9814 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.254e-06/0.2415, allocations: 0 / 0.9814 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.002318/0.2438, allocations: 0.6773 MB / 0.9821 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.2439, allocations: 55.41 kB / 0.9821 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.957e-05/0.2439, allocations: 101.8 kB / 0.9822 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.244, allocations: 25.7 kB / 0.9822 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.618e-05/0.244, allocations: 96.03 kB / 0.9823 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.582e-05/0.2441, allocations: 35.45 kB / 0.9824 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.2441, allocations: 8 kB / 0.9824 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.76e-05/0.2441, allocations: 314.8 kB / 0.9827 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002258/0.2444, allocations: 35.98 kB / 0.9827 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002226/0.2446, allocations: 35.97 kB / 0.9827 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.2449, allocations: 39.98 kB / 0.9828 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2449, allocations: 0 / 0.9828 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005772/0.2455, allocations: 130.7 kB / 0.9829 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2455, allocations: 7.938 kB / 0.9829 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2455, allocations: 7.938 kB / 0.9829 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.2455, allocations: 4 kB / 0.9829 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.2458, allocations: 27.98 kB / 0.983 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.2458, allocations: 0 / 0.983 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.246, allocations: 15.98 kB / 0.983 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.246, allocations: 0 / 0.983 GB, free: 23.17 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.688e-05/0.2461, allocations: 117.8 kB / 0.9831 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.76e-05/0.2461, allocations: 7.938 kB / 0.9831 GB, free: 23.04 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005987/0.2467, allocations: 141.4 kB / 0.9832 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.2468, allocations: 7.953 kB / 0.9832 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2468, allocations: 0 / 0.9832 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2468, allocations: 0 / 0.9832 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007755/0.2476, allocations: 390.4 kB / 0.9836 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2476, allocations: 0 / 0.9836 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002799/0.2479, allocations: 27.98 kB / 0.9836 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.2479, allocations: 3.953 kB / 0.9836 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/0.2479, allocations: 4 kB / 0.9836 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.2479, allocations: 4 kB / 0.9836 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2479, allocations: 4 kB / 0.9836 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007842/0.2487, allocations: 259.3 kB / 0.9839 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.758e-05/0.2488, allocations: 81.14 kB / 0.984 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.2488, allocations: 3.953 kB / 0.984 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.249, allocations: 16.05 kB / 0.984 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.997e-05/0.2491, allocations: 11.98 kB / 0.984 GB, free: 22 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.2491, allocations: 3.938 kB / 0.984 GB, free: 22 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.13e-05/0.2492, allocations: 79.28 kB / 0.9841 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of sort global known variables: time 5.11e-07/0.2492, allocations: 0 / 0.9841 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003907/0.2496, allocations: 36 kB / 0.9841 GB, free: 21.89 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001091/0.2507, allocations: 0.834 MB / 0.9849 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005217/0.2512, allocations: 92.89 kB / 0.985 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.2512, allocations: 4 kB / 0.985 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002397/0.2515, allocations: 47.91 kB / 0.9851 GB, free: 20.89 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.2517, allocations: 11.95 kB / 0.9851 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001932/0.2537, allocations: 0.7453 MB / 0.9858 GB, free: 20.07 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.2539, allocations: 0.7004 MB / 0.9865 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.823e-05/0.254, allocations: 8.672 kB / 0.9865 GB, free: 19.34 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.68e-05/0.254, allocations: 23.42 kB / 0.9865 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of SimCode: time 1.253e-06/0.2541, allocations: 4 kB / 0.9865 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01972/0.2738, allocations: 2.055 MB / 0.9885 GB, free: 17.47 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002512/0.2741, allocations: 231 kB / 0.9888 GB, free: 17.23 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.583/2.857, allocations: 0 / 0.9888 GB, free: 17.23 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_8_0_0_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_8.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)