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.001762/0.001762, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002682/0.002682, allocations: 211.5 kB / 22.24 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.801 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.377/3.377, allocations: 0.4892 GB / 0.7943 GB, free: 35.7 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.002279/0.002279, allocations: 72.45 kB / 1.153 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3932/0.3955, allocations: 176.1 MB / 1.325 GB, free: 2.316 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.001825/0.3973, allocations: 0.5889 MB / 1.326 GB, free: 1.734 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002504/0.3976, allocations: 31.89 kB / 1.326 GB, free: 1.703 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.47e-05/0.3976, allocations: 0 / 1.326 GB, free: 1.703 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.124e-05/0.3976, allocations: 4 kB / 1.326 GB, free: 1.699 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.711e-06/0.3976, allocations: 0 / 1.326 GB, free: 1.699 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002774/0.3979, allocations: 15.92 kB / 1.326 GB, free: 1.684 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 3.614e-05/0.3979, allocations: 3.984 kB / 1.326 GB, free: 1.68 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 3.853e-05/0.398, allocations: 8.344 kB / 1.326 GB, free: 1.672 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.137e-05/0.398, allocations: 0 / 1.326 GB, free: 1.672 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.28e-05/0.398, allocations: 0 / 1.326 GB, free: 1.672 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 8.486e-06/0.398, allocations: 0 / 1.326 GB, free: 1.672 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 9.337e-05/0.3981, allocations: 19.97 kB / 1.326 GB, free: 1.652 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.935e-06/0.3981, allocations: 0 / 1.326 GB, free: 1.652 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 1.793e-05/0.3981, allocations: 4 kB / 1.326 GB, free: 1.648 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 9.3e-05/0.3982, allocations: 24.23 kB / 1.326 GB, free: 1.625 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3982, allocations: 0 / 1.326 GB, free: 1.625 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3982, allocations: 0 / 1.326 GB, free: 1.625 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.3982, allocations: 0 / 1.326 GB, free: 1.625 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.0003421/0.3986, allocations: 242.4 kB / 1.326 GB, free: 1.355 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.3986, allocations: 12.03 kB / 1.326 GB, free: 1.344 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.363e-05/0.3987, allocations: 30.75 kB / 1.326 GB, free: 1.305 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.229e-05/0.3987, allocations: 0.9375 kB / 1.326 GB, free: 1.305 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.555e-05/0.3988, allocations: 106.5 kB / 1.326 GB, free: 1.176 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.3988, allocations: 384 / 1.326 GB, free: 1.176 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.037e-06/0.3988, allocations: 4.375 kB / 1.326 GB, free: 1.172 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.184e-05/0.3989, allocations: 34.27 kB / 1.326 GB, free: 1.133 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.3989, allocations: 3.938 kB / 1.326 GB, free: 1.129 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.3989, allocations: 4 kB / 1.326 GB, free: 1.125 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3989, allocations: 0 / 1.326 GB, free: 1.125 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.377e-05/0.3989, allocations: 7.938 kB / 1.326 GB, free: 1.117 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001638/0.3991, allocations: 120.7 kB / 1.326 GB, free: 0.957 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.673e-05/0.3992, allocations: 22.59 kB / 1.326 GB, free: 0.9258 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.315e-05/0.3992, allocations: 4.859 kB / 1.326 GB, free: 0.918 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.877e-05/0.3992, allocations: 4.062 kB / 1.326 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.3992, allocations: 30.56 kB / 1.326 GB, free: 0.875 MB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3992, allocations: 4 kB / 1.326 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0001482/0.3994, allocations: 41.58 kB / 1.326 GB, free: 0.8242 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.3994, allocations: 55.41 kB / 1.326 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.845e-05/0.3995, allocations: 89.86 kB / 1.327 GB, free: 0.6602 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.3995, allocations: 25.7 kB / 1.327 GB, free: 0.6289 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.455e-05/0.3996, allocations: 84.08 kB / 1.327 GB, free: 0.543 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.403e-05/0.3996, allocations: 7.938 kB / 1.327 GB, free: 0.5352 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.3996, allocations: 13.72 kB / 1.327 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001997/0.3998, allocations: 310.8 kB / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.088e-05/0.3998, allocations: 128 / 1.327 GB, free: 208 kB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.676e-06/0.3998, allocations: 8 kB / 1.327 GB, free: 200 kB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.016e-05/0.3999, allocations: 8.859 kB / 1.327 GB, free: 188 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3999, allocations: 0 / 1.327 GB, free: 188 kB / 1.014 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.582e-05/0.3999, allocations: 41.62 kB / 1.327 GB, free: 140 kB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.4, allocations: 4 kB / 1.327 GB, free: 136 kB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4, allocations: 3.938 kB / 1.327 GB, free: 132 kB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.4, allocations: 0 / 1.327 GB, free: 132 kB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.476e-05/0.4, allocations: 4 kB / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.4, allocations: 0 / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.344e-05/0.4001, allocations: 4.094 kB / 1.327 GB, free: 124 kB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.4001, allocations: 0 / 1.327 GB, free: 124 kB / 1.014 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 8.63e-05/0.4002, allocations: 112.1 kB / 1.327 GB, free: 4 kB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-06/0.4002, allocations: 0 / 1.327 GB, free: 4 kB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001261/0.4003, allocations: 48.62 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.4003, allocations: 0 / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4003, allocations: 0 / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.4003, allocations: 4.031 kB / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001134/0.4004, allocations: 120.7 kB / 1.327 GB, free: 15.78 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4004, allocations: 0 / 1.327 GB, free: 15.78 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.118e-05/0.4004, allocations: 4 kB / 1.327 GB, free: 15.78 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.4004, allocations: 3.938 kB / 1.327 GB, free: 15.77 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.4004, allocations: 3.938 kB / 1.327 GB, free: 15.77 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.4004, allocations: 0 / 1.327 GB, free: 15.77 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4004, allocations: 0 / 1.327 GB, free: 15.77 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.424e-05/0.4005, allocations: 65.11 kB / 1.327 GB, free: 15.69 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-06/0.4005, allocations: 4 kB / 1.327 GB, free: 15.68 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.426e-05/0.4005, allocations: 11.94 kB / 1.327 GB, free: 15.67 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.134e-05/0.4006, allocations: 4.031 kB / 1.327 GB, free: 15.67 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.937e-06/0.4006, allocations: 0 / 1.327 GB, free: 15.67 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-06/0.4006, allocations: 0 / 1.327 GB, free: 15.67 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.287e-05/0.4006, allocations: 75.28 kB / 1.327 GB, free: 15.59 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4006, allocations: 4 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002049/0.4008, allocations: 7.938 kB / 1.328 GB, free: 15.58 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.0004676/0.4013, allocations: 0.6007 MB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 6.661e-05/0.4014, allocations: 4 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.4014, allocations: 8.031 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.114e-05/0.4014, allocations: 7.984 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.4015, allocations: 3.938 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002921/0.4018, allocations: 106.6 kB / 1.328 GB, free: 14.78 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.51e-05/0.4018, allocations: 55.36 kB / 1.328 GB, free: 14.71 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.021e-05/0.4019, allocations: 0 / 1.328 GB, free: 14.71 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.694e-05/0.4019, allocations: 19.48 kB / 1.328 GB, free: 14.69 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.4019, allocations: 0 / 1.328 GB, free: 14.69 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02948/0.4314, allocations: 1.518 MB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.04, allocations: 0.7031 kB / 1.33 GB, free: 13.3 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.Polynomial_res.csv --start-time 0 --stop-time 4 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 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.csv","/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: 19.141169934999198]