Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_dp_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.001179/0.001179, allocations: 108 kB / 15.6 MB, free: 132 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.001195/0.001195, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.461/1.461, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.387/2.387, allocations: 390.3 MB / 0.6647 GB, free: 416 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 68.03 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6068/0.6083, allocations: 140.4 MB / 0.9497 GB, free: 9.277 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002005/0.6103, allocations: 1.28 MB / 0.951 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007887/0.6111, allocations: 0.6197 MB / 0.9516 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.515e-05/0.6112, allocations: 1.406 kB / 0.9516 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.751e-05/0.6112, allocations: 0 / 0.9516 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.348e-05/0.6112, allocations: 3.938 kB / 0.9516 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000487/0.6117, allocations: 145.8 kB / 0.9517 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.776e-05/0.6118, allocations: 28.95 kB / 0.9517 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.572e-05/0.6118, allocations: 3.406 kB / 0.9518 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.108e-05/0.6119, allocations: 16.64 kB / 0.9518 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.705e-05/0.6119, allocations: 13.2 kB / 0.9518 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.179e-05/0.6119, allocations: 1.375 kB / 0.9518 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004331/0.6124, allocations: 346.8 kB / 0.9521 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.184e-05/0.6124, allocations: 6.375 kB / 0.9521 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.522e-05/0.6124, allocations: 17.11 kB / 0.9521 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.6126, allocations: 152.4 kB / 0.9523 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.6126, allocations: 0 / 0.9523 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.6127, allocations: 3.938 kB / 0.9523 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.6127, allocations: 5 kB / 0.9523 GB, free: 7.316 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000299/0.613, allocations: 370.8 kB / 0.9526 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.613, allocations: 9.219 kB / 0.9526 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.765e-05/0.613, allocations: 36.27 kB / 0.9527 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.657e-05/0.6131, allocations: 3.094 kB / 0.9527 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.125e-05/0.6131, allocations: 161.5 kB / 0.9528 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.6132, allocations: 6.375 kB / 0.9528 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.6132, allocations: 6.969 kB / 0.9529 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.6133, allocations: 57 kB / 0.9529 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.6133, allocations: 5.406 kB / 0.9529 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.6133, allocations: 4 kB / 0.9529 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.6133, allocations: 1.219 kB / 0.9529 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.745e-05/0.6134, allocations: 23.16 kB / 0.9529 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001182/0.6135, allocations: 165.4 kB / 0.9531 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.847e-05/0.6136, allocations: 55.12 kB / 0.9532 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.819e-05/0.6136, allocations: 37.66 kB / 0.9532 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.6137, allocations: 1.531 kB / 0.9532 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.518e-05/0.6137, allocations: 32 kB / 0.9532 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.6137, allocations: 0 / 0.9532 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0009375/0.6146, allocations: 0.5917 MB / 0.9538 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.112e-05/0.6147, allocations: 52.47 kB / 0.9538 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.77e-05/0.6147, allocations: 93.08 kB / 0.9539 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.6147, allocations: 30.98 kB / 0.954 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.23e-05/0.6147, allocations: 80.14 kB / 0.954 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.6148, allocations: 35.7 kB / 0.9541 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.584e-05/0.6148, allocations: 30.42 kB / 0.9541 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.69e-05/0.6149, allocations: 325.1 kB / 0.9544 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.97e-05/0.6149, allocations: 20.36 kB / 0.9544 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.661e-05/0.6149, allocations: 27.75 kB / 0.9545 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.527e-05/0.615, allocations: 57.47 kB / 0.9545 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.615, allocations: 3.938 kB / 0.9545 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001316/0.6152, allocations: 98.75 kB / 0.9546 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.6152, allocations: 5.438 kB / 0.9546 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.6152, allocations: 0 / 0.9546 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.6152, allocations: 1.375 kB / 0.9546 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.6153, allocations: 21.36 kB / 0.9546 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.6153, allocations: 5.406 kB / 0.9546 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.516e-05/0.6154, allocations: 5.531 kB / 0.9547 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.6154, allocations: 2.094 kB / 0.9547 GB, free: 4.957 MB / 0.7169 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 4.671e-05/0.6154, allocations: 116.5 kB / 0.9548 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.624e-05/0.6155, allocations: 10.77 kB / 0.9548 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001701/0.6156, allocations: 110.9 kB / 0.9549 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.6156, allocations: 2.25 kB / 0.9549 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.6156, allocations: 0 / 0.9549 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.6157, allocations: 4 kB / 0.9549 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.6159, allocations: 353.3 kB / 0.9552 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.616, allocations: 0 / 0.9552 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.6161, allocations: 25.58 kB / 0.9552 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.6161, allocations: 1.344 kB / 0.9552 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.6161, allocations: 1.438 kB / 0.9552 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.6161, allocations: 0 / 0.9552 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.6161, allocations: 0 / 0.9552 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001943/0.6163, allocations: 231.3 kB / 0.9555 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.558e-05/0.6163, allocations: 83.45 kB / 0.9555 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.6163, allocations: 5.188 kB / 0.9556 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.454e-05/0.6164, allocations: 1.531 kB / 0.9556 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.663e-05/0.6165, allocations: 7.984 kB / 0.9556 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.6165, allocations: 2.688 kB / 0.9556 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.614e-05/0.6165, allocations: 80.53 kB / 0.9556 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6165, allocations: 0 / 0.9556 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002638/0.6168, allocations: 45.53 kB / 0.9557 GB, free: 3.992 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_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.0003895/0.6172, allocations: 0.7764 MB / 0.9564 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001287/0.6173, allocations: 71.16 kB / 0.9565 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6173, allocations: 0 / 0.9565 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.791e-05/0.6174, allocations: 40.89 kB / 0.9566 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.6176, allocations: 13.16 kB / 0.9566 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.6186, allocations: 1.498 MB / 0.958 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.12e-05/0.6187, allocations: 0.6917 MB / 0.9587 GB, free: 1.125 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.225e-05/0.6188, allocations: 11.06 kB / 0.9587 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.133e-05/0.6188, allocations: 14.94 kB / 0.9587 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.6188, allocations: 2.656 kB / 0.9587 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.6366, allocations: 2.025 MB / 0.9607 GB, free: 80 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.395/8.032, allocations: 11.03 kB / 0.9607 GB, free: 72 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)