Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.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.001865/0.001865, allocations: 79.73 kB / 19.76 MB, free: 1.879 MB / 14.72 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.002361/0.002361, allocations: 161.2 kB / 23.01 MB, free: 4.574 MB / 14.72 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.405/1.405, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 179] 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 2.861/2.861, allocations: 394.2 MB / 0.6386 GB, free: 11.91 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 13.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.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|x",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 63.91 kB / 1.009 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7944/0.7965, allocations: 181.8 MB / 1.187 GB, free: 16.2 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001515/0.798, allocations: 0.592 MB / 1.187 GB, free: 15.84 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0002057/0.7982, allocations: 21.69 kB / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.02e-05/0.7982, allocations: 5.562 kB / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 1.134e-05/0.7983, allocations: 0 / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 4.979e-06/0.7983, allocations: 0 / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.7985, allocations: 11.45 kB / 1.187 GB, free: 15.82 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 4.151e-05/0.7986, allocations: 6.406 kB / 1.187 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.307e-05/0.7986, allocations: 6.031 kB / 1.187 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 1.11e-05/0.7986, allocations: 0 / 1.187 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 1.987e-05/0.7986, allocations: 1.891 kB / 1.187 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.7986, allocations: 1.406 kB / 1.187 GB, free: 15.81 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 7.742e-05/0.7987, allocations: 23.98 kB / 1.187 GB, free: 15.8 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 7.794e-06/0.7987, allocations: 3.938 kB / 1.187 GB, free: 15.79 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 1.369e-05/0.7987, allocations: 0 / 1.187 GB, free: 15.79 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 7.519e-05/0.7988, allocations: 10.78 kB / 1.187 GB, free: 15.79 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.7988, allocations: 1.719 kB / 1.187 GB, free: 15.79 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.223e-06/0.7988, allocations: 0 / 1.187 GB, free: 15.79 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.7988, allocations: 0 / 1.187 GB, free: 15.79 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002162/0.799, allocations: 243 kB / 1.188 GB, free: 15.53 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/0.7991, allocations: 7.906 kB / 1.188 GB, free: 15.53 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.501e-05/0.7991, allocations: 2.625 kB / 1.188 GB, free: 15.53 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.35e-05/0.7991, allocations: 103.4 kB / 1.188 GB, free: 15.41 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.7992, allocations: 5.312 kB / 1.188 GB, free: 15.4 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.7992, allocations: 2.531 kB / 1.188 GB, free: 15.4 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.246e-05/0.7992, allocations: 29.02 kB / 1.188 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.7992, allocations: 192 / 1.188 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.7993, allocations: 5.25 kB / 1.188 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.7993, allocations: 0 / 1.188 GB, free: 15.37 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.792e-05/0.7993, allocations: 9.984 kB / 1.188 GB, free: 15.36 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.508e-05/0.7994, allocations: 101.1 kB / 1.188 GB, free: 15.23 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 3.667e-05/0.7994, allocations: 20.8 kB / 1.188 GB, free: 15.21 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.352e-05/0.7994, allocations: 6.203 kB / 1.188 GB, free: 15.2 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.7994, allocations: 2.109 kB / 1.188 GB, free: 15.2 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.515e-05/0.7994, allocations: 32.34 kB / 1.188 GB, free: 15.16 MB / 1.076 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.7994, allocations: 0 / 1.188 GB, free: 15.16 MB / 1.076 GB Notification: Performance of matching and sorting (n=1): time 0.0001074/0.7996, allocations: 40.72 kB / 1.188 GB, free: 15.12 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.832e-05/0.7996, allocations: 53.22 kB / 1.188 GB, free: 15.06 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.344e-05/0.7996, allocations: 89.86 kB / 1.188 GB, free: 14.96 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 5.59e-06/0.7996, allocations: 29.83 kB / 1.188 GB, free: 14.93 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 9.839e-06/0.7996, allocations: 81.89 kB / 1.188 GB, free: 14.84 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.199e-05/0.7996, allocations: 0 / 1.188 GB, free: 14.84 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/0.7996, allocations: 13.25 kB / 1.188 GB, free: 14.83 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.412e-05/0.7997, allocations: 320.6 kB / 1.188 GB, free: 14.51 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.004e-05/0.7997, allocations: 1.875 kB / 1.188 GB, free: 14.51 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-06/0.7997, allocations: 1.344 kB / 1.188 GB, free: 14.51 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.101e-05/0.7997, allocations: 7.891 kB / 1.188 GB, free: 14.5 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.7997, allocations: 0 / 1.188 GB, free: 14.5 MB / 1.076 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.296e-05/0.7998, allocations: 37.06 kB / 1.188 GB, free: 14.46 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.7998, allocations: 7.828 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-06/0.7998, allocations: 0 / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.7998, allocations: 1.375 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.727e-05/0.7998, allocations: 6.172 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.7999, allocations: 0 / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.247e-05/0.7999, allocations: 5.5 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.7999, allocations: 4.547 kB / 1.189 GB, free: 14.45 MB / 1.076 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 (1): * Single equations (assignments): 1 * 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 3.91e-05/0.7999, allocations: 112.1 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.853e-06/0.7999, allocations: 1.469 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.242e-05/0.8, allocations: 42.39 kB / 1.189 GB, free: 14.3 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.8, allocations: 3.938 kB / 1.189 GB, free: 14.29 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-06/0.8, allocations: 0 / 1.189 GB, free: 14.29 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.8, allocations: 2.125 kB / 1.189 GB, free: 14.29 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.54e-05/0.8, allocations: 99.31 kB / 1.189 GB, free: 14.17 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.8, allocations: 0.5156 kB / 1.189 GB, free: 14.17 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.698e-05/0.8001, allocations: 2.219 kB / 1.189 GB, free: 14.17 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.8001, allocations: 9.141 kB / 1.189 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-06/0.8001, allocations: 4.031 kB / 1.189 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.8001, allocations: 2.047 kB / 1.189 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.8001, allocations: 3.938 kB / 1.189 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.991e-05/0.8001, allocations: 67.09 kB / 1.189 GB, free: 14.08 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.887e-06/0.8001, allocations: 0.6094 kB / 1.189 GB, free: 14.08 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.435e-06/0.8001, allocations: 2.172 kB / 1.189 GB, free: 14.08 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.071e-05/0.8001, allocations: 0 / 1.189 GB, free: 14.08 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.025e-05/0.8002, allocations: 5.828 kB / 1.189 GB, free: 14.07 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.988e-06/0.8002, allocations: 1.375 kB / 1.189 GB, free: 14.07 MB / 1.076 GB Notification: Performance of sorting global known variables: time 9.478e-06/0.8002, allocations: 75.8 kB / 1.189 GB, free: 14 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.8002, allocations: 4.031 kB / 1.189 GB, free: 14 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0001866/0.8004, allocations: 10.41 kB / 1.189 GB, free: 13.99 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 1 * 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.0001049/0.8005, allocations: 97.06 kB / 1.189 GB, free: 13.9 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 6.321e-05/0.8005, allocations: 9.328 kB / 1.189 GB, free: 13.9 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.8005, allocations: 0 / 1.189 GB, free: 13.9 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 7.855e-06/0.8005, allocations: 2.75 kB / 1.189 GB, free: 13.9 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.8007, allocations: 1.984 kB / 1.189 GB, free: 13.9 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001407/0.8008, allocations: 83.53 kB / 1.189 GB, free: 13.8 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.28e-05/0.8008, allocations: 59.41 kB / 1.189 GB, free: 13.72 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 1.958e-05/0.8008, allocations: 2.75 kB / 1.189 GB, free: 13.72 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.709e-05/0.8009, allocations: 10.58 kB / 1.189 GB, free: 13.71 MB / 1.076 GB Notification: Performance of SimCode: time 3.2e-07/0.8009, allocations: 0 / 1.189 GB, free: 13.71 MB / 1.076 GB Notification: Performance of Templates: time 0.002286/0.8031, allocations: 277.3 kB / 1.189 GB, free: 13.64 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.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.54202242498286]