Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001786/0.001786, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 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.002394/0.002394, allocations: 212.8 kB / 22.25 MB, free: 5.262 MB / 14.72 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 1.477/1.477, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.195/3.195, allocations: 0.49 GB / 0.7951 GB, free: 35.59 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002848/0.002848, allocations: 65.44 kB / 1.154 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3964/0.3993, allocations: 176.1 MB / 1.326 GB, free: 1.457 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.00278/0.402, allocations: 0.5907 MB / 1.326 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002813/0.4023, allocations: 31.89 kB / 1.326 GB, free: 0.8398 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.137e-05/0.4023, allocations: 0 / 1.326 GB, free: 0.8398 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.4024, allocations: 0 / 1.326 GB, free: 0.8398 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.4024, allocations: 3.938 kB / 1.326 GB, free: 0.8359 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.4027, allocations: 15.92 kB / 1.327 GB, free: 0.8203 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 3.73e-05/0.4027, allocations: 4 kB / 1.327 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.019e-05/0.4028, allocations: 416 / 1.327 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.294e-05/0.4028, allocations: 0 / 1.327 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.236e-05/0.4028, allocations: 19.91 kB / 1.327 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.043e-05/0.4028, allocations: 0 / 1.327 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.4029, allocations: 19.98 kB / 1.327 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.128e-05/0.4029, allocations: 0 / 1.327 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 1.681e-05/0.403, allocations: 0 / 1.327 GB, free: 0.7773 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.4031, allocations: 20.19 kB / 1.327 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.4031, allocations: 0 / 1.327 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4031, allocations: 0 / 1.327 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.4031, allocations: 0 / 1.327 GB, free: 0.7578 MB / 1.014 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.0003702/0.4035, allocations: 238.4 kB / 1.327 GB, free: 0.4922 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.4035, allocations: 8.031 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.719e-05/0.4036, allocations: 34.75 kB / 1.327 GB, free: 452 kB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.761e-05/0.4036, allocations: 4.938 kB / 1.327 GB, free: 448 kB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.4037, allocations: 106.5 kB / 1.327 GB, free: 316 kB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.4037, allocations: 384 / 1.327 GB, free: 316 kB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.4037, allocations: 384 / 1.327 GB, free: 316 kB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.4039, allocations: 34.27 kB / 1.327 GB, free: 276 kB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.4039, allocations: 3.938 kB / 1.327 GB, free: 272 kB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.785e-06/0.4039, allocations: 0 / 1.327 GB, free: 272 kB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.4039, allocations: 0 / 1.327 GB, free: 272 kB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.719e-05/0.4039, allocations: 3.938 kB / 1.327 GB, free: 268 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002007/0.4041, allocations: 128.7 kB / 1.327 GB, free: 96 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.879e-05/0.4042, allocations: 22.61 kB / 1.327 GB, free: 64 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.895e-05/0.4042, allocations: 4.859 kB / 1.327 GB, free: 56 kB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.13e-05/0.4042, allocations: 3.938 kB / 1.327 GB, free: 52 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.525e-05/0.4043, allocations: 34.62 kB / 1.327 GB, free: 8 kB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 1.543e-06/0.4043, allocations: 0 / 1.327 GB, free: 8 kB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0001924/0.4045, allocations: 41.62 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.4045, allocations: 51.41 kB / 1.327 GB, free: 15.89 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.487e-05/0.4046, allocations: 93.8 kB / 1.327 GB, free: 15.8 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.4046, allocations: 25.7 kB / 1.327 GB, free: 15.77 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.4047, allocations: 84.27 kB / 1.327 GB, free: 15.68 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.347e-05/0.4047, allocations: 7.953 kB / 1.327 GB, free: 15.67 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.959e-05/0.4047, allocations: 9.719 kB / 1.327 GB, free: 15.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001931/0.4049, allocations: 318.8 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.424e-05/0.405, allocations: 0 / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.024e-05/0.405, allocations: 0 / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.845e-05/0.405, allocations: 8.859 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.405, allocations: 3.938 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=1) (initialization): time 9.757e-05/0.4051, allocations: 37.62 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.4051, allocations: 8 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.4051, allocations: 12.03 kB / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.4051, allocations: 0 / 1.328 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.061e-05/0.4052, allocations: 4 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.4052, allocations: 0 / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.903e-05/0.4052, allocations: 0 / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.4052, allocations: 0 / 1.328 GB, free: 15.25 MB / 1.029 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 0.0001138/0.4054, allocations: 112.1 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.139e-05/0.4054, allocations: 4 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001438/0.4055, allocations: 48.56 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.4055, allocations: 0 / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.4055, allocations: 0 / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.4055, allocations: 4 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001392/0.4057, allocations: 120.8 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4057, allocations: 0 / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.703e-05/0.4057, allocations: 4 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.4057, allocations: 0 / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.4057, allocations: 3.938 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.4057, allocations: 0 / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4057, allocations: 4.031 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000117/0.4058, allocations: 61.06 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.488e-06/0.4058, allocations: 4 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.4058, allocations: 3.938 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.227e-05/0.4059, allocations: 4 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.525e-05/0.4059, allocations: 4 kB / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-06/0.4059, allocations: 0 / 1.328 GB, free: 14.8 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.572e-05/0.4059, allocations: 79.22 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4059, allocations: 0 / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003313/0.4063, allocations: 7.938 kB / 1.328 GB, free: 14.72 MB / 1.029 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.000598/0.4069, allocations: 0.6046 MB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 8.768e-05/0.407, allocations: 7.984 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.407, allocations: 0 / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.945e-05/0.407, allocations: 3.938 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001986/0.4072, allocations: 6.234 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004822/0.4077, allocations: 106.6 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.2e-05/0.4077, allocations: 55.34 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 3.909e-05/0.4078, allocations: 8.156 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.418e-05/0.4078, allocations: 11.38 kB / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of SimCode: time 4.11e-07/0.4078, allocations: 0 / 1.329 GB, free: 13.83 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03642/0.4442, allocations: 1.544 MB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.76, allocations: 10.59 kB / 1.331 GB, free: 12.4 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_Polynomial_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_Polynomial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Polynomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.475069528998574]