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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008761/0.0008761, allocations: 91.92 kB / 16.02 MB, free: 80 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.001073/0.001073, allocations: 179.8 kB / 16.92 MB, free: 6.652 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.382/1.382, allocations: 223.3 MB / 241 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.367/2.367, allocations: 390.9 MB / 0.667 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003574/0.0003581, allocations: 12 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7188/0.7191, allocations: 142.4 MB / 0.9557 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001283/0.7205, allocations: 1.009 MB / 0.9567 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009877/0.7215, allocations: 0.6102 MB / 0.9573 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.806e-05/0.7215, allocations: 1.094 kB / 0.9573 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.149e-05/0.7215, allocations: 3.938 kB / 0.9573 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.954e-05/0.7216, allocations: 1.281 kB / 0.9573 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005064/0.7221, allocations: 127.3 kB / 0.9574 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.263e-05/0.7222, allocations: 12.94 kB / 0.9574 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.458e-05/0.7222, allocations: 5.422 kB / 0.9574 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.908e-05/0.7223, allocations: 17 kB / 0.9575 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.908e-05/0.7223, allocations: 3.375 kB / 0.9575 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.295e-05/0.7223, allocations: 5.156 kB / 0.9575 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004908/0.7228, allocations: 340.7 kB / 0.9578 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.378e-05/0.7229, allocations: 8.984 kB / 0.9578 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.225e-05/0.7229, allocations: 32.86 kB / 0.9578 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.7231, allocations: 104.9 kB / 0.9579 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.7231, allocations: 0 / 0.9579 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.765e-06/0.7231, allocations: 0 / 0.9579 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.7231, allocations: 0 / 0.9579 GB, free: 5.977 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000348/0.7235, allocations: 356.7 kB / 0.9583 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.7235, allocations: 14.25 kB / 0.9583 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.071e-05/0.7236, allocations: 2.031 kB / 0.9583 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.841e-05/0.7237, allocations: 165.5 kB / 0.9584 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.849e-06/0.7237, allocations: 1.375 kB / 0.9584 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.297e-05/0.7237, allocations: 6.75 kB / 0.9584 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.7238, allocations: 37.22 kB / 0.9585 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.7238, allocations: 192 / 0.9585 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.7238, allocations: 7.938 kB / 0.9585 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.7239, allocations: 1.781 kB / 0.9585 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.136e-05/0.7239, allocations: 13.33 kB / 0.9585 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001509/0.7241, allocations: 160.1 kB / 0.9587 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.7243, allocations: 41.78 kB / 0.9587 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.129e-05/0.7243, allocations: 16.52 kB / 0.9587 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.7243, allocations: 1.531 kB / 0.9587 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.7243, allocations: 37.66 kB / 0.9588 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.593e-06/0.7243, allocations: 7.984 kB / 0.9588 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.000615/0.725, allocations: 321.6 kB / 0.9591 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/0.725, allocations: 55.34 kB / 0.9591 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.512e-05/0.7251, allocations: 94.39 kB / 0.9592 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.7251, allocations: 25.7 kB / 0.9592 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.531e-05/0.7251, allocations: 89.41 kB / 0.9593 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.534e-05/0.7251, allocations: 18.25 kB / 0.9593 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-05/0.7251, allocations: 18.97 kB / 0.9594 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.529e-05/0.7252, allocations: 320.2 kB / 0.9597 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.522e-05/0.7252, allocations: 9.906 kB / 0.9597 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.982e-05/0.7253, allocations: 11.59 kB / 0.9597 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.794e-05/0.7253, allocations: 31.94 kB / 0.9597 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.7253, allocations: 0 / 0.9597 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.494e-05/0.7254, allocations: 64.8 kB / 0.9598 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.7254, allocations: 9.375 kB / 0.9598 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.7255, allocations: 3.984 kB / 0.9598 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.7255, allocations: 1.375 kB / 0.9598 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.213e-05/0.7255, allocations: 17.06 kB / 0.9598 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.7255, allocations: 1.344 kB / 0.9598 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.716e-05/0.7256, allocations: 0 / 0.9598 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.7256, allocations: 2.594 kB / 0.9598 GB, free: 3.988 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 (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 5.516e-05/0.7256, allocations: 110.8 kB / 0.9599 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.166e-05/0.7257, allocations: 6.406 kB / 0.9599 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001331/0.7258, allocations: 74.3 kB / 0.96 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.7258, allocations: 1.125 kB / 0.96 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.7258, allocations: 4 kB / 0.96 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.7258, allocations: 1.125 kB / 0.96 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002568/0.7261, allocations: 316 kB / 0.9603 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.7261, allocations: 0 / 0.9603 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.3e-05/0.7262, allocations: 17.95 kB / 0.9603 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.7262, allocations: 1.156 kB / 0.9603 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.7262, allocations: 2.094 kB / 0.9603 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.7262, allocations: 0 / 0.9603 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.7262, allocations: 1.875 kB / 0.9603 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.7263, allocations: 185.6 kB / 0.9605 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.712e-05/0.7264, allocations: 83.02 kB / 0.9606 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.7264, allocations: 2 kB / 0.9606 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.904e-05/0.7265, allocations: 3.938 kB / 0.9606 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.141e-05/0.7265, allocations: 11.86 kB / 0.9606 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.7265, allocations: 1.906 kB / 0.9606 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.966e-05/0.7265, allocations: 81.28 kB / 0.9607 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7265, allocations: 0 / 0.9607 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002554/0.7268, allocations: 18.5 kB / 0.9607 GB, free: 3.09 MB / 0.7169 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.0001727/0.727, allocations: 129.5 kB / 0.9608 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 9.487e-05/0.7271, allocations: 32.52 kB / 0.9608 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.7271, allocations: 0 / 0.9608 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.526e-05/0.7271, allocations: 18.89 kB / 0.9609 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.7274, allocations: 10.41 kB / 0.9609 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003779/0.7277, allocations: 258.8 kB / 0.9611 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.7279, allocations: 0.6806 MB / 0.9618 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.899e-05/0.7279, allocations: 10.97 kB / 0.9618 GB, free: 2 MB / 0.7169 GB Notification: Performance of SimCode: time 4.41e-07/0.7279, allocations: 0 / 0.9618 GB, free: 2 MB / 0.7169 GB Notification: Performance of Templates: time 0.002292/0.7302, allocations: 0.7934 MB / 0.9626 GB, free: 1.602 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (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 & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)