Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Polynomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009889/0.0009889, allocations: 92.16 kB / 16.02 MB, free: 80 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.001211/0.001211, allocations: 183 kB / 16.92 MB, free: 6.926 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.404/1.404, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.443/2.443, allocations: 390.9 MB / 0.667 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.0003939, allocations: 12 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6988/0.6992, allocations: 142.4 MB / 0.9557 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.001697/0.701, allocations: 1.157 MB / 0.9568 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000338/0.7013, allocations: 91.7 kB / 0.9569 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.313e-05/0.7014, allocations: 0 / 0.9569 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.34e-05/0.7014, allocations: 9.094 kB / 0.9569 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.427e-05/0.7015, allocations: 4.969 kB / 0.9569 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002208/0.7017, allocations: 16.67 kB / 0.957 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.881e-05/0.7018, allocations: 21.55 kB / 0.957 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.359e-05/0.7019, allocations: 7.594 kB / 0.957 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.008e-05/0.7019, allocations: 7.516 kB / 0.957 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.431e-05/0.702, allocations: 11.22 kB / 0.957 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.293e-05/0.702, allocations: 1 kB / 0.957 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.138e-05/0.7021, allocations: 23.91 kB / 0.957 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.696e-05/0.7021, allocations: 5 kB / 0.957 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.285e-05/0.7022, allocations: 40.47 kB / 0.9571 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.585e-05/0.7023, allocations: 20.48 kB / 0.9571 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.7023, allocations: 0 / 0.9571 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.753e-06/0.7023, allocations: 0 / 0.9571 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.7023, allocations: 1.094 kB / 0.9571 GB, free: 6.656 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003766/0.7027, allocations: 350.9 kB / 0.9574 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.7027, allocations: 13.38 kB / 0.9574 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.951e-05/0.7028, allocations: 2.469 kB / 0.9574 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.892e-05/0.7028, allocations: 169.6 kB / 0.9576 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.7029, allocations: 1.438 kB / 0.9576 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.7029, allocations: 1.906 kB / 0.9576 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.7031, allocations: 55.39 kB / 0.9577 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.7031, allocations: 1.219 kB / 0.9577 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-06/0.7031, allocations: 3.938 kB / 0.9577 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.7031, allocations: 5 kB / 0.9577 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.7033, allocations: 51.2 kB / 0.9577 GB, free: 6.004 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002845/0.7036, allocations: 251.9 kB / 0.958 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.7037, allocations: 51.69 kB / 0.958 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.894e-05/0.7038, allocations: 32.05 kB / 0.958 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.23e-05/0.7039, allocations: 2.5 kB / 0.958 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.694e-05/0.7039, allocations: 35.22 kB / 0.9581 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.522e-06/0.7039, allocations: 1.219 kB / 0.9581 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003699/0.7043, allocations: 106.9 kB / 0.9582 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.7043, allocations: 56.72 kB / 0.9582 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.708e-05/0.7044, allocations: 105.6 kB / 0.9583 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.466e-06/0.7044, allocations: 25.7 kB / 0.9584 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.027e-05/0.7044, allocations: 90.08 kB / 0.9584 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.626e-05/0.7045, allocations: 1.125 kB / 0.9584 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/0.7045, allocations: 9.719 kB / 0.9585 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.957e-05/0.7045, allocations: 315.9 kB / 0.9588 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.858e-05/0.7046, allocations: 28.67 kB / 0.9588 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.636e-05/0.7047, allocations: 18.83 kB / 0.9588 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001609/0.7049, allocations: 64.09 kB / 0.9589 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.7049, allocations: 0 / 0.9589 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001978/0.7051, allocations: 90.16 kB / 0.9589 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.7051, allocations: 4.188 kB / 0.959 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.7051, allocations: 1.875 kB / 0.959 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.7051, allocations: 0 / 0.959 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.863e-05/0.7052, allocations: 12.64 kB / 0.959 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.7053, allocations: 0 / 0.959 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.917e-05/0.7053, allocations: 13.88 kB / 0.959 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-06/0.7053, allocations: 1.188 kB / 0.959 GB, free: 4.809 MB / 0.7169 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 (2): * Single equations (assignments): 2 * 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 5.721e-05/0.7054, allocations: 124.3 kB / 0.9591 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.39e-05/0.7054, allocations: 5.609 kB / 0.9591 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000241/0.7057, allocations: 88.19 kB / 0.9592 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.7057, allocations: 4.031 kB / 0.9592 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.7057, allocations: 0 / 0.9592 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.7057, allocations: 1.125 kB / 0.9592 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.7058, allocations: 163.8 kB / 0.9593 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7058, allocations: 0 / 0.9593 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.669e-05/0.7059, allocations: 12.8 kB / 0.9594 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.7059, allocations: 1.438 kB / 0.9594 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.7059, allocations: 0 / 0.9594 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.7059, allocations: 0 / 0.9594 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.7059, allocations: 1.656 kB / 0.9594 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.7061, allocations: 187.5 kB / 0.9595 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.146e-05/0.7062, allocations: 77.11 kB / 0.9596 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.7062, allocations: 5.844 kB / 0.9596 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.472e-05/0.7063, allocations: 9.359 kB / 0.9596 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.7063, allocations: 1.781 kB / 0.9596 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.826e-06/0.7063, allocations: 0 / 0.9596 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.96e-05/0.7064, allocations: 88.64 kB / 0.9597 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7064, allocations: 1.812 kB / 0.9597 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002257/0.7066, allocations: 7.906 kB / 0.9597 GB, free: 4.055 MB / 0.7169 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 (2): * Single equations (assignments): 2 * 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.0001363/0.7067, allocations: 104.3 kB / 0.9598 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002235/0.707, allocations: 54.23 kB / 0.9599 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.707, allocations: 0 / 0.9599 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.988e-05/0.7071, allocations: 33.86 kB / 0.9599 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.7073, allocations: 5.312 kB / 0.9599 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002683/0.7076, allocations: 147 kB / 0.9601 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.7077, allocations: 0.6785 MB / 0.9607 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.019e-05/0.7078, allocations: 8.812 kB / 0.9607 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of SimCode: time 5.61e-07/0.7078, allocations: 0 / 0.9607 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of Templates: time 0.002154/0.7099, allocations: 0.6644 MB / 0.9614 GB, free: 2.727 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches