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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001285/0.001285, allocations: 100 kB / 15.05 MB, free: 1.105 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.001421/0.001421, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 223.2 MB / 239.9 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.776/2.776, allocations: 436.5 MB / 0.7104 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004271/0.0004272, allocations: 12 kB / 0.8708 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9525/0.953, allocations: 153.7 MB / 1.021 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.0008991/0.954, allocations: 317.4 kB / 1.021 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002199/0.9542, allocations: 27.97 kB / 1.021 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.563e-05/0.9542, allocations: 0 / 1.021 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.505e-05/0.9543, allocations: 3.938 kB / 1.021 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.384e-06/0.9543, allocations: 0 / 1.021 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003125/0.9546, allocations: 19.92 kB / 1.021 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.59e-05/0.9546, allocations: 0 / 1.021 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.957e-05/0.9547, allocations: 0 / 1.021 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.207e-05/0.9547, allocations: 4 kB / 1.021 GB, free: 0.7344 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.839e-05/0.9548, allocations: 7.922 kB / 1.021 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.9548, allocations: 0 / 1.021 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.889e-05/0.9549, allocations: 15.98 kB / 1.021 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 9.127e-06/0.9549, allocations: 0 / 1.021 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.983e-05/0.955, allocations: 25.7 kB / 1.021 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.801e-05/0.9551, allocations: 7.984 kB / 1.021 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.9551, allocations: 4 kB / 1.021 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.365e-06/0.9551, allocations: 0 / 1.021 GB, free: 0.668 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.9551, allocations: 4 kB / 1.021 GB, free: 0.6641 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000352/0.9554, allocations: 311.4 kB / 1.022 GB, free: 320 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 8.156e-05/0.9555, allocations: 12.05 kB / 1.022 GB, free: 308 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.9556, allocations: 4 kB / 1.022 GB, free: 304 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.9557, allocations: 163 kB / 1.022 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.9557, allocations: 0 / 1.022 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.9557, allocations: 0 / 1.022 GB, free: 100 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001243/0.9559, allocations: 37.64 kB / 1.022 GB, free: 56 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.9559, allocations: 4 kB / 1.022 GB, free: 52 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.9559, allocations: 3.984 kB / 1.022 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.9559, allocations: 0 / 1.022 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.897e-05/0.9559, allocations: 0 / 1.022 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001887/0.9561, allocations: 149.7 kB / 1.022 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 5.801e-05/0.9562, allocations: 22.55 kB / 1.022 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.452e-05/0.9562, allocations: 0 / 1.022 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.9563, allocations: 42.61 kB / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.9563, allocations: 0 / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001536/0.9564, allocations: 33.66 kB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.9565, allocations: 55.34 kB / 1.022 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.932e-05/0.9566, allocations: 93.86 kB / 1.022 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.497e-05/0.9566, allocations: 25.7 kB / 1.022 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.9566, allocations: 80.14 kB / 1.022 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.659e-05/0.9567, allocations: 8.031 kB / 1.022 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-06/0.9567, allocations: 4 kB / 1.022 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.00014/0.9568, allocations: 314.8 kB / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.927e-06/0.9568, allocations: 0 / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.45e-05/0.9569, allocations: 3.984 kB / 1.023 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.259e-05/0.9569, allocations: 4 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.9569, allocations: 0 / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.29e-05/0.957, allocations: 29.7 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.957, allocations: 8 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.957, allocations: 4.094 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.957, allocations: 3.953 kB / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.308e-05/0.9571, allocations: 0 / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.9571, allocations: 3.938 kB / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.199e-05/0.9571, allocations: 0 / 1.023 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.504e-05/0.9571, allocations: 7.984 kB / 1.023 GB, free: 15.05 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.781e-05/0.9572, allocations: 109.8 kB / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.21e-06/0.9572, allocations: 0 / 1.023 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.9574, allocations: 48.75 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.9574, allocations: 0 / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.9574, allocations: 3.953 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.9574, allocations: 0 / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.9575, allocations: 145.7 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.9575, allocations: 4 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.499e-05/0.9575, allocations: 0 / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.9575, allocations: 0 / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-06/0.9576, allocations: 0 / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.9576, allocations: 4.031 kB / 1.023 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.9576, allocations: 7.984 kB / 1.023 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.084e-05/0.9577, allocations: 57.03 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.177e-05/0.9577, allocations: 81.11 kB / 1.023 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.9577, allocations: 0 / 1.023 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.201e-05/0.9578, allocations: 4 kB / 1.023 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.922e-05/0.9578, allocations: 7.922 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.9578, allocations: 4.031 kB / 1.023 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.63e-05/0.9579, allocations: 79.23 kB / 1.023 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9579, allocations: 0 / 1.023 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001985/0.9581, allocations: 8 kB / 1.023 GB, free: 14.39 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 (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002034/0.9583, allocations: 103.2 kB / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.575e-05/0.9584, allocations: 0 / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.9584, allocations: 4 kB / 1.023 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.037e-06/0.9584, allocations: 8 kB / 1.023 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.743e-05/0.9585, allocations: 2.234 kB / 1.023 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002205/0.9587, allocations: 82.83 kB / 1.023 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.959, allocations: 0.6692 MB / 1.024 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.214e-05/0.9591, allocations: 11.98 kB / 1.024 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.9591, allocations: 11.5 kB / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.9591, allocations: 0 / 1.024 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of Templates: time 0.002267/0.9614, allocations: 275.9 kB / 1.024 GB, free: 13.18 MB / 0.7794 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","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches