Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.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.001846/0.001846, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002225/0.002225, allocations: 218.8 kB / 22.25 MB, free: 5.121 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.569/1.569, allocations: 230.6 MB / 256 MB, free: 7.984 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.232/3.232, allocations: 0.49 GB / 0.7951 GB, free: 33.34 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.Examples.Polynomial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Polynomial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_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.002039/0.002039, allocations: 64.92 kB / 1.154 GB, free: 25.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2919/0.294, allocations: 176.1 MB / 1.326 GB, free: 1.926 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002386/0.2963, allocations: 1.467 MB / 1.327 GB, free: 464 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002635/0.2966, allocations: 95.72 kB / 1.327 GB, free: 368 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.176e-05/0.2966, allocations: 0 / 1.327 GB, free: 368 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.663e-05/0.2967, allocations: 4 kB / 1.327 GB, free: 364 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.987e-05/0.2967, allocations: 3.938 kB / 1.327 GB, free: 360 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.2969, allocations: 15.98 kB / 1.327 GB, free: 344 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.228e-05/0.297, allocations: 31.92 kB / 1.327 GB, free: 312 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 6.823e-05/0.297, allocations: 3.984 kB / 1.327 GB, free: 308 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.295e-05/0.2971, allocations: 11.94 kB / 1.327 GB, free: 296 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.697e-05/0.2971, allocations: 19.86 kB / 1.328 GB, free: 276 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.2971, allocations: 4 kB / 1.328 GB, free: 272 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.165e-05/0.2972, allocations: 23.91 kB / 1.328 GB, free: 248 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.062e-05/0.2972, allocations: 4 kB / 1.328 GB, free: 244 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.2973, allocations: 15.92 kB / 1.328 GB, free: 228 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.2974, allocations: 36.11 kB / 1.328 GB, free: 192 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.2974, allocations: 0 / 1.328 GB, free: 192 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2974, allocations: 4 kB / 1.328 GB, free: 188 kB / 1.014 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.2974, allocations: 0 / 1.328 GB, free: 188 kB / 1.014 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.0003826/0.2978, allocations: 270.3 kB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.2978, allocations: 8.031 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.2978, allocations: 38.73 kB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.041e-05/0.2978, allocations: 4.891 kB / 1.328 GB, free: 15.83 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.288e-05/0.2979, allocations: 110.5 kB / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.2979, allocations: 384 / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-06/0.298, allocations: 384 / 1.328 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.2981, allocations: 58.17 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2981, allocations: 3.938 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.035e-05/0.2981, allocations: 4 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.256e-06/0.2981, allocations: 0 / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001509/0.2983, allocations: 35.95 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002764/0.2986, allocations: 220.1 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001226/0.2987, allocations: 54.42 kB / 1.328 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.219e-05/0.2988, allocations: 20.91 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.2988, allocations: 4 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.2988, allocations: 34.5 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 9.11e-07/0.2988, allocations: 0 / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0003225/0.2991, allocations: 93.59 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.2992, allocations: 55.39 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.878e-05/0.2993, allocations: 101.9 kB / 1.329 GB, free: 14.93 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.2993, allocations: 29.64 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.752e-05/0.2993, allocations: 96.06 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.414e-05/0.2993, allocations: 7.938 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.068e-05/0.2994, allocations: 17.84 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.2995, allocations: 314.8 kB / 1.329 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.079e-05/0.2996, allocations: 19.97 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.855e-05/0.2996, allocations: 15.98 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.2998, allocations: 41.08 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.2998, allocations: 8 kB / 1.329 GB, free: 14.36 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001841/0.3, allocations: 69.66 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.3, allocations: 8 kB / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.896e-06/0.3, allocations: 0 / 1.329 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.3, allocations: 3.938 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.882e-05/0.3001, allocations: 11.92 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/0.3001, allocations: 0 / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.655e-05/0.3001, allocations: 12.02 kB / 1.329 GB, free: 14.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.3001, allocations: 4 kB / 1.329 GB, free: 14.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 (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.373e-05/0.3002, allocations: 114.3 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.361e-05/0.3002, allocations: 3.953 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002161/0.3004, allocations: 81.27 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3004, allocations: 0 / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.3004, allocations: 0 / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.3004, allocations: 4.031 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.3006, allocations: 132.7 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3006, allocations: 0 / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-05/0.3006, allocations: 11.98 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3006, allocations: 0 / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.3006, allocations: 3.938 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3007, allocations: 0 / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3007, allocations: 0 / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002301/0.3009, allocations: 171.5 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-06/0.3009, allocations: 3.938 kB / 1.33 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.207e-05/0.3009, allocations: 3.984 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.057e-05/0.301, allocations: 4 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.477e-05/0.301, allocations: 3.984 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-06/0.301, allocations: 4 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.36e-05/0.301, allocations: 87.28 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.301, allocations: 4.031 kB / 1.33 GB, free: 13.54 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002103/0.3013, allocations: 8 kB / 1.33 GB, free: 13.54 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 (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.0005256/0.3018, allocations: 0.7083 MB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000196/0.302, allocations: 48 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.302, allocations: 0 / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.969e-05/0.3021, allocations: 19.97 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002436/0.3023, allocations: 8 kB / 1.331 GB, free: 12.73 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003778/0.3027, allocations: 143.1 kB / 1.331 GB, free: 12.55 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.303, allocations: 0.6847 MB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.965e-05/0.303, allocations: 3.984 kB / 1.331 GB, free: 11.83 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.176e-05/0.303, allocations: 15.42 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of SimCode: time 3.51e-07/0.303, allocations: 4 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.3294, allocations: 1.533 MB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.45, allocations: 6.625 kB / 1.333 GB, free: 10.41 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Polynomial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Polynomial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Polynomial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Polynomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.Polynomial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_Polynomial_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_Polynomial.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Polynomial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Polynomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Polynomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.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.457366852089763]