Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_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.005295/0.005295, allocations: 100.9 kB / 15.73 MB, free: 6.5 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.001257/0.001257, allocations: 196.5 kB / 16.68 MB, free: 6.375 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.317/2.317, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 66.89 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2522/0.2535, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002612/0.2561, allocations: 1.278 MB / 1.089 GB, free: 0.7344 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.2572, allocations: 0.6127 MB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.252e-05/0.2573, allocations: 0 / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.319e-05/0.2573, allocations: 7.984 kB / 1.089 GB, free: 116 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.429e-05/0.2574, allocations: 7.922 kB / 1.089 GB, free: 108 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007021/0.2581, allocations: 147.3 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.394e-05/0.2582, allocations: 23.86 kB / 1.089 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.139e-05/0.2583, allocations: 4 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.759e-05/0.2583, allocations: 8 kB / 1.09 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.921e-05/0.2584, allocations: 15.91 kB / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.2584, allocations: 0 / 1.09 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005197/0.2589, allocations: 343.3 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.45e-05/0.2589, allocations: 7.984 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.259, allocations: 7.938 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002817/0.2593, allocations: 139.1 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.2593, allocations: 0 / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2593, allocations: 3.938 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.131e-06/0.2593, allocations: 4 kB / 1.09 GB, free: 15.42 MB / 0.8575 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.0004446/0.2597, allocations: 359.7 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.2598, allocations: 12.03 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.815e-05/0.2598, allocations: 34.75 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.457e-05/0.2599, allocations: 4.844 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.26, allocations: 172.4 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.26, allocations: 384 / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.188e-05/0.2601, allocations: 4.375 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001332/0.2602, allocations: 42.19 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2602, allocations: 7.938 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.2603, allocations: 0 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2603, allocations: 0 / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.483e-05/0.2603, allocations: 8 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002024/0.2606, allocations: 157.7 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002344/0.2608, allocations: 46.59 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.909e-05/0.2609, allocations: 20.88 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.2609, allocations: 8 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.2609, allocations: 34.5 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.452e-06/0.261, allocations: 0 / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006685/0.2616, allocations: 314.1 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.2617, allocations: 55.41 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.347e-05/0.2618, allocations: 97.84 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.2618, allocations: 33.7 kB / 1.091 GB, free: 13.78 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.713e-05/0.2618, allocations: 80.14 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.2619, allocations: 19.66 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.945e-05/0.2619, allocations: 25.7 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.253e-05/0.262, allocations: 310.8 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.017e-05/0.262, allocations: 12 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.508e-05/0.2621, allocations: 11.98 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.95e-05/0.2621, allocations: 36.73 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.2621, allocations: 4 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001137/0.2623, allocations: 77.52 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.2623, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.2623, allocations: 0 / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.2623, allocations: 4 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.106e-05/0.2624, allocations: 8 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.2624, allocations: 0 / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.17e-05/0.2624, allocations: 3.984 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.2624, allocations: 4 kB / 1.092 GB, free: 13.16 MB / 0.8575 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 7.902e-05/0.2625, allocations: 117.8 kB / 1.092 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.2625, allocations: 7.938 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.2627, allocations: 65.66 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2627, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2627, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2627, allocations: 3.984 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003113/0.263, allocations: 319.5 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.263, allocations: 0 / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.625e-05/0.2631, allocations: 8 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.2631, allocations: 8.031 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.2631, allocations: 4 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2632, allocations: 3.938 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2632, allocations: 0 / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000188/0.2634, allocations: 192.2 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.66e-05/0.2634, allocations: 81.09 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.558e-05/0.2634, allocations: 4 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.257e-05/0.2635, allocations: 4.062 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.425e-05/0.2635, allocations: 0.5156 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.615e-06/0.2636, allocations: 8 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.896e-05/0.2636, allocations: 87.25 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2636, allocations: 0 / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002698/0.2639, allocations: 16 kB / 1.093 GB, free: 12.14 MB / 0.8575 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.0005222/0.2644, allocations: 0.7367 MB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001181/0.2645, allocations: 28 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.2646, allocations: 7.938 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.9e-05/0.2646, allocations: 15.92 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002342/0.2648, allocations: 8 kB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.2661, allocations: 1.316 MB / 1.095 GB, free: 9.914 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.2663, allocations: 0.6807 MB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.105e-05/0.2664, allocations: 12.12 kB / 1.096 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.694e-05/0.2664, allocations: 15.44 kB / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of SimCode: time 4.51e-07/0.2664, allocations: 0 / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.2872, allocations: 1.629 MB / 1.097 GB, free: 7.73 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.211/8.498, allocations: 15.5 kB / 1.097 GB, free: 7.719 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_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_m_flow_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)