Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_8_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001395/0.001395, allocations: 197.2 kB / 16.64 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.1 MB / 222.5 MB, free: 4.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.797/1.797, allocations: 292.3 MB / 0.549 GB, free: 12.71 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001647, allocations: 73 kB / 0.6718 GB, free: 26.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2424, allocations: 114.6 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00401/0.2465, allocations: 1.476 MB / 0.7851 GB, free: 11.76 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.2478, allocations: 0.6276 MB / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.042e-05/0.2479, allocations: 0 / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.373e-05/0.248, allocations: 7.938 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.671e-05/0.2481, allocations: 3.938 kB / 0.7857 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000891/0.249, allocations: 161 kB / 0.7859 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001148/0.2491, allocations: 55.77 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.114e-05/0.2492, allocations: 8 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.171e-05/0.2493, allocations: 23.92 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.711e-05/0.2493, allocations: 31.84 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.83e-05/0.2494, allocations: 4 kB / 0.786 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005676/0.2499, allocations: 343.4 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.346e-05/0.25, allocations: 11.94 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.524e-05/0.25, allocations: 31.84 kB / 0.7863 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.2504, allocations: 171.8 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.2504, allocations: 4 kB / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.414e-06/0.2504, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.2504, allocations: 0 / 0.7865 GB, free: 10.29 MB / 0.6075 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.0007375/0.2512, allocations: 407.2 kB / 0.7869 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.2512, allocations: 8.031 kB / 0.7869 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.216e-05/0.2513, allocations: 38.75 kB / 0.787 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.701e-05/0.2513, allocations: 8.828 kB / 0.787 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001916/0.2515, allocations: 168.3 kB / 0.7871 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.432e-05/0.2516, allocations: 4.375 kB / 0.7871 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.2516, allocations: 8.375 kB / 0.7871 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.2519, allocations: 82.22 kB / 0.7872 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.2519, allocations: 7.844 kB / 0.7872 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.252, allocations: 4 kB / 0.7872 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.252, allocations: 7.938 kB / 0.7872 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002586/0.2522, allocations: 50.7 kB / 0.7873 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006955/0.2529, allocations: 316.7 kB / 0.7876 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.2533, allocations: 78.47 kB / 0.7877 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.2534, allocations: 36.83 kB / 0.7877 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 3.308e-05/0.2534, allocations: 4.141 kB / 0.7877 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.2535, allocations: 30.56 kB / 0.7877 GB, free: 8.883 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 5.721e-06/0.2535, allocations: 8 kB / 0.7877 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.001975/0.2555, allocations: 0.646 MB / 0.7884 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.2556, allocations: 51.41 kB / 0.7884 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.2557, allocations: 105.8 kB / 0.7885 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.2557, allocations: 29.7 kB / 0.7885 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.7e-05/0.2558, allocations: 88.11 kB / 0.7886 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.021e-05/0.2558, allocations: 39.45 kB / 0.7887 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.926e-05/0.2559, allocations: 25.72 kB / 0.7887 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.2561, allocations: 322.8 kB / 0.789 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001381/0.2562, allocations: 39.92 kB / 0.789 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.2563, allocations: 31.97 kB / 0.7891 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.2566, allocations: 68.83 kB / 0.7891 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2566, allocations: 0 / 0.7891 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003567/0.257, allocations: 121.7 kB / 0.7892 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.257, allocations: 4 kB / 0.7892 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.257, allocations: 7.984 kB / 0.7893 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.2571, allocations: 0 / 0.7893 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/0.2572, allocations: 31.92 kB / 0.7893 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.2573, allocations: 7.938 kB / 0.7893 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.324e-05/0.2573, allocations: 7.984 kB / 0.7893 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.2574, allocations: 4 kB / 0.7893 GB, free: 7.113 MB / 0.6075 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 0.0001141/0.2575, allocations: 118.4 kB / 0.7894 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.335e-05/0.2575, allocations: 7.906 kB / 0.7894 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004248/0.258, allocations: 137.5 kB / 0.7896 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.258, allocations: 4 kB / 0.7896 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.258, allocations: 3.938 kB / 0.7896 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.258, allocations: 0 / 0.7896 GB, free: 6.828 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006684/0.2587, allocations: 370.5 kB / 0.7899 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.2587, allocations: 4 kB / 0.7899 GB, free: 6.406 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.2589, allocations: 27.92 kB / 0.7899 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.2589, allocations: 7.938 kB / 0.79 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.2589, allocations: 4 kB / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2589, allocations: 0 / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2589, allocations: 0 / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005578/0.2595, allocations: 254.5 kB / 0.7902 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.219e-05/0.2596, allocations: 77.11 kB / 0.7903 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.243e-05/0.2596, allocations: 8 kB / 0.7903 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.2597, allocations: 7.984 kB / 0.7903 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.181e-05/0.2597, allocations: 11.98 kB / 0.7903 GB, free: 5.984 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.2598, allocations: 4 kB / 0.7903 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 7.426e-05/0.2598, allocations: 79.28 kB / 0.7904 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.2599, allocations: 0 / 0.7904 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003366/0.2602, allocations: 35.98 kB / 0.7904 GB, free: 5.867 MB / 0.6075 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.001099/0.2613, allocations: 0.8254 MB / 0.7912 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003839/0.2617, allocations: 83.88 kB / 0.7913 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2617, allocations: 0 / 0.7913 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.2619, allocations: 52.47 kB / 0.7914 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004167/0.2623, allocations: 14.83 kB / 0.7914 GB, free: 4.871 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.2649, allocations: 1.603 MB / 0.7929 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.2653, allocations: 0.6923 MB / 0.7936 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 7.883e-05/0.2654, allocations: 12.66 kB / 0.7936 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.502e-05/0.2654, allocations: 23.44 kB / 0.7936 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of SimCode: time 2.214e-06/0.2654, allocations: 4 kB / 0.7936 GB, free: 2.426 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.2924, allocations: 2.308 MB / 0.7959 GB, free: 300 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.218/8.51, allocations: 2.875 kB / 0.7959 GB, free: 300 kB / 0.6075 GB (rm -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)