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.001685/0.001685, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001896/0.001897, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.379/1.379, allocations: 222.9 MB / 240.9 MB, free: 15.28 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.49/2.49, allocations: 437 MB / 0.711 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001517, allocations: 68.41 kB / 0.8699 GB, free: 2.227 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3147, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002761/0.3175, allocations: 1.429 MB / 1.019 GB, free: 9.23 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0003047/0.3178, allocations: 92.58 kB / 1.019 GB, free: 9.137 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.921e-05/0.3179, allocations: 4 kB / 1.019 GB, free: 9.133 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 5.908e-05/0.318, allocations: 7.922 kB / 1.019 GB, free: 9.125 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.55e-05/0.318, allocations: 4 kB / 1.019 GB, free: 9.121 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000255/0.3183, allocations: 19.92 kB / 1.019 GB, free: 9.102 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.225e-05/0.3183, allocations: 27.86 kB / 1.019 GB, free: 9.074 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.3185, allocations: 4 kB / 1.019 GB, free: 9.07 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 4.246e-05/0.3185, allocations: 7.938 kB / 1.02 GB, free: 9.062 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.064e-05/0.3186, allocations: 11.98 kB / 1.02 GB, free: 9.051 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.3186, allocations: 4 kB / 1.02 GB, free: 9.047 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 9.462e-05/0.3187, allocations: 19.98 kB / 1.02 GB, free: 9.027 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 4.193e-05/0.3187, allocations: 11.92 kB / 1.02 GB, free: 9.016 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 2.737e-05/0.3188, allocations: 15.92 kB / 1.02 GB, free: 9 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001277/0.3189, allocations: 35.89 kB / 1.02 GB, free: 8.965 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3189, allocations: 0 / 1.02 GB, free: 8.965 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3189, allocations: 0 / 1.02 GB, free: 8.965 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.3189, allocations: 0 / 1.02 GB, free: 8.965 MB / 0.795 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.0004453/0.3194, allocations: 347.6 kB / 1.02 GB, free: 8.574 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.3194, allocations: 8.922 kB / 1.02 GB, free: 8.566 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.853e-05/0.3195, allocations: 8.938 kB / 1.02 GB, free: 8.559 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001123/0.3196, allocations: 168.3 kB / 1.02 GB, free: 8.355 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.04e-05/0.3196, allocations: 384 / 1.02 GB, free: 8.355 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.516e-06/0.3196, allocations: 384 / 1.02 GB, free: 8.355 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001802/0.3198, allocations: 54.23 kB / 1.02 GB, free: 8.297 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.854e-06/0.3198, allocations: 192 / 1.02 GB, free: 8.297 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.3198, allocations: 11.91 kB / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.3198, allocations: 0 / 1.02 GB, free: 8.285 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.32, allocations: 35.97 kB / 1.02 GB, free: 8.25 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003238/0.3204, allocations: 256.9 kB / 1.02 GB, free: 7.949 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.3205, allocations: 50.42 kB / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001/0.3206, allocations: 20.91 kB / 1.021 GB, free: 7.867 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.3207, allocations: 4 kB / 1.021 GB, free: 7.863 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.3207, allocations: 38.56 kB / 1.021 GB, free: 7.816 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.3207, allocations: 0 / 1.021 GB, free: 7.816 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0003798/0.3211, allocations: 85.58 kB / 1.021 GB, free: 7.727 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.372e-05/0.3211, allocations: 51.41 kB / 1.021 GB, free: 7.664 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.234e-05/0.3212, allocations: 118 kB / 1.021 GB, free: 7.539 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.3212, allocations: 25.7 kB / 1.021 GB, free: 7.508 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.206e-05/0.3213, allocations: 80.14 kB / 1.021 GB, free: 7.426 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.3213, allocations: 3.906 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.3213, allocations: 21.7 kB / 1.021 GB, free: 7.395 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.944e-05/0.3215, allocations: 310.8 kB / 1.021 GB, free: 7.082 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.265e-05/0.3216, allocations: 19.98 kB / 1.021 GB, free: 7.062 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.145e-05/0.3216, allocations: 23.97 kB / 1.021 GB, free: 7.039 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001606/0.3218, allocations: 40.83 kB / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3218, allocations: 0 / 1.021 GB, free: 6.996 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002076/0.322, allocations: 77.53 kB / 1.021 GB, free: 6.914 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.3221, allocations: 11.88 kB / 1.021 GB, free: 6.902 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3221, allocations: 96 / 1.021 GB, free: 6.902 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.3221, allocations: 4 kB / 1.021 GB, free: 6.898 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.777e-05/0.3222, allocations: 11.98 kB / 1.021 GB, free: 6.887 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.3222, allocations: 0 / 1.021 GB, free: 6.887 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.836e-05/0.3222, allocations: 7.938 kB / 1.021 GB, free: 6.879 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.3223, allocations: 3.984 kB / 1.021 GB, free: 6.875 MB / 0.795 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 7.438e-05/0.3223, allocations: 116.2 kB / 1.022 GB, free: 6.754 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.625e-05/0.3224, allocations: 7.906 kB / 1.022 GB, free: 6.746 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002411/0.3226, allocations: 73.19 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.3226, allocations: 0 / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.3226, allocations: 0 / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.3226, allocations: 4 kB / 1.022 GB, free: 6.664 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.3228, allocations: 173.5 kB / 1.022 GB, free: 6.445 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3228, allocations: 0 / 1.022 GB, free: 6.445 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.169e-05/0.3229, allocations: 11.98 kB / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.3229, allocations: 0 / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.3229, allocations: 32 / 1.022 GB, free: 6.434 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3229, allocations: 4 kB / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3229, allocations: 0 / 1.022 GB, free: 6.43 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002449/0.3232, allocations: 167.5 kB / 1.022 GB, free: 6.25 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.3232, allocations: 77.11 kB / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.3232, allocations: 0 / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.259e-05/0.3233, allocations: 12.27 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.3234, allocations: 4 kB / 1.022 GB, free: 6.141 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.638e-06/0.3234, allocations: 4 kB / 1.022 GB, free: 6.137 MB / 0.795 GB Notification: Performance of sorting global known variables: time 4.281e-05/0.3234, allocations: 87.27 kB / 1.022 GB, free: 6.051 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3234, allocations: 0 / 1.022 GB, free: 6.051 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002347/0.3237, allocations: 8 kB / 1.022 GB, free: 6.043 MB / 0.795 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.0001556/0.3238, allocations: 107.2 kB / 1.022 GB, free: 5.926 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.000227/0.3241, allocations: 43.95 kB / 1.022 GB, free: 5.883 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3241, allocations: 0 / 1.022 GB, free: 5.883 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 9.119e-05/0.3242, allocations: 19.98 kB / 1.022 GB, free: 5.863 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.3245, allocations: 10.47 kB / 1.022 GB, free: 5.855 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003103/0.3248, allocations: 143.2 kB / 1.022 GB, free: 5.684 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.325, allocations: 0.6846 MB / 1.023 GB, free: 4.973 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.162e-05/0.3251, allocations: 11.38 kB / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of SimCode: time 4.01e-07/0.3251, allocations: 0 / 1.023 GB, free: 4.961 MB / 0.795 GB Notification: Performance of Templates: time 0.00225/0.3273, allocations: 0.6653 MB / 1.024 GB, free: 4.297 MB / 0.795 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches