Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_10_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_10_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.004988/0.004988, allocations: 97.34 kB / 15.73 MB, free: 6.055 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.001302/0.001302, allocations: 195.3 kB / 16.68 MB, free: 5.969 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.575/2.575, allocations: 437 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 63.91 kB / 1.018 GB, free: 9.898 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7662/0.7682, allocations: 151.6 MB / 1.166 GB, free: 3.758 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002688/0.7709, allocations: 1.471 MB / 1.168 GB, free: 2.277 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.772, allocations: 0.6344 MB / 1.168 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.724e-05/0.7721, allocations: 0 / 1.168 GB, free: 1.641 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.642e-05/0.7721, allocations: 7.938 kB / 1.168 GB, free: 1.633 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.782e-05/0.7722, allocations: 7.922 kB / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005821/0.7728, allocations: 160.9 kB / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.911e-05/0.7729, allocations: 47.91 kB / 1.168 GB, free: 1.422 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 6.424e-05/0.773, allocations: 4 kB / 1.168 GB, free: 1.418 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.815e-05/0.7731, allocations: 27.91 kB / 1.168 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.843e-05/0.7731, allocations: 31.8 kB / 1.168 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.7731, allocations: 4 kB / 1.168 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005432/0.7737, allocations: 343.4 kB / 1.169 GB, free: 1.02 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.151e-05/0.7737, allocations: 15.98 kB / 1.169 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.526e-05/0.7738, allocations: 19.88 kB / 1.169 GB, free: 0.9844 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003052/0.7741, allocations: 183 kB / 1.169 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.7741, allocations: 0 / 1.169 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.233e-06/0.7741, allocations: 0 / 1.169 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.798e-06/0.7741, allocations: 0 / 1.169 GB, free: 0.8086 MB / 0.8887 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.0006336/0.7747, allocations: 406.9 kB / 1.169 GB, free: 368 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.7748, allocations: 12.03 kB / 1.169 GB, free: 356 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.04e-05/0.7748, allocations: 42.69 kB / 1.169 GB, free: 304 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.221e-05/0.7749, allocations: 4.938 kB / 1.169 GB, free: 300 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.775, allocations: 164.3 kB / 1.17 GB, free: 96 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.593e-05/0.7751, allocations: 8.375 kB / 1.17 GB, free: 88 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.479e-05/0.7751, allocations: 8.375 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002627/0.7753, allocations: 82.2 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.7754, allocations: 3.938 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.7754, allocations: 4 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.7754, allocations: 3.938 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.7757, allocations: 61.06 kB / 1.17 GB, free: 15.92 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.7762, allocations: 320.7 kB / 1.17 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.7765, allocations: 90.47 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.7767, allocations: 28.83 kB / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.7767, allocations: 4 kB / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.7767, allocations: 34.56 kB / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.7767, allocations: 0 / 1.17 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.00171/0.7785, allocations: 0.6503 MB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.7785, allocations: 51.41 kB / 1.171 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.166e-05/0.7786, allocations: 109.8 kB / 1.171 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.7786, allocations: 25.7 kB / 1.171 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.438e-05/0.7787, allocations: 92.09 kB / 1.171 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.8e-05/0.7787, allocations: 39.64 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.121e-05/0.7788, allocations: 29.7 kB / 1.171 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.7789, allocations: 314.8 kB / 1.172 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.7791, allocations: 36.09 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.7792, allocations: 39.92 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002514/0.7795, allocations: 69.95 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.7795, allocations: 0 / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003244/0.7798, allocations: 110.9 kB / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.7798, allocations: 7.984 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.7799, allocations: 4 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.7799, allocations: 0 / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001528/0.78, allocations: 31.92 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.7801, allocations: 7.938 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.638e-05/0.7801, allocations: 4 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.7801, allocations: 4 kB / 1.172 GB, free: 13.63 MB / 0.9044 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.0001039/0.7803, allocations: 117.8 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.142e-05/0.7803, allocations: 3.953 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000391/0.7807, allocations: 129.5 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.7807, allocations: 4 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.7807, allocations: 3.938 kB / 1.172 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.7807, allocations: 3.984 kB / 1.172 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005959/0.7813, allocations: 382.5 kB / 1.172 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.7813, allocations: 0 / 1.172 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001521/0.7815, allocations: 27.92 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.7815, allocations: 3.938 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.7815, allocations: 11.98 kB / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.7815, allocations: 4 kB / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.7815, allocations: 3.938 kB / 1.172 GB, free: 12.87 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005293/0.7821, allocations: 243.4 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.731e-05/0.7821, allocations: 85.09 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.7822, allocations: 3.938 kB / 1.173 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.7823, allocations: 12.17 kB / 1.173 GB, free: 12.5 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.789e-05/0.7823, allocations: 8.062 kB / 1.173 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.7823, allocations: 7.984 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.674e-05/0.7824, allocations: 87.2 kB / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7824, allocations: 0 / 1.173 GB, free: 12.4 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002887/0.7827, allocations: 43.81 kB / 1.173 GB, free: 12.36 MB / 0.9044 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.0009512/0.7836, allocations: 0.8215 MB / 1.174 GB, free: 11.51 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003509/0.784, allocations: 88.38 kB / 1.174 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.784, allocations: 0 / 1.174 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.7842, allocations: 47.91 kB / 1.174 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.7845, allocations: 13.06 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.7867, allocations: 1.593 MB / 1.175 GB, free: 9.695 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.787, allocations: 0.6924 MB / 1.176 GB, free: 8.977 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.624e-05/0.7871, allocations: 8.672 kB / 1.176 GB, free: 8.969 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.622e-05/0.7872, allocations: 29.67 kB / 1.176 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of SimCode: time 3.81e-07/0.7872, allocations: 0 / 1.176 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.8112, allocations: 2.336 MB / 1.178 GB, free: 6.789 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.214/9.025, allocations: 12.06 kB / 1.178 GB, free: 6.781 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)