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.001752/0.001752, allocations: 116.8 kB / 17.16 MB, free: 5.895 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.002201/0.002201, allocations: 212 kB / 20.13 MB, free: 2.949 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.633/1.633, allocations: 230.6 MB / 253.5 MB, free: 15.12 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 2.977/2.977, allocations: 0.49 GB / 0.7923 GB, free: 1.328 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Polynomial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Polynomial",fmuType="cs",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.002035/0.002035, allocations: 85.91 kB / 1.15 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1/1.002, allocations: 176.1 MB / 1.321 GB, free: 24.73 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Polynomial): time 0.002481/1.005, allocations: 1.452 MB / 1.323 GB, free: 23.73 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0003137/1.005, allocations: 96.72 kB / 1.323 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.079e-05/1.005, allocations: 4 kB / 1.323 GB, free: 23.66 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 6.6e-05/1.005, allocations: 7.266 kB / 1.323 GB, free: 23.65 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.529e-05/1.005, allocations: 2.719 kB / 1.323 GB, free: 23.65 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002398/1.005, allocations: 16.98 kB / 1.323 GB, free: 23.64 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.631e-05/1.005, allocations: 23.53 kB / 1.323 GB, free: 23.63 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 8.761e-05/1.006, allocations: 5.953 kB / 1.323 GB, free: 23.63 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 3.708e-05/1.006, allocations: 13.69 kB / 1.323 GB, free: 23.62 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 3.748e-05/1.006, allocations: 13.77 kB / 1.323 GB, free: 23.62 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.058e-05/1.006, allocations: 6.641 kB / 1.323 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.643e-05/1.006, allocations: 18.41 kB / 1.323 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.503e-05/1.006, allocations: 6.5 kB / 1.323 GB, free: 23.61 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.997e-05/1.006, allocations: 14.11 kB / 1.323 GB, free: 23.6 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001117/1.006, allocations: 34.59 kB / 1.323 GB, free: 23.59 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/1.006, allocations: 0 / 1.323 GB, free: 23.59 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.793e-06/1.006, allocations: 0 / 1.323 GB, free: 23.59 MB / 1.061 GB Notification: Performance of Transformations before backend: time 4.719e-06/1.006, allocations: 0 / 1.323 GB, free: 23.59 MB / 1.061 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.0003839/1.006, allocations: 350.2 kB / 1.323 GB, free: 23.22 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/1.006, allocations: 15.61 kB / 1.323 GB, free: 23.21 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.847e-05/1.006, allocations: 6.688 kB / 1.323 GB, free: 23.21 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.842e-05/1.006, allocations: 30.75 kB / 1.324 GB, free: 23.17 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.269e-05/1.006, allocations: 4.891 kB / 1.324 GB, free: 23.16 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.07e-05/1.006, allocations: 173.9 kB / 1.324 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.193e-06/1.006, allocations: 2.906 kB / 1.324 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/1.006, allocations: 384 / 1.324 GB, free: 22.96 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001874/1.007, allocations: 53.05 kB / 1.324 GB, free: 22.92 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/1.007, allocations: 3.938 kB / 1.324 GB, free: 22.92 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-06/1.007, allocations: 0 / 1.324 GB, free: 22.92 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.547e-06/1.007, allocations: 0 / 1.324 GB, free: 22.92 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001624/1.007, allocations: 47.94 kB / 1.324 GB, free: 22.91 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002522/1.007, allocations: 256 kB / 1.324 GB, free: 22.62 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/1.007, allocations: 39.61 kB / 1.324 GB, free: 22.6 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.375e-05/1.007, allocations: 26.25 kB / 1.324 GB, free: 22.59 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.899e-05/1.007, allocations: 2.688 kB / 1.324 GB, free: 22.59 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.302e-05/1.007, allocations: 34.5 kB / 1.324 GB, free: 22.54 MB / 1.061 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/1.007, allocations: 0 / 1.324 GB, free: 22.54 MB / 1.061 GB Notification: Performance of matching and sorting (n=2): time 0.0003421/1.008, allocations: 95.17 kB / 1.324 GB, free: 22.5 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.266e-05/1.008, allocations: 54.86 kB / 1.324 GB, free: 22.43 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.72e-05/1.008, allocations: 111.4 kB / 1.324 GB, free: 22.32 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 7.023e-06/1.008, allocations: 32.61 kB / 1.324 GB, free: 22.29 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 2.566e-05/1.008, allocations: 80.14 kB / 1.324 GB, free: 22.21 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/1.008, allocations: 3.953 kB / 1.325 GB, free: 22.2 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.604e-05/1.008, allocations: 16.88 kB / 1.325 GB, free: 22.18 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 4.368e-05/1.008, allocations: 316.8 kB / 1.325 GB, free: 21.87 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.022e-05/1.008, allocations: 15.88 kB / 1.325 GB, free: 21.87 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.134e-05/1.008, allocations: 22.06 kB / 1.325 GB, free: 21.86 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001442/1.008, allocations: 44.23 kB / 1.325 GB, free: 21.85 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.008, allocations: 0 / 1.325 GB, free: 21.85 MB / 1.061 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001812/1.008, allocations: 74.5 kB / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/1.008, allocations: 6.125 kB / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/1.008, allocations: 4 kB / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/1.008, allocations: 0 / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.009e-05/1.008, allocations: 9.359 kB / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.75e-06/1.008, allocations: 0 / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.469e-05/1.009, allocations: 8.734 kB / 1.325 GB, free: 21.8 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/1.009, allocations: 3.984 kB / 1.325 GB, free: 21.8 MB / 1.061 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 5.232e-05/1.009, allocations: 114.5 kB / 1.325 GB, free: 21.68 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.439e-05/1.009, allocations: 7.281 kB / 1.325 GB, free: 21.68 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002185/1.009, allocations: 85.5 kB / 1.325 GB, free: 21.62 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/1.009, allocations: 0 / 1.325 GB, free: 21.62 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/1.009, allocations: 0 / 1.325 GB, free: 21.62 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/1.009, allocations: 0 / 1.325 GB, free: 21.62 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/1.009, allocations: 168.6 kB / 1.325 GB, free: 21.42 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/1.009, allocations: 0 / 1.325 GB, free: 21.42 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.444e-05/1.009, allocations: 9.078 kB / 1.325 GB, free: 21.42 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/1.009, allocations: 0 / 1.325 GB, free: 21.42 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/1.009, allocations: 4.031 kB / 1.325 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/1.009, allocations: 0 / 1.325 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.009, allocations: 6.844 kB / 1.325 GB, free: 21.41 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002024/1.009, allocations: 158.9 kB / 1.326 GB, free: 21.27 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.266e-05/1.009, allocations: 96.2 kB / 1.326 GB, free: 21.16 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/1.009, allocations: 2.812 kB / 1.326 GB, free: 21.16 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.174e-05/1.009, allocations: 7 kB / 1.326 GB, free: 21.16 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/1.009, allocations: 5.969 kB / 1.326 GB, free: 21.16 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-06/1.009, allocations: 4 kB / 1.326 GB, free: 21.16 MB / 1.061 GB Notification: Performance of sorting global known variables: time 2.596e-05/1.009, allocations: 88.23 kB / 1.326 GB, free: 21.08 MB / 1.061 GB Notification: Performance of sort global known variables: time 6e-08/1.009, allocations: 0 / 1.326 GB, free: 21.08 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002286/1.01, allocations: 7.781 kB / 1.326 GB, free: 21.08 MB / 1.061 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.0004136/1.01, allocations: 0.7033 MB / 1.326 GB, free: 20.41 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002237/1.01, allocations: 43.81 kB / 1.326 GB, free: 20.4 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/1.01, allocations: 0 / 1.326 GB, free: 20.4 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001061/1.01, allocations: 23.06 kB / 1.326 GB, free: 20.39 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/1.011, allocations: 8.188 kB / 1.326 GB, free: 20.39 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000414/1.011, allocations: 146.1 kB / 1.327 GB, free: 20.24 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/1.011, allocations: 0.6889 MB / 1.327 GB, free: 19.54 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 2.192e-05/1.011, allocations: 0 / 1.327 GB, free: 19.54 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.077e-05/1.011, allocations: 10.28 kB / 1.327 GB, free: 19.53 MB / 1.061 GB Notification: Performance of SimCode: time 3.31e-07/1.011, allocations: 0 / 1.327 GB, free: 19.53 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01718/1.028, allocations: 1.478 MB / 1.329 GB, free: 19.11 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.461/9.489, allocations: 2.656 kB / 1.329 GB, free: 19.11 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.312285550986417]