Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Utilities.Examples.ExtendedPolynomialDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck") translateModel(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006962/0.006963, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001372/0.001372, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.409/1.409, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.711/2.711, allocations: 437 MB / 0.7106 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 64.08 kB / 0.8692 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6848/0.6864, allocations: 151.6 MB / 1.017 GB, free: 2.906 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.002292/0.6888, allocations: 0.5896 MB / 1.018 GB, free: 2.316 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006423/0.6894, allocations: 199.4 kB / 1.018 GB, free: 2.121 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.99e-05/0.6895, allocations: 4 kB / 1.018 GB, free: 2.117 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.56e-05/0.6895, allocations: 0 / 1.018 GB, free: 2.117 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.911e-05/0.6896, allocations: 4 kB / 1.018 GB, free: 2.113 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004177/0.69, allocations: 47.86 kB / 1.018 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.912e-05/0.6901, allocations: 8 kB / 1.018 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.061e-05/0.6902, allocations: 3.984 kB / 1.018 GB, free: 2.055 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.952e-05/0.6902, allocations: 7.938 kB / 1.018 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.999e-05/0.6902, allocations: 8 kB / 1.018 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.6903, allocations: 0 / 1.018 GB, free: 2.039 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002456/0.6905, allocations: 123.8 kB / 1.018 GB, free: 1.918 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 5.037e-05/0.6906, allocations: 4 kB / 1.018 GB, free: 1.914 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.756e-05/0.6906, allocations: 15.88 kB / 1.018 GB, free: 1.898 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.6908, allocations: 43.92 kB / 1.018 GB, free: 1.855 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.6908, allocations: 0 / 1.018 GB, free: 1.855 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.342e-06/0.6908, allocations: 4 kB / 1.018 GB, free: 1.852 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.6908, allocations: 0 / 1.018 GB, free: 1.852 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003927/0.6912, allocations: 337.4 kB / 1.019 GB, free: 1.473 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.6912, allocations: 12.03 kB / 1.019 GB, free: 1.461 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.04e-05/0.6913, allocations: 0.9375 kB / 1.019 GB, free: 1.461 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.6914, allocations: 172.3 kB / 1.019 GB, free: 1.254 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.6914, allocations: 8.359 kB / 1.019 GB, free: 1.246 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.124e-05/0.6915, allocations: 4.312 kB / 1.019 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.6916, allocations: 42.19 kB / 1.019 GB, free: 1.195 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.6916, allocations: 192 / 1.019 GB, free: 1.195 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.6916, allocations: 7.938 kB / 1.019 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.6916, allocations: 0 / 1.019 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.859e-05/0.6917, allocations: 12 kB / 1.019 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001877/0.6919, allocations: 157.7 kB / 1.019 GB, free: 0.9727 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 5.971e-05/0.6919, allocations: 30.56 kB / 1.019 GB, free: 0.9336 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.262e-05/0.692, allocations: 8.922 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 5.24e-05/0.692, allocations: 4 kB / 1.019 GB, free: 0.918 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.692, allocations: 38.5 kB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.6921, allocations: 0 / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of matching and sorting (n=3): time 0.0006435/0.6927, allocations: 306.4 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.6928, allocations: 51.41 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.208e-05/0.6928, allocations: 105.8 kB / 1.02 GB, free: 352 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.597e-05/0.6929, allocations: 29.7 kB / 1.02 GB, free: 316 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 4.521e-05/0.6929, allocations: 92.11 kB / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.693, allocations: 3.906 kB / 1.02 GB, free: 216 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.471e-05/0.693, allocations: 17.72 kB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.6931, allocations: 318.8 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.695e-05/0.6932, allocations: 19.92 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.644e-05/0.6932, allocations: 25.7 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.575e-05/0.6933, allocations: 41.66 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.6933, allocations: 0 / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001057/0.6934, allocations: 69.58 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.6934, allocations: 7.938 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.6934, allocations: 8.062 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.6935, allocations: 0 / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.883e-05/0.6935, allocations: 7.938 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.6935, allocations: 4.312 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.631e-05/0.6936, allocations: 0 / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.6936, allocations: 4 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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 9.14e-05/0.6937, allocations: 114.4 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.398e-05/0.6937, allocations: 3.938 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001554/0.6939, allocations: 81.56 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.6939, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.6939, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.6939, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.694, allocations: 161.7 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.694, allocations: 0 / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.921e-05/0.6941, allocations: 15.92 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.6941, allocations: 3.938 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.787e-06/0.6941, allocations: 3.938 kB / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.6941, allocations: 0 / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.6941, allocations: 0 / 1.021 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001593/0.6943, allocations: 113.2 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.392e-05/0.6943, allocations: 77.11 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.6944, allocations: 3.938 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.615e-05/0.6944, allocations: 3.984 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.497e-05/0.6944, allocations: 8.031 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.6945, allocations: 0 / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.129e-05/0.6945, allocations: 87.27 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6945, allocations: 4.062 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002246/0.6948, allocations: 24 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (3): * Single equations (assignments): 3 * 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.0002085/0.695, allocations: 119.1 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001075/0.6951, allocations: 31.98 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6951, allocations: 0 / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.407e-05/0.6951, allocations: 15.98 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001602/0.6953, allocations: 8 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003397/0.6956, allocations: 173 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.6959, allocations: 0.6809 MB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.94e-05/0.696, allocations: 7.438 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of SimCode: time 6.91e-07/0.696, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of Templates: time 0.00268/0.6986, allocations: 0.8546 MB / 1.023 GB, free: 12.91 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches