Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 102.9 kB / 16.27 MB, free: 6.414 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.001219/0.001219, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.334/1.334, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.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.236/2.236, allocations: 390.3 MB / 0.6653 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.91 kB / 0.8132 GB, free: 32.92 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3383, allocations: 140.4 MB / 0.9503 GB, free: 8.855 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002941/0.3412, allocations: 1.474 MB / 0.9517 GB, free: 7.367 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.3424, allocations: 0.6227 MB / 0.9523 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.204e-05/0.3425, allocations: 0 / 0.9523 GB, free: 6.742 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.813e-05/0.3426, allocations: 7.922 kB / 0.9523 GB, free: 6.734 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.684e-05/0.3427, allocations: 7.922 kB / 0.9523 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000694/0.3434, allocations: 163.3 kB / 0.9525 GB, free: 6.566 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.901e-05/0.3435, allocations: 59.72 kB / 0.9525 GB, free: 6.508 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.104e-05/0.3435, allocations: 7.984 kB / 0.9526 GB, free: 6.5 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.039e-05/0.3436, allocations: 15.94 kB / 0.9526 GB, free: 6.484 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.219e-05/0.3436, allocations: 31.89 kB / 0.9526 GB, free: 6.453 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.3437, allocations: 4 kB / 0.9526 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005117/0.3442, allocations: 347.3 kB / 0.9529 GB, free: 6.109 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.397e-05/0.3442, allocations: 15.91 kB / 0.953 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.864e-05/0.3443, allocations: 23.88 kB / 0.953 GB, free: 6.07 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.3446, allocations: 179.8 kB / 0.9531 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.3446, allocations: 4 kB / 0.9532 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3446, allocations: 3.938 kB / 0.9532 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3446, allocations: 0 / 0.9532 GB, free: 5.887 MB / 0.7325 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.0006854/0.3453, allocations: 400.4 kB / 0.9535 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3454, allocations: 12.03 kB / 0.9535 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.816e-05/0.3454, allocations: 4.938 kB / 0.9536 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.3456, allocations: 164.3 kB / 0.9537 GB, free: 5.23 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.3456, allocations: 12.38 kB / 0.9537 GB, free: 5.219 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.416e-05/0.3456, allocations: 4.375 kB / 0.9537 GB, free: 5.215 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.3459, allocations: 78.22 kB / 0.9538 GB, free: 5.133 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3459, allocations: 192 / 0.9538 GB, free: 5.133 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.346, allocations: 11.94 kB / 0.9538 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.346, allocations: 3.938 kB / 0.9538 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002344/0.3462, allocations: 47.95 kB / 0.9539 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005723/0.3468, allocations: 324.6 kB / 0.9542 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.3471, allocations: 82.47 kB / 0.9542 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.3472, allocations: 32.83 kB / 0.9543 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.3472, allocations: 4 kB / 0.9543 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.3473, allocations: 34.56 kB / 0.9543 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.3473, allocations: 0 / 0.9543 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001718/0.349, allocations: 0.6501 MB / 0.955 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.3491, allocations: 55.41 kB / 0.955 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.031e-05/0.3491, allocations: 101.8 kB / 0.9551 GB, free: 3.613 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.3492, allocations: 29.7 kB / 0.9551 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.475e-05/0.3492, allocations: 88.05 kB / 0.9552 GB, free: 3.488 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.156e-05/0.3493, allocations: 43.45 kB / 0.9553 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.535e-05/0.3493, allocations: 25.72 kB / 0.9553 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3495, allocations: 314.8 kB / 0.9556 GB, free: 3.098 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.3496, allocations: 39.91 kB / 0.9556 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.3498, allocations: 31.98 kB / 0.9556 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.35, allocations: 72.64 kB / 0.9557 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.35, allocations: 8 kB / 0.9557 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003278/0.3504, allocations: 117.8 kB / 0.9558 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.3504, allocations: 4 kB / 0.9558 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.3504, allocations: 0 / 0.9558 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.3504, allocations: 0 / 0.9558 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.3506, allocations: 31.92 kB / 0.9559 GB, free: 2.793 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.3506, allocations: 3.984 kB / 0.9559 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.956e-05/0.3507, allocations: 11.94 kB / 0.9559 GB, free: 2.777 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-06/0.3507, allocations: 0 / 0.9559 GB, free: 2.777 MB / 0.7325 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 8.675e-05/0.3508, allocations: 117.9 kB / 0.956 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.301e-05/0.3509, allocations: 11.84 kB / 0.956 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003922/0.3512, allocations: 125.5 kB / 0.9561 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3513, allocations: 4 kB / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3513, allocations: 0 / 0.9561 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3513, allocations: 3.938 kB / 0.9561 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005885/0.3519, allocations: 390.5 kB / 0.9565 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3519, allocations: 0 / 0.9565 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001515/0.352, allocations: 27.92 kB / 0.9565 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.3521, allocations: 0 / 0.9565 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.3521, allocations: 3.938 kB / 0.9565 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.3521, allocations: 0 / 0.9565 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3521, allocations: 4 kB / 0.9565 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005147/0.3526, allocations: 251.3 kB / 0.9568 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.102e-05/0.3527, allocations: 81.02 kB / 0.9569 GB, free: 1.668 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.395e-05/0.3527, allocations: 7.922 kB / 0.9569 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.3528, allocations: 12.03 kB / 0.9569 GB, free: 1.648 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.993e-05/0.3528, allocations: 3.984 kB / 0.9569 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.046e-06/0.3529, allocations: 4 kB / 0.9569 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.263e-05/0.3529, allocations: 87.34 kB / 0.957 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.3529, allocations: 0 / 0.957 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00029/0.3532, allocations: 39.92 kB / 0.957 GB, free: 1.516 MB / 0.7325 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.0002248/0.3534, allocations: 135.1 kB / 0.9571 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003485/0.3538, allocations: 91.81 kB / 0.9572 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3538, allocations: 0 / 0.9572 GB, free: 1.285 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001353/0.354, allocations: 40.42 kB / 0.9573 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002927/0.3543, allocations: 18.81 kB / 0.9573 GB, free: 1.23 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000769/0.355, allocations: 347.5 kB / 0.9576 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.3555, allocations: 0.6961 MB / 0.9583 GB, free: 136 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.713e-05/0.3555, allocations: 15.44 kB / 0.9583 GB, free: 120 kB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.3555, allocations: 3.938 kB / 0.9583 GB, free: 116 kB / 0.7325 GB Notification: Performance of Templates: time 0.00304/0.3586, allocations: 1.318 MB / 0.9596 GB, free: 14.8 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)