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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|x",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005038/0.005038, allocations: 102 kB / 15.73 MB, free: 6.051 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.001117/0.001117, allocations: 191.5 kB / 16.67 MB, free: 5.965 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.573/2.573, allocations: 461.9 MB / 0.7348 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 68.12 kB / 1.054 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8949/0.8961, allocations: 157.4 MB / 1.208 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.002014/0.8982, allocations: 0.5927 MB / 1.208 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0002814/0.8985, allocations: 33.78 kB / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.751e-05/0.8985, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.726e-05/0.8986, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.254e-06/0.8986, allocations: 0 / 1.208 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.8989, allocations: 8 kB / 1.208 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 5.461e-05/0.899, allocations: 11.98 kB / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.213e-05/0.8991, allocations: 0 / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 2.548e-05/0.8991, allocations: 0 / 1.208 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.7e-05/0.8991, allocations: 15.92 kB / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.8992, allocations: 0 / 1.208 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.8993, allocations: 19.92 kB / 1.208 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.04e-05/0.8993, allocations: 0 / 1.208 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.213e-05/0.8993, allocations: 4 kB / 1.208 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000104/0.8994, allocations: 15.97 kB / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.8994, allocations: 0 / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.694e-06/0.8995, allocations: 0 / 1.208 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.211e-06/0.8995, allocations: 0 / 1.208 GB, free: 12.88 MB / 0.9356 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.0003652/0.8998, allocations: 311.6 kB / 1.209 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.8999, allocations: 15.97 kB / 1.209 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.353e-05/0.8999, allocations: 0.9375 kB / 1.209 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.651e-05/0.9, allocations: 164.4 kB / 1.209 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.9, allocations: 384 / 1.209 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.9001, allocations: 4.375 kB / 1.209 GB, free: 12.3 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.9002, allocations: 30.2 kB / 1.209 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.9002, allocations: 192 / 1.209 GB, free: 12.27 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.9002, allocations: 3.938 kB / 1.209 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.9002, allocations: 0 / 1.209 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.675e-05/0.9002, allocations: 8 kB / 1.209 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/0.9004, allocations: 153.7 kB / 1.209 GB, free: 12.05 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 4.62e-05/0.9004, allocations: 18.61 kB / 1.209 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.973e-05/0.9005, allocations: 4.859 kB / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.705e-05/0.9005, allocations: 3.938 kB / 1.209 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.9005, allocations: 34.62 kB / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.9006, allocations: 3.938 kB / 1.209 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001474/0.9007, allocations: 37.64 kB / 1.209 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.9008, allocations: 55.39 kB / 1.209 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.064e-05/0.9008, allocations: 93.86 kB / 1.209 GB, free: 11.76 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.9008, allocations: 25.7 kB / 1.209 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 2.555e-05/0.9009, allocations: 80.14 kB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.366e-05/0.9009, allocations: 4 kB / 1.209 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.8e-05/0.9009, allocations: 9.719 kB / 1.209 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.901, allocations: 311 kB / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.194e-05/0.901, allocations: 8 kB / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.204e-06/0.9011, allocations: 0 / 1.21 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.459e-05/0.9011, allocations: 16.8 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.9011, allocations: 0 / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.062e-05/0.9012, allocations: 33.69 kB / 1.21 GB, free: 11.25 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.9012, allocations: 5.719 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.9012, allocations: 4 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.9012, allocations: 3.938 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.04e-05/0.9013, allocations: 4.094 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.9013, allocations: 0 / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.359e-05/0.9013, allocations: 0 / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.623e-05/0.9013, allocations: 4 kB / 1.21 GB, free: 11.23 MB / 0.9356 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 6.47e-05/0.9014, allocations: 105.8 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.288e-06/0.9014, allocations: 3.906 kB / 1.21 GB, free: 11.11 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.9016, allocations: 56.69 kB / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.9016, allocations: 0 / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.9016, allocations: 0 / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.9016, allocations: 0 / 1.21 GB, free: 11.05 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.295e-05/0.9017, allocations: 149.6 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.9017, allocations: 0 / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.085e-05/0.9017, allocations: 4 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.9017, allocations: 0 / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.9017, allocations: 7.922 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.9017, allocations: 0 / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.9018, allocations: 0 / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.581e-05/0.9018, allocations: 73.03 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 3.772e-05/0.9019, allocations: 77.11 kB / 1.21 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.386e-05/0.9019, allocations: 3.938 kB / 1.21 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.464e-05/0.9019, allocations: 8 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.42e-05/0.9019, allocations: 0 / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.137e-06/0.9019, allocations: 0 / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.548e-05/0.902, allocations: 75.28 kB / 1.21 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.902, allocations: 4.031 kB / 1.21 GB, free: 10.57 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002134/0.9022, allocations: 8 kB / 1.21 GB, free: 10.56 MB / 0.9356 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.0002241/0.9024, allocations: 111.2 kB / 1.21 GB, free: 10.44 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 8.721e-05/0.9025, allocations: 8 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.9025, allocations: 0 / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 7.775e-06/0.9026, allocations: 0 / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.9027, allocations: 4 kB / 1.21 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003014/0.903, allocations: 84.98 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.9033, allocations: 0.669 MB / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.284e-05/0.9034, allocations: 4 kB / 1.211 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.497e-05/0.9034, allocations: 7.438 kB / 1.211 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of SimCode: time 6.12e-07/0.9034, allocations: 0 / 1.211 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of Templates: time 0.002617/0.906, allocations: 295.6 kB / 1.212 GB, free: 9.328 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches