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.001813/0.001813, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002251/0.002251, allocations: 214.7 kB / 23.04 MB, free: 5.074 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 8 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.153/3.153, allocations: 0.49 GB / 0.7959 GB, free: 33.4 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_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.001997/0.001997, allocations: 64.23 kB / 1.155 GB, free: 25.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3521, allocations: 176.1 MB / 1.327 GB, free: 1.922 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Polynomial): time 0.002366/0.3545, allocations: 0.5925 MB / 1.327 GB, free: 1.336 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0002921/0.3548, allocations: 35.88 kB / 1.327 GB, free: 1.301 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.375e-05/0.3548, allocations: 0 / 1.327 GB, free: 1.301 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.945e-05/0.3548, allocations: 3.938 kB / 1.327 GB, free: 1.297 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.633e-06/0.3548, allocations: 0 / 1.327 GB, free: 1.297 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003374/0.3552, allocations: 11.98 kB / 1.327 GB, free: 1.285 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 4.917e-05/0.3552, allocations: 4 kB / 1.327 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.04e-05/0.3553, allocations: 416 / 1.327 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.364e-05/0.3553, allocations: 0 / 1.327 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.39e-05/0.3553, allocations: 3.984 kB / 1.327 GB, free: 1.277 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.3553, allocations: 8 kB / 1.327 GB, free: 1.27 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.3554, allocations: 19.97 kB / 1.327 GB, free: 1.25 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.3555, allocations: 7.984 kB / 1.327 GB, free: 1.242 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 1.895e-05/0.3555, allocations: 3.938 kB / 1.327 GB, free: 1.238 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 9.438e-05/0.3556, allocations: 8.266 kB / 1.327 GB, free: 1.23 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3556, allocations: 7.938 kB / 1.327 GB, free: 1.223 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3556, allocations: 0 / 1.327 GB, free: 1.223 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.28e-06/0.3556, allocations: 0 / 1.327 GB, free: 1.223 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.0003316/0.3559, allocations: 243.8 kB / 1.328 GB, free: 0.9531 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.356, allocations: 8.031 kB / 1.328 GB, free: 0.9453 MB / 1.014 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.574e-05/0.356, allocations: 4.188 kB / 1.328 GB, free: 0.9414 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.253e-05/0.356, allocations: 34.69 kB / 1.328 GB, free: 0.8984 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.635e-05/0.356, allocations: 4.938 kB / 1.328 GB, free: 0.8945 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.7e-05/0.3561, allocations: 106.5 kB / 1.328 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.094e-06/0.3561, allocations: 384 / 1.328 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.3561, allocations: 384 / 1.328 GB, free: 0.7656 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.3563, allocations: 38.02 kB / 1.328 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.3563, allocations: 0 / 1.328 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.3563, allocations: 3.984 kB / 1.328 GB, free: 0.7188 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.3563, allocations: 4 kB / 1.328 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.246e-05/0.3563, allocations: 3.938 kB / 1.328 GB, free: 0.7109 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001882/0.3565, allocations: 116.8 kB / 1.328 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 4.694e-05/0.3565, allocations: 14.58 kB / 1.328 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.528e-05/0.3566, allocations: 12.95 kB / 1.328 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.3566, allocations: 0 / 1.328 GB, free: 0.5156 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.3566, allocations: 38.5 kB / 1.328 GB, free: 480 kB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 7.32e-07/0.3566, allocations: 0 / 1.328 GB, free: 480 kB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.0001786/0.3568, allocations: 41.62 kB / 1.328 GB, free: 432 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.3569, allocations: 51.41 kB / 1.328 GB, free: 368 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.075e-05/0.3569, allocations: 89.86 kB / 1.328 GB, free: 268 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.3569, allocations: 25.7 kB / 1.328 GB, free: 236 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.748e-05/0.357, allocations: 80.14 kB / 1.328 GB, free: 152 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.341e-05/0.357, allocations: 3.953 kB / 1.328 GB, free: 148 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.248e-05/0.3571, allocations: 21.84 kB / 1.328 GB, free: 120 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3572, allocations: 310.8 kB / 1.329 GB, free: 15.8 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.106e-05/0.3572, allocations: 0 / 1.329 GB, free: 15.8 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.138e-05/0.3573, allocations: 7.984 kB / 1.329 GB, free: 15.8 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.828e-05/0.3573, allocations: 4.859 kB / 1.329 GB, free: 15.79 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3573, allocations: 3.938 kB / 1.329 GB, free: 15.79 MB / 1.029 GB Notification: Performance of matching and sorting (n=1) (initialization): time 8.768e-05/0.3574, allocations: 33.7 kB / 1.329 GB, free: 15.75 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.3574, allocations: 11.88 kB / 1.329 GB, free: 15.73 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.3574, allocations: 4.094 kB / 1.329 GB, free: 15.73 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.3574, allocations: 0 / 1.329 GB, free: 15.73 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.658e-05/0.3575, allocations: 8 kB / 1.329 GB, free: 15.72 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.3575, allocations: 0 / 1.329 GB, free: 15.72 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.655e-05/0.3575, allocations: 3.984 kB / 1.329 GB, free: 15.72 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.3575, allocations: 4 kB / 1.329 GB, free: 15.71 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 9.724e-05/0.3576, allocations: 111.2 kB / 1.329 GB, free: 15.6 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.3576, allocations: 3.938 kB / 1.329 GB, free: 15.59 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.3577, allocations: 44.62 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3578, allocations: 3.984 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3578, allocations: 4 kB / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.494e-06/0.3578, allocations: 0 / 1.329 GB, free: 15.53 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.3579, allocations: 120.7 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3579, allocations: 0 / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.175e-05/0.3579, allocations: 4 kB / 1.329 GB, free: 15.37 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.3579, allocations: 3.938 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.3579, allocations: 32 / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.3579, allocations: 4 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3579, allocations: 3.984 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.513e-05/0.358, allocations: 57.14 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 7.434e-06/0.358, allocations: 4 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.358, allocations: 3.938 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.115e-05/0.358, allocations: 3.938 kB / 1.329 GB, free: 15.27 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/0.3581, allocations: 7.984 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.3581, allocations: 4.031 kB / 1.329 GB, free: 15.26 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.245e-05/0.3581, allocations: 75.28 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of sort global known variables: time 5e-08/0.3581, allocations: 0 / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002085/0.3583, allocations: 7.938 kB / 1.329 GB, free: 15.18 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.0004693/0.3588, allocations: 0.5968 MB / 1.33 GB, free: 14.55 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 7.355e-05/0.3589, allocations: 7.938 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3589, allocations: 0 / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.01e-05/0.3589, allocations: 4 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001352/0.359, allocations: 1.562 kB / 1.33 GB, free: 14.54 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003578/0.3594, allocations: 114.5 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.3597, allocations: 0.6729 MB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.508e-05/0.3597, allocations: 4.125 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.674e-05/0.3597, allocations: 11.44 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.3597, allocations: 0 / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02212/0.3818, allocations: 1.16 MB / 1.332 GB, free: 12.65 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.85, allocations: 1.875 kB / 1.332 GB, free: 12.65 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.66961212095339]