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.00171/0.00171, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001961/0.00196, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.393/1.393, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.482/2.482, allocations: 390.2 MB / 0.6643 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 67.89 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6867/0.688, allocations: 140.4 MB / 0.9491 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002763/0.6908, allocations: 1.533 MB / 0.9506 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009377/0.6918, allocations: 0.6363 MB / 0.9512 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.245e-05/0.6918, allocations: 0 / 0.9512 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.799e-05/0.6919, allocations: 0 / 0.9512 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.211e-05/0.6919, allocations: 5.312 kB / 0.9512 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005213/0.6924, allocations: 143.7 kB / 0.9514 GB, free: 7.309 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.646e-05/0.6925, allocations: 49.8 kB / 0.9514 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.661e-05/0.6926, allocations: 8.125 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.384e-05/0.6927, allocations: 21.55 kB / 0.9514 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.468e-05/0.6927, allocations: 32.14 kB / 0.9515 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.6927, allocations: 2.75 kB / 0.9515 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004501/0.6932, allocations: 349.5 kB / 0.9518 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.538e-05/0.6932, allocations: 10.91 kB / 0.9518 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.65e-05/0.6932, allocations: 26.67 kB / 0.9518 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002902/0.6935, allocations: 173.1 kB / 0.952 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.6936, allocations: 1.406 kB / 0.952 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.744e-06/0.6936, allocations: 0 / 0.952 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.6936, allocations: 4 kB / 0.952 GB, free: 6.91 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005429/0.6941, allocations: 399.4 kB / 0.9524 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.6942, allocations: 8.875 kB / 0.9524 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.874e-05/0.6942, allocations: 8.312 kB / 0.9524 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.848e-05/0.6943, allocations: 174.6 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.6943, allocations: 3.031 kB / 0.9526 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.6944, allocations: 13.78 kB / 0.9526 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.6946, allocations: 84.44 kB / 0.9527 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.6946, allocations: 1.281 kB / 0.9527 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.517e-05/0.6947, allocations: 7.938 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.6947, allocations: 2.625 kB / 0.9527 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002292/0.6949, allocations: 52.25 kB / 0.9527 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004809/0.6954, allocations: 320.5 kB / 0.953 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.6957, allocations: 79.69 kB / 0.9531 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.6958, allocations: 30.97 kB / 0.9531 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.6958, allocations: 5.109 kB / 0.9531 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.6959, allocations: 36.81 kB / 0.9532 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.6959, allocations: 0 / 0.9532 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001526/0.6974, allocations: 0.6447 MB / 0.9538 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.6974, allocations: 52.59 kB / 0.9539 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.139e-05/0.6975, allocations: 103.2 kB / 0.954 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.18e-05/0.6975, allocations: 33.64 kB / 0.954 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.685e-05/0.6975, allocations: 90.97 kB / 0.9541 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.958e-05/0.6976, allocations: 39.64 kB / 0.9541 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.6976, allocations: 26.44 kB / 0.9541 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.607e-05/0.6977, allocations: 324.2 kB / 0.9545 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.6978, allocations: 30.98 kB / 0.9545 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001182/0.6979, allocations: 34.72 kB / 0.9545 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002369/0.6982, allocations: 74.77 kB / 0.9546 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.6982, allocations: 3.938 kB / 0.9546 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002997/0.6985, allocations: 118.2 kB / 0.9547 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.6985, allocations: 5.531 kB / 0.9547 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.6985, allocations: 0 / 0.9547 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.6986, allocations: 0.9375 kB / 0.9547 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.6987, allocations: 29.14 kB / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.6987, allocations: 0 / 0.9547 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.309e-05/0.6988, allocations: 12.17 kB / 0.9547 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.6988, allocations: 6.375 kB / 0.9548 GB, free: 4.34 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 6.244e-05/0.6989, allocations: 117 kB / 0.9549 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.121e-05/0.6989, allocations: 7.25 kB / 0.9549 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003491/0.6993, allocations: 127.4 kB / 0.955 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.6993, allocations: 1.469 kB / 0.955 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.6993, allocations: 0 / 0.955 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.6993, allocations: 5.656 kB / 0.955 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000477/0.6998, allocations: 383.6 kB / 0.9554 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.6998, allocations: 1 kB / 0.9554 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.6999, allocations: 27.98 kB / 0.9554 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.7, allocations: 1 kB / 0.9554 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.7, allocations: 9.031 kB / 0.9554 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.7, allocations: 1.125 kB / 0.9554 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.7, allocations: 4 kB / 0.9554 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004603/0.7004, allocations: 252.5 kB / 0.9557 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.019e-05/0.7005, allocations: 78.23 kB / 0.9557 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.7005, allocations: 5.094 kB / 0.9557 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.7006, allocations: 8.672 kB / 0.9557 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.344e-05/0.7007, allocations: 15.36 kB / 0.9558 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.7007, allocations: 7.422 kB / 0.9558 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.529e-05/0.7007, allocations: 79.06 kB / 0.9558 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7007, allocations: 0 / 0.9558 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002847/0.701, allocations: 45.59 kB / 0.9559 GB, free: 3.336 MB / 0.7169 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.000208/0.7012, allocations: 134.4 kB / 0.956 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000334/0.7016, allocations: 96.48 kB / 0.9561 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.7016, allocations: 0 / 0.9561 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.7017, allocations: 48.16 kB / 0.9561 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003109/0.702, allocations: 13.2 kB / 0.9562 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000569/0.7026, allocations: 334.5 kB / 0.9565 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.7027, allocations: 0.6989 MB / 0.9572 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.843e-05/0.7028, allocations: 7.828 kB / 0.9572 GB, free: 2.164 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.628e-05/0.7028, allocations: 13.28 kB / 0.9572 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.7028, allocations: 0 / 0.9572 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of Templates: time 0.003142/0.706, allocations: 1.13 MB / 0.9583 GB, free: 1.613 MB / 0.7169 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) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches