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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001206/0.001206, allocations: 108 kB / 15.6 MB, free: 132 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.001436/0.001436, allocations: 196.8 kB / 16.54 MB, free: 6.672 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.5/1.5, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.676/2.676, allocations: 437 MB / 0.7103 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 67.89 kB / 0.8692 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8625/0.864, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.002171/0.8662, allocations: 0.5186 MB / 1.018 GB, free: 1.949 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005851/0.8668, allocations: 191.4 kB / 1.018 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.74e-05/0.8669, allocations: 0 / 1.018 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.033e-05/0.8669, allocations: 3.938 kB / 1.018 GB, free: 1.758 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.246e-05/0.867, allocations: 0 / 1.018 GB, free: 1.758 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005334/0.8675, allocations: 71.72 kB / 1.018 GB, free: 1.688 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.268e-05/0.8676, allocations: 11.98 kB / 1.018 GB, free: 1.676 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.507e-05/0.8677, allocations: 0 / 1.018 GB, free: 1.676 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.571e-05/0.8677, allocations: 11.98 kB / 1.018 GB, free: 1.664 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.953e-05/0.8677, allocations: 3.938 kB / 1.018 GB, free: 1.66 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.8678, allocations: 4 kB / 1.018 GB, free: 1.656 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002441/0.868, allocations: 127.8 kB / 1.018 GB, free: 1.531 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.998e-05/0.8681, allocations: 7.984 kB / 1.018 GB, free: 1.523 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.852e-05/0.8681, allocations: 11.94 kB / 1.018 GB, free: 1.512 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001762/0.8683, allocations: 63.84 kB / 1.018 GB, free: 1.449 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.8683, allocations: 3.984 kB / 1.018 GB, free: 1.445 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.285e-06/0.8683, allocations: 0 / 1.018 GB, free: 1.445 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.8683, allocations: 0 / 1.018 GB, free: 1.445 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.0003911/0.8687, allocations: 347.1 kB / 1.019 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.8688, allocations: 12.03 kB / 1.019 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.8688, allocations: 8.938 kB / 1.019 GB, free: 1.039 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.8689, allocations: 160.4 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.869, allocations: 4.375 kB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.713e-05/0.869, allocations: 4.281 kB / 1.019 GB, free: 0.8359 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001316/0.8691, allocations: 38.25 kB / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.8692, allocations: 192 / 1.019 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.8692, allocations: 3.938 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.8692, allocations: 3.938 kB / 1.019 GB, free: 0.7852 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.169e-05/0.8692, allocations: 11.94 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002105/0.8695, allocations: 169.7 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 5.496e-05/0.8695, allocations: 22.61 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.513e-05/0.8696, allocations: 8.922 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 5.091e-05/0.8696, allocations: 7.984 kB / 1.019 GB, free: 0.5078 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.8696, allocations: 34.56 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.8696, allocations: 0 / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of matching and sorting (n=3): time 0.0005842/0.8702, allocations: 306.2 kB / 1.019 GB, free: 116 kB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.8703, allocations: 55.34 kB / 1.019 GB, free: 48 kB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001058/0.8704, allocations: 117.8 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.8704, allocations: 25.7 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.653e-05/0.8705, allocations: 88.14 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/0.8705, allocations: 3.906 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.497e-05/0.8706, allocations: 21.94 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.8707, allocations: 314.8 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.608e-05/0.8707, allocations: 16 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.552e-05/0.8708, allocations: 21.7 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.629e-05/0.8708, allocations: 41.7 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.8708, allocations: 0 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001074/0.8709, allocations: 81.47 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.871, allocations: 7.938 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.871, allocations: 0 / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.871, allocations: 144 / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.651e-05/0.8711, allocations: 8 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.8711, allocations: 3.984 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.477e-05/0.8711, allocations: 0 / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.109e-05/0.8711, allocations: 7.984 kB / 1.02 GB, free: 15.25 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 8.224e-05/0.8712, allocations: 117.8 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.374e-05/0.8712, allocations: 3.938 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.8714, allocations: 69.58 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.8714, allocations: 4 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.8714, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.8714, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.8715, allocations: 169.6 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.8715, allocations: 4 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.235e-05/0.8716, allocations: 4 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.8716, allocations: 3.938 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.995e-06/0.8716, allocations: 8 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.8716, allocations: 0 / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.8716, allocations: 3.938 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.8718, allocations: 105 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-05/0.8718, allocations: 81.14 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.8718, allocations: 3.938 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.606e-05/0.8719, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.377e-05/0.8719, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.8719, allocations: 8.062 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.614e-05/0.872, allocations: 91.27 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.872, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002168/0.8722, allocations: 20 kB / 1.021 GB, free: 14.46 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.0001869/0.8724, allocations: 115.2 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.653e-05/0.8725, allocations: 31.92 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.8725, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.339e-05/0.8725, allocations: 20.11 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001446/0.8727, allocations: 4 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003088/0.873, allocations: 137.5 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.8733, allocations: 0.6807 MB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.811e-05/0.8733, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.764e-05/0.8734, allocations: 15.38 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.8734, allocations: 0 / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of Templates: time 0.003374/0.8767, allocations: 0.8986 MB / 1.023 GB, free: 12.5 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches