Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001717/0.001717, allocations: 157.7 kB / 22.75 MB, free: 1.684 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.509/1.509, allocations: 177.1 MB / 203.1 MB, free: 5.27 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.217/3.217, allocations: 429.6 MB / 0.673 GB, free: 3.91 MB / 0.6355 GB " [Timeout remaining time 176] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.235e-06/2.235e-06, allocations: 0 / 0.8776 GB, free: 6.516 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.478e-05/3.702e-05, allocations: 6.25 kB / 0.8776 GB, free: 6.508 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002998/0.003035, allocations: 1.332 MB / 0.8789 GB, free: 5.188 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.004296, allocations: 0.5433 MB / 0.8795 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.842e-05/0.004324, allocations: 1.031 kB / 0.8795 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.283e-05/0.004347, allocations: 0 / 0.8795 GB, free: 4.648 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 4.624e-05/0.004393, allocations: 5.109 kB / 0.8795 GB, free: 4.645 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007627/0.005156, allocations: 156.3 kB / 0.8796 GB, free: 4.492 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 7.489e-05/0.005231, allocations: 23.92 kB / 0.8796 GB, free: 4.469 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.941e-05/0.00527, allocations: 4 kB / 0.8796 GB, free: 4.465 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 5.405e-05/0.005324, allocations: 27.5 kB / 0.8797 GB, free: 4.441 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.995e-05/0.005394, allocations: 7.984 kB / 0.8797 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.00541, allocations: 0 / 0.8797 GB, free: 4.434 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005413/0.005951, allocations: 279.3 kB / 0.8799 GB, free: 4.16 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 1.831e-05/0.00597, allocations: 3.984 kB / 0.8799 GB, free: 4.156 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.056e-05/0.006, allocations: 8 kB / 0.8799 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0003524/0.006353, allocations: 163.5 kB / 0.8801 GB, free: 3.988 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.006357, allocations: 0 / 0.8801 GB, free: 3.988 MB / 0.8386 GB Notification: Performance of FrontEnd: time 9.61e-07/0.006358, allocations: 0 / 0.8801 GB, free: 3.988 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.006364, allocations: 4 kB / 0.8801 GB, free: 3.984 MB / 0.8386 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.0005062/0.00687, allocations: 294.6 kB / 0.8804 GB, free: 3.664 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.006915, allocations: 12.62 kB / 0.8804 GB, free: 3.652 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.862e-05/0.006974, allocations: 4.938 kB / 0.8804 GB, free: 3.648 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.007098, allocations: 106.3 kB / 0.8805 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.9e-05/0.007117, allocations: 9.5 kB / 0.8805 GB, free: 3.512 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.174e-05/0.007149, allocations: 8.312 kB / 0.8805 GB, free: 3.504 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001853/0.007334, allocations: 105.6 kB / 0.8806 GB, free: 3.383 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.007351, allocations: 9.672 kB / 0.8806 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.007363, allocations: 384 / 0.8806 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.007369, allocations: 384 / 0.8806 GB, free: 3.375 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.331e-05/0.007432, allocations: 23.92 kB / 0.8807 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001917/0.007624, allocations: 106.1 kB / 0.8808 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001473/0.007771, allocations: 58.5 kB / 0.8808 GB, free: 3.152 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.699e-05/0.007828, allocations: 29.81 kB / 0.8808 GB, free: 3.121 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.34e-05/0.007851, allocations: 0 / 0.8808 GB, free: 3.121 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.037e-05/0.007892, allocations: 38.56 kB / 0.8809 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 7.92e-07/0.007893, allocations: 0 / 0.8809 GB, free: 3.074 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.001311/0.009204, allocations: 455.8 kB / 0.8813 GB, free: 2.574 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.009252, allocations: 55.41 kB / 0.8814 GB, free: 2.508 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.484e-05/0.009347, allocations: 93.84 kB / 0.8815 GB, free: 2.406 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.009371, allocations: 29.7 kB / 0.8815 GB, free: 2.371 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.009423, allocations: 84.14 kB / 0.8816 GB, free: 2.285 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.001e-05/0.009473, allocations: 39.78 kB / 0.8816 GB, free: 2.246 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.802e-05/0.009531, allocations: 29.7 kB / 0.8816 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001787/0.00971, allocations: 314.8 kB / 0.8819 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.471e-05/0.009764, allocations: 27.92 kB / 0.882 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.218e-05/0.009807, allocations: 19.98 kB / 0.882 GB, free: 1.848 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.009912, allocations: 55.23 kB / 0.882 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.009912, allocations: 0 / 0.882 GB, free: 1.793 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001802/0.01009, allocations: 105.6 kB / 0.8821 GB, free: 1.684 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.01011, allocations: 8 kB / 0.8821 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.01012, allocations: 0 / 0.8821 GB, free: 1.676 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.01014, allocations: 3.938 kB / 0.8821 GB, free: 1.672 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.01025, allocations: 23.94 kB / 0.8822 GB, free: 1.648 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.296e-06/0.01026, allocations: 3.984 kB / 0.8822 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.347e-05/0.01029, allocations: 15.98 kB / 0.8822 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.0103, allocations: 0 / 0.8822 GB, free: 1.629 MB / 0.8386 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 0.0001042/0.0104, allocations: 113.8 kB / 0.8823 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.256e-05/0.01043, allocations: 7.938 kB / 0.8823 GB, free: 1.5 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002317/0.01066, allocations: 105.7 kB / 0.8824 GB, free: 1.395 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.01066, allocations: 3.938 kB / 0.8824 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.01067, allocations: 0 / 0.8824 GB, free: 1.391 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.01067, allocations: 3.984 kB / 0.8824 GB, free: 1.387 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007155/0.01139, allocations: 302.1 kB / 0.8827 GB, free: 1.055 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.01139, allocations: 0 / 0.8827 GB, free: 1.055 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.01151, allocations: 23.92 kB / 0.8827 GB, free: 1.031 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.01151, allocations: 3.938 kB / 0.8827 GB, free: 1.027 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.01152, allocations: 4 kB / 0.8827 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.01152, allocations: 0 / 0.8827 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.01152, allocations: 0 / 0.8827 GB, free: 1.023 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003138/0.01184, allocations: 207.9 kB / 0.8829 GB, free: 0.8047 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.797e-05/0.01186, allocations: 15.95 kB / 0.8829 GB, free: 0.7891 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.294e-05/0.01188, allocations: 11.88 kB / 0.8829 GB, free: 0.7773 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.224e-05/0.01197, allocations: 8.062 kB / 0.883 GB, free: 0.7695 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.26e-05/0.01199, allocations: 3.984 kB / 0.883 GB, free: 0.7656 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-06/0.012, allocations: 4 kB / 0.883 GB, free: 0.7617 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.459e-05/0.01206, allocations: 83.28 kB / 0.883 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of sort global known variables: time 6e-08/0.01206, allocations: 0 / 0.883 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003052/0.01236, allocations: 39.81 kB / 0.8831 GB, free: 0.6406 MB / 0.8386 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.0002826/0.01265, allocations: 131.1 kB / 0.8832 GB, free: 0.5 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001644/0.01281, allocations: 60.02 kB / 0.8833 GB, free: 452 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01281, allocations: 0 / 0.8833 GB, free: 452 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.802e-05/0.01287, allocations: 36.03 kB / 0.8833 GB, free: 416 kB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.0131, allocations: 4 kB / 0.8833 GB, free: 412 kB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005675/0.01367, allocations: 244.2 kB / 0.8835 GB, free: 140 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.805e-05/0.01376, allocations: 75.19 kB / 0.8836 GB, free: 44 kB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.712e-05/0.0138, allocations: 8 kB / 0.8836 GB, free: 36 kB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.877e-05/0.01384, allocations: 16.5 kB / 0.8836 GB, free: 20 kB / 0.8386 GB Notification: Performance of SimCode: time 7.81e-07/0.01384, allocations: 0 / 0.8836 GB, free: 20 kB / 0.8386 GB Notification: Performance of Templates: time 0.004334/0.01818, allocations: 0.9443 MB / 0.8846 GB, free: 15.12 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.313296239008196]