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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009722/0.0009722, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009805/0.0009805, allocations: 173 kB / 23.03 MB, free: 1.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9631/0.9631, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.979/1.979, allocations: 429.5 MB / 0.6732 GB, free: 4.023 MB / 0.6355 GB " [Timeout remaining time 178] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Polynomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|x",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 0.8782 GB, free: 5.133 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.611e-05/1.73e-05, allocations: 2.312 kB / 0.8782 GB, free: 5.129 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001034/0.001051, allocations: 0.6077 MB / 0.8788 GB, free: 4.539 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0001867/0.001238, allocations: 31.83 kB / 0.8788 GB, free: 4.508 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.276e-05/0.001251, allocations: 1.094 kB / 0.8788 GB, free: 4.508 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 1.764e-05/0.001268, allocations: 0 / 0.8788 GB, free: 4.508 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.001274, allocations: 0 / 0.8788 GB, free: 4.508 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003176/0.001592, allocations: 16.98 kB / 0.8789 GB, free: 4.492 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 5.079e-05/0.001643, allocations: 0.875 kB / 0.8789 GB, free: 4.492 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 4.1e-05/0.001684, allocations: 13.11 kB / 0.8789 GB, free: 4.48 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 3.269e-05/0.001717, allocations: 0 / 0.8789 GB, free: 4.48 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 2.094e-05/0.001737, allocations: 0 / 0.8789 GB, free: 4.48 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.616e-05/0.001754, allocations: 1.25 kB / 0.8789 GB, free: 4.48 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 7.493e-05/0.001829, allocations: 12.64 kB / 0.8789 GB, free: 4.469 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.246e-05/0.001841, allocations: 7.984 kB / 0.8789 GB, free: 4.461 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 1.498e-05/0.001856, allocations: 0 / 0.8789 GB, free: 4.461 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 9.468e-05/0.001951, allocations: 14.73 kB / 0.8789 GB, free: 4.449 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.001953, allocations: 0 / 0.8789 GB, free: 4.449 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.363e-06/0.001955, allocations: 0 / 0.8789 GB, free: 4.449 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.00196, allocations: 0 / 0.8789 GB, free: 4.449 MB / 0.7917 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.0002909/0.00225, allocations: 344.9 kB / 0.8792 GB, free: 4.074 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.002291, allocations: 8.031 kB / 0.8792 GB, free: 4.066 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.271e-05/0.002334, allocations: 6.438 kB / 0.8793 GB, free: 4.062 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.245e-05/0.002407, allocations: 104.6 kB / 0.8794 GB, free: 3.934 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.002424, allocations: 1.469 kB / 0.8794 GB, free: 3.934 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.011e-05/0.002434, allocations: 384 / 0.8794 GB, free: 3.934 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.002535, allocations: 38.88 kB / 0.8794 GB, free: 3.891 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.002543, allocations: 1.531 kB / 0.8794 GB, free: 3.891 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.002554, allocations: 384 / 0.8794 GB, free: 3.891 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.002562, allocations: 384 / 0.8794 GB, free: 3.891 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.561e-05/0.002578, allocations: 3.938 kB / 0.8794 GB, free: 3.887 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001141/0.002692, allocations: 109.4 kB / 0.8795 GB, free: 3.746 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 5.082e-05/0.002743, allocations: 28.66 kB / 0.8795 GB, free: 3.707 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.69e-05/0.002759, allocations: 11.78 kB / 0.8795 GB, free: 3.691 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-05/0.002796, allocations: 224 / 0.8795 GB, free: 3.691 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.002824, allocations: 45.31 kB / 0.8796 GB, free: 3.637 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=1): time 1.934e-06/0.002826, allocations: 5.5 kB / 0.8796 GB, free: 3.633 MB / 0.7917 GB Notification: Performance of matching and sorting (n=1): time 0.0001387/0.002965, allocations: 29.7 kB / 0.8796 GB, free: 3.598 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.002999, allocations: 51.41 kB / 0.8797 GB, free: 3.535 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.01e-05/0.003039, allocations: 142.2 kB / 0.8798 GB, free: 3.383 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.003049, allocations: 28.7 kB / 0.8798 GB, free: 3.352 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 2.976e-05/0.003079, allocations: 126.9 kB / 0.8799 GB, free: 3.223 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 3.588e-05/0.003115, allocations: 12.3 kB / 0.88 GB, free: 3.211 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-05/0.00314, allocations: 15.38 kB / 0.88 GB, free: 3.188 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001202/0.00326, allocations: 0.4883 MB / 0.8805 GB, free: 2.688 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.165e-05/0.003271, allocations: 4 kB / 0.8805 GB, free: 2.684 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.883e-06/0.003278, allocations: 0 / 0.8805 GB, free: 2.684 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.425e-05/0.003312, allocations: 16.34 kB / 0.8805 GB, free: 2.664 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.003314, allocations: 0 / 0.8805 GB, free: 2.664 MB / 0.7917 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.588e-05/0.00336, allocations: 35.05 kB / 0.8805 GB, free: 2.625 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.003375, allocations: 8 kB / 0.8805 GB, free: 2.617 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.003381, allocations: 0 / 0.8805 GB, free: 2.617 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.003397, allocations: 8.219 kB / 0.8805 GB, free: 2.609 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.698e-05/0.003464, allocations: 3.984 kB / 0.8805 GB, free: 2.605 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.00347, allocations: 0 / 0.8805 GB, free: 2.605 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.106e-05/0.003481, allocations: 7.938 kB / 0.8805 GB, free: 2.598 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.003497, allocations: 0 / 0.8805 GB, free: 2.598 MB / 0.7917 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.936e-05/0.003566, allocations: 152.6 kB / 0.8807 GB, free: 2.438 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-06/0.00357, allocations: 0 / 0.8807 GB, free: 2.438 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.382e-05/0.003663, allocations: 52.62 kB / 0.8807 GB, free: 2.379 MB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.003665, allocations: 0 / 0.8807 GB, free: 2.379 MB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.003669, allocations: 0 / 0.8807 GB, free: 2.379 MB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.003673, allocations: 3.984 kB / 0.8807 GB, free: 2.375 MB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.535e-05/0.003739, allocations: 112.6 kB / 0.8808 GB, free: 2.23 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.003739, allocations: 0 / 0.8808 GB, free: 2.23 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.162e-05/0.003751, allocations: 0 / 0.8808 GB, free: 2.23 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.003753, allocations: 0 / 0.8808 GB, free: 2.23 MB / 0.7917 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.003761, allocations: 4 kB / 0.8808 GB, free: 2.227 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.003762, allocations: 0 / 0.8808 GB, free: 2.227 MB / 0.7917 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.003763, allocations: 0 / 0.8808 GB, free: 2.227 MB / 0.7917 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.847e-05/0.003822, allocations: 80.34 kB / 0.8809 GB, free: 2.125 MB / 0.7917 GB Notification: Performance of postOpt removeConstants (simulation): time 4.138e-06/0.003826, allocations: 0 / 0.8809 GB, free: 2.125 MB / 0.7917 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.684e-06/0.003833, allocations: 3.938 kB / 0.8809 GB, free: 2.121 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.69e-06/0.003839, allocations: 4 kB / 0.8809 GB, free: 2.117 MB / 0.7917 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.974e-05/0.003859, allocations: 3.984 kB / 0.8809 GB, free: 2.113 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.003864, allocations: 4 kB / 0.8809 GB, free: 2.109 MB / 0.7917 GB Notification: Performance of sorting global known variables: time 3.478e-05/0.003899, allocations: 119.2 kB / 0.881 GB, free: 1.992 MB / 0.7917 GB Notification: Performance of sort global known variables: time 6e-08/0.003899, allocations: 0 / 0.881 GB, free: 1.992 MB / 0.7917 GB Notification: Performance of remove unused functions: time 0.0001261/0.004025, allocations: 4 kB / 0.8811 GB, free: 1.988 MB / 0.7917 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 (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.0001224/0.004147, allocations: 103.2 kB / 0.8811 GB, free: 1.875 MB / 0.7917 GB Notification: Performance of simCode: created initialization part: time 8.26e-05/0.00423, allocations: 11.69 kB / 0.8812 GB, free: 1.859 MB / 0.7917 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.004232, allocations: 0 / 0.8812 GB, free: 1.859 MB / 0.7917 GB Notification: Performance of simCode: created simulation system equations: time 8.496e-06/0.00424, allocations: 11.62 kB / 0.8812 GB, free: 1.844 MB / 0.7917 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.779e-05/0.004338, allocations: 6.062 kB / 0.8812 GB, free: 1.84 MB / 0.7917 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002218/0.00456, allocations: 84.83 kB / 0.8813 GB, free: 1.727 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.461e-05/0.004594, allocations: 55.36 kB / 0.8813 GB, free: 1.652 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 2.345e-05/0.004618, allocations: 4.125 kB / 0.8813 GB, free: 1.648 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.118e-05/0.004639, allocations: 8.5 kB / 0.8813 GB, free: 1.641 MB / 0.7917 GB Notification: Performance of SimCode: time 3.51e-07/0.004639, allocations: 0 / 0.8813 GB, free: 1.641 MB / 0.7917 GB Notification: Performance of Templates: time 0.002088/0.006727, allocations: 324.7 kB / 0.8816 GB, free: 1.324 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.0237658130936325]