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.001121/0.001127, allocations: 102.5 kB / 16.41 MB, free: 6.445 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.001144/0.001144, allocations: 192.2 kB / 17.34 MB, free: 5.707 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.321/1.321, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.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.412/2.412, allocations: 437.1 MB / 0.7112 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 75.88 kB / 1.019 GB, free: 9.461 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8552/0.8564, allocations: 151.6 MB / 1.167 GB, free: 3.863 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001529/0.858, allocations: 0.5293 MB / 1.168 GB, free: 3.34 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0004209/0.8584, allocations: 191.4 kB / 1.168 GB, free: 3.152 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.678e-05/0.8585, allocations: 0 / 1.168 GB, free: 3.152 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.527e-05/0.8585, allocations: 0 / 1.168 GB, free: 3.152 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.269e-05/0.8585, allocations: 3.938 kB / 1.168 GB, free: 3.148 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003472/0.8589, allocations: 63.84 kB / 1.168 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.202e-05/0.8589, allocations: 12 kB / 1.168 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.858e-05/0.859, allocations: 3.984 kB / 1.168 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.726e-05/0.859, allocations: 4 kB / 1.168 GB, free: 3.066 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.689e-05/0.859, allocations: 11.92 kB / 1.168 GB, free: 3.055 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.051e-05/0.8591, allocations: 0 / 1.168 GB, free: 3.055 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002041/0.8593, allocations: 127.8 kB / 1.168 GB, free: 2.93 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.356e-05/0.8593, allocations: 7.984 kB / 1.168 GB, free: 2.922 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.713e-05/0.8594, allocations: 15.92 kB / 1.168 GB, free: 2.906 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.8595, allocations: 67.83 kB / 1.168 GB, free: 2.84 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.8595, allocations: 0 / 1.168 GB, free: 2.84 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.482e-06/0.8595, allocations: 4 kB / 1.168 GB, free: 2.836 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.8595, allocations: 0 / 1.168 GB, free: 2.836 MB / 0.8887 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.0003446/0.8599, allocations: 339.3 kB / 1.169 GB, free: 2.457 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.8599, allocations: 8.031 kB / 1.169 GB, free: 2.449 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.208e-05/0.86, allocations: 8.938 kB / 1.169 GB, free: 2.441 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.8601, allocations: 168.2 kB / 1.169 GB, free: 2.238 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.128e-06/0.8601, allocations: 4.375 kB / 1.169 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.8601, allocations: 384 / 1.169 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.472e-05/0.8602, allocations: 46.25 kB / 1.169 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.8602, allocations: 192 / 1.169 GB, free: 2.184 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.8602, allocations: 3.938 kB / 1.169 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.8602, allocations: 0 / 1.169 GB, free: 2.18 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.639e-05/0.8603, allocations: 11.98 kB / 1.169 GB, free: 2.168 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001632/0.8604, allocations: 157.7 kB / 1.169 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 5.4e-05/0.8605, allocations: 30.55 kB / 1.169 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.303e-05/0.8605, allocations: 12.91 kB / 1.169 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.8606, allocations: 11.94 kB / 1.169 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.8606, allocations: 34.56 kB / 1.169 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.8606, allocations: 0 / 1.169 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0004973/0.8611, allocations: 298.2 kB / 1.169 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/0.8612, allocations: 59.34 kB / 1.169 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.59e-05/0.8612, allocations: 106.1 kB / 1.17 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.215e-05/0.8613, allocations: 29.7 kB / 1.17 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.718e-05/0.8613, allocations: 88.14 kB / 1.17 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.8613, allocations: 9.641 kB / 1.17 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.164e-05/0.8614, allocations: 21.7 kB / 1.17 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.8615, allocations: 310.8 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.439e-05/0.8615, allocations: 15.98 kB / 1.17 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.111e-05/0.8616, allocations: 21.72 kB / 1.17 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.473e-05/0.8616, allocations: 49.64 kB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.32e-07/0.8616, allocations: 0 / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.841e-05/0.8617, allocations: 65.62 kB / 1.17 GB, free: 0.6875 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.8617, allocations: 7.938 kB / 1.17 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.8618, allocations: 0 / 1.17 GB, free: 0.6797 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.8618, allocations: 4.141 kB / 1.17 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.597e-05/0.8618, allocations: 7.984 kB / 1.17 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.8618, allocations: 4.062 kB / 1.17 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.537e-05/0.8619, allocations: 3.984 kB / 1.17 GB, free: 0.6602 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.8619, allocations: 4 kB / 1.17 GB, free: 0.6562 MB / 0.8887 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 6.519e-05/0.8619, allocations: 113.8 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.223e-05/0.862, allocations: 7.844 kB / 1.17 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001266/0.8621, allocations: 69.52 kB / 1.17 GB, free: 456 kB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.8621, allocations: 4 kB / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.8621, allocations: 0 / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.8621, allocations: 0 / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.8622, allocations: 169.7 kB / 1.17 GB, free: 232 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.8623, allocations: 0 / 1.17 GB, free: 232 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.661e-05/0.8623, allocations: 8 kB / 1.17 GB, free: 224 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.8623, allocations: 3.938 kB / 1.17 GB, free: 220 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.8623, allocations: 4 kB / 1.171 GB, free: 216 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.196e-05/0.8623, allocations: 7.938 kB / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.8624, allocations: 0 / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001332/0.8625, allocations: 101.1 kB / 1.171 GB, free: 88 kB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.8626, allocations: 89.11 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.28e-05/0.8626, allocations: 3.938 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.76e-05/0.8626, allocations: 3.938 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.705e-05/0.8627, allocations: 4 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.8627, allocations: 0 / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.59e-05/0.8627, allocations: 91.58 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.8627, allocations: 0 / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002084/0.8629, allocations: 20 kB / 1.171 GB, free: 15.86 MB / 0.9044 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.0001808/0.8631, allocations: 119.2 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 9.207e-05/0.8632, allocations: 39.91 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.8632, allocations: 0 / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 2.236e-05/0.8633, allocations: 15.94 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.8634, allocations: 4 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002651/0.8637, allocations: 159.2 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/0.864, allocations: 0.6846 MB / 1.172 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.664e-05/0.864, allocations: 7.438 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.864, allocations: 8.125 kB / 1.172 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of Templates: time 0.002316/0.8664, allocations: 0.8484 MB / 1.173 GB, free: 13.92 MB / 0.9044 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