Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.Polynomial") translateModel(Buildings.Utilities.Math.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|polynominal.y",fileNamePrefix="Buildings_11_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.007903/0.007903, allocations: 99 kB / 15.73 MB, free: 6.012 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.001914/0.001914, allocations: 201.4 kB / 16.68 MB, free: 5.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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.589/2.589, allocations: 469.8 MB / 0.7425 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 72.09 kB / 1.065 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9345/0.9358, allocations: 159.1 MB / 1.221 GB, free: 2.117 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002884/0.9387, allocations: 1.434 MB / 1.222 GB, free: 0.6758 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0003733/0.9391, allocations: 103.7 kB / 1.222 GB, free: 0.5742 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.102e-05/0.9391, allocations: 0 / 1.222 GB, free: 0.5742 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 7.742e-05/0.9392, allocations: 3.938 kB / 1.222 GB, free: 0.5703 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.119e-05/0.9392, allocations: 7.984 kB / 1.222 GB, free: 0.5625 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.9395, allocations: 19.92 kB / 1.222 GB, free: 0.543 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.763e-05/0.9396, allocations: 23.92 kB / 1.222 GB, free: 0.5195 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.523e-05/0.9397, allocations: 4 kB / 1.222 GB, free: 0.5156 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.721e-05/0.9397, allocations: 4 kB / 1.222 GB, free: 0.5117 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.581e-05/0.9398, allocations: 15.92 kB / 1.222 GB, free: 0.4961 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.9398, allocations: 4 kB / 1.222 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.9399, allocations: 19.98 kB / 1.222 GB, free: 484 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 4.738e-05/0.9399, allocations: 11.92 kB / 1.222 GB, free: 472 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.357e-05/0.94, allocations: 15.92 kB / 1.222 GB, free: 456 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0001213/0.9401, allocations: 27.95 kB / 1.222 GB, free: 428 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.9401, allocations: 0 / 1.222 GB, free: 428 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.222e-06/0.9401, allocations: 0 / 1.222 GB, free: 428 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.9401, allocations: 3.938 kB / 1.222 GB, free: 424 kB / 0.9356 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.0005388/0.9407, allocations: 347.9 kB / 1.223 GB, free: 28 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.9407, allocations: 12.03 kB / 1.223 GB, free: 16 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.426e-05/0.9407, allocations: 4.875 kB / 1.223 GB, free: 12 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001628/0.9409, allocations: 180.2 kB / 1.223 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.9409, allocations: 384 / 1.223 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.9409, allocations: 384 / 1.223 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.9411, allocations: 54.23 kB / 1.223 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.9411, allocations: 192 / 1.223 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.9411, allocations: 3.938 kB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.9411, allocations: 3.984 kB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.9413, allocations: 35.97 kB / 1.223 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003939/0.9417, allocations: 253 kB / 1.223 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.9419, allocations: 46.44 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.958e-05/0.9419, allocations: 24.89 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.942, allocations: 4 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.942, allocations: 30.56 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.942, allocations: 0 / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0003625/0.9424, allocations: 89.58 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.9424, allocations: 51.41 kB / 1.223 GB, free: 15.12 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001031/0.9425, allocations: 118 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.9425, allocations: 29.7 kB / 1.223 GB, free: 14.96 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.907e-05/0.9426, allocations: 80.14 kB / 1.224 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.9426, allocations: 7.938 kB / 1.224 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.814e-05/0.9426, allocations: 21.7 kB / 1.224 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.9428, allocations: 310.8 kB / 1.224 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.69e-05/0.9429, allocations: 19.98 kB / 1.224 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-05/0.943, allocations: 19.97 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.9431, allocations: 40.83 kB / 1.224 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.9431, allocations: 0 / 1.224 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001928/0.9433, allocations: 81.48 kB / 1.224 GB, free: 14.36 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.9433, allocations: 8 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.9433, allocations: 4.094 kB / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.9433, allocations: 0 / 1.224 GB, free: 14.35 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.348e-05/0.9434, allocations: 7.984 kB / 1.224 GB, free: 14.34 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.9434, allocations: 11.92 kB / 1.224 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.298e-05/0.9435, allocations: 0 / 1.224 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.9435, allocations: 4 kB / 1.224 GB, free: 14.32 MB / 0.9512 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 9.314e-05/0.9436, allocations: 115.4 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.498e-05/0.9436, allocations: 7.984 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002358/0.9438, allocations: 77.19 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.9438, allocations: 0 / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.9438, allocations: 0 / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.9438, allocations: 0 / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001694/0.944, allocations: 173.5 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.944, allocations: 3.938 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.949e-05/0.9441, allocations: 11.98 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.9441, allocations: 0 / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.9441, allocations: 4.031 kB / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.9441, allocations: 0 / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.9441, allocations: 0 / 1.224 GB, free: 13.87 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.9443, allocations: 163.5 kB / 1.225 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.432e-05/0.9444, allocations: 85.06 kB / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.342e-05/0.9444, allocations: 0 / 1.225 GB, free: 13.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.638e-05/0.9445, allocations: 12.27 kB / 1.225 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.253e-05/0.9445, allocations: 0 / 1.225 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.9445, allocations: 8 kB / 1.225 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.483e-05/0.9446, allocations: 87.27 kB / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of sort global known variables: time 6e-08/0.9446, allocations: 0 / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000231/0.9448, allocations: 11.94 kB / 1.225 GB, free: 13.47 MB / 0.9512 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.0001744/0.945, allocations: 103.2 kB / 1.225 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002399/0.9452, allocations: 43.95 kB / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.9452, allocations: 0 / 1.225 GB, free: 13.32 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.524e-05/0.9453, allocations: 19.98 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.9456, allocations: 3.938 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003316/0.9459, allocations: 113.4 kB / 1.225 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/0.9462, allocations: 0.6769 MB / 1.226 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.664e-05/0.9463, allocations: 11.94 kB / 1.226 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.449e-05/0.9463, allocations: 11.44 kB / 1.226 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of SimCode: time 3.11e-07/0.9463, allocations: 0 / 1.226 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of Templates: time 0.002933/0.9492, allocations: 0.5451 MB / 1.226 GB, free: 11.89 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Polynomial.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Polynomial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Polynomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches