Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_10_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.001708/0.001715, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002388/0.002388, allocations: 193 kB / 16.14 MB, free: 6.711 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.41/1.41, allocations: 222.9 MB / 239.8 MB, free: 4.613 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.585/2.585, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 59.91 kB / 0.8685 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6949/0.6961, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002872/0.699, allocations: 1.503 MB / 1.018 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003695/0.6994, allocations: 96.58 kB / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.742e-05/0.6995, allocations: 0 / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 7.114e-05/0.6995, allocations: 0 / 1.018 GB, free: 1.16 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.738e-05/0.6996, allocations: 3.938 kB / 1.018 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.000225/0.6998, allocations: 19.98 kB / 1.018 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.356e-05/0.6999, allocations: 23.92 kB / 1.018 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 8.839e-05/0.7, allocations: 4 kB / 1.018 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.949e-05/0.7, allocations: 11.92 kB / 1.018 GB, free: 1.098 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.354e-05/0.7001, allocations: 11.94 kB / 1.018 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.7001, allocations: 3.984 kB / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.57e-05/0.7002, allocations: 19.97 kB / 1.018 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.285e-05/0.7003, allocations: 8 kB / 1.018 GB, free: 1.055 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.619e-05/0.7003, allocations: 3.938 kB / 1.018 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.7004, allocations: 39.89 kB / 1.018 GB, free: 1.012 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.7004, allocations: 4 kB / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of FrontEnd: time 9.12e-07/0.7004, allocations: 0 / 1.018 GB, free: 1.008 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.7004, allocations: 0 / 1.018 GB, free: 1.008 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004877/0.7009, allocations: 349.3 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.701, allocations: 8.031 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.701, allocations: 8.938 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.7012, allocations: 172.2 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.7012, allocations: 384 / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.7012, allocations: 8.375 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002012/0.7014, allocations: 50.23 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.7014, allocations: 192 / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.7015, allocations: 3.938 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.7015, allocations: 0 / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.7016, allocations: 35.95 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004514/0.7021, allocations: 260.9 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.7023, allocations: 50.42 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.16e-05/0.7024, allocations: 24.91 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.206e-05/0.7024, allocations: 4 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.7024, allocations: 30.56 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.7024, allocations: 4 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003959/0.7028, allocations: 89.58 kB / 1.019 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.548e-05/0.7029, allocations: 55.39 kB / 1.019 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.731e-05/0.703, allocations: 101.9 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.703, allocations: 25.7 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.591e-05/0.7031, allocations: 88.12 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.599e-05/0.7031, allocations: 12.03 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.161e-05/0.7032, allocations: 13.66 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.7033, allocations: 314.8 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.7034, allocations: 19.97 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.75e-05/0.7035, allocations: 19.98 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/0.7037, allocations: 40.89 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.7037, allocations: 0 / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001996/0.7039, allocations: 77.53 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.7039, allocations: 4 kB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.7039, allocations: 0 / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.7039, allocations: 0 / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.737e-05/0.704, allocations: 15.97 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.704, allocations: 0 / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.111e-05/0.7041, allocations: 12.02 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.7041, allocations: 0 / 1.02 GB, free: 14.92 MB / 0.7794 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 0.0001141/0.7042, allocations: 117.8 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.435e-05/0.7043, allocations: 3.906 kB / 1.02 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002458/0.7045, allocations: 73.19 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.383e-06/0.7045, allocations: 3.984 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.7045, allocations: 8.219 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.7046, allocations: 7.938 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.7047, allocations: 161.6 kB / 1.02 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.7047, allocations: 0 / 1.02 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.977e-05/0.7048, allocations: 11.98 kB / 1.02 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.7048, allocations: 0 / 1.02 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.7048, allocations: 0 / 1.02 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.7048, allocations: 0 / 1.02 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.7048, allocations: 0 / 1.02 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.7051, allocations: 171.5 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.75e-05/0.7052, allocations: 77.11 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.609e-05/0.7052, allocations: 7.984 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.016e-05/0.7053, allocations: 0 / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.589e-05/0.7053, allocations: 7.984 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.7053, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.939e-05/0.7054, allocations: 87.31 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.704e-06/0.7054, allocations: 0 / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000225/0.7056, allocations: 11.94 kB / 1.021 GB, free: 14.09 MB / 0.7794 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.0001898/0.7058, allocations: 115.7 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002074/0.706, allocations: 35.97 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.706, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.167e-05/0.7061, allocations: 28.03 kB / 1.021 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.7064, allocations: 7.938 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002849/0.7067, allocations: 119.2 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.707, allocations: 0.677 MB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.516e-05/0.707, allocations: 7.938 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.776e-05/0.7071, allocations: 11.5 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.7071, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of Templates: time 0.002581/0.7096, allocations: 481.1 kB / 1.022 GB, free: 12.56 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches