Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008134/0.008135, allocations: 99.31 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 186.3 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.912/2.912, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 67.91 kB / 1.054 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3553, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001852/0.3572, allocations: 0.5172 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0005446/0.3578, allocations: 195.4 kB / 1.208 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.243e-05/0.3578, allocations: 0 / 1.208 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.404e-05/0.3579, allocations: 0 / 1.208 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.616e-05/0.3579, allocations: 3.938 kB / 1.208 GB, free: 9.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004877/0.3584, allocations: 59.84 kB / 1.208 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.431e-05/0.3585, allocations: 8 kB / 1.208 GB, free: 9.391 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.629e-05/0.3586, allocations: 7.984 kB / 1.208 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.528e-05/0.3586, allocations: 7.922 kB / 1.208 GB, free: 9.375 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 2.927e-05/0.3586, allocations: 11.94 kB / 1.208 GB, free: 9.363 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.3587, allocations: 0 / 1.208 GB, free: 9.363 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002514/0.3589, allocations: 131.8 kB / 1.208 GB, free: 9.234 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 5.48e-05/0.359, allocations: 4 kB / 1.208 GB, free: 9.23 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.727e-05/0.359, allocations: 7.922 kB / 1.208 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.3592, allocations: 71.84 kB / 1.208 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.3592, allocations: 0 / 1.208 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.263e-06/0.3592, allocations: 0 / 1.208 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.471e-06/0.3592, allocations: 0 / 1.208 GB, free: 9.152 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0004084/0.3596, allocations: 343.7 kB / 1.209 GB, free: 8.766 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.3597, allocations: 8.625 kB / 1.209 GB, free: 8.758 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.768e-05/0.3597, allocations: 34.69 kB / 1.209 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.275e-05/0.3598, allocations: 16.78 kB / 1.209 GB, free: 8.699 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.3599, allocations: 164.3 kB / 1.209 GB, free: 8.5 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.3599, allocations: 384 / 1.209 GB, free: 8.5 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.759e-05/0.36, allocations: 8.375 kB / 1.209 GB, free: 8.492 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.3601, allocations: 38.25 kB / 1.209 GB, free: 8.449 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.3601, allocations: 3.938 kB / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.3601, allocations: 0 / 1.209 GB, free: 8.445 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.3601, allocations: 3.984 kB / 1.209 GB, free: 8.441 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.718e-05/0.3602, allocations: 8 kB / 1.209 GB, free: 8.434 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.3603, allocations: 165.7 kB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.654e-05/0.3604, allocations: 30.52 kB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.3604, allocations: 8.922 kB / 1.209 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.605e-05/0.3605, allocations: 7.984 kB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.3605, allocations: 30.56 kB / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.083e-06/0.3605, allocations: 4 kB / 1.209 GB, free: 8.121 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005931/0.3611, allocations: 306.1 kB / 1.209 GB, free: 7.77 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.3612, allocations: 51.41 kB / 1.209 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.469e-05/0.3613, allocations: 109.8 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.3613, allocations: 25.7 kB / 1.21 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.149e-05/0.3613, allocations: 88.12 kB / 1.21 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/0.3614, allocations: 11.84 kB / 1.21 GB, free: 7.457 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.3614, allocations: 21.94 kB / 1.21 GB, free: 7.43 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3615, allocations: 314.8 kB / 1.21 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.448e-05/0.3616, allocations: 15.94 kB / 1.21 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.932e-05/0.3616, allocations: 25.7 kB / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.615e-05/0.3617, allocations: 37.7 kB / 1.21 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3617, allocations: 4 kB / 1.21 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001079/0.3618, allocations: 69.62 kB / 1.21 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/0.3618, allocations: 7.938 kB / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.3618, allocations: 0 / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.3618, allocations: 0 / 1.21 GB, free: 6.938 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.491e-05/0.3619, allocations: 8 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.3619, allocations: 3.984 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.844e-05/0.3619, allocations: 4 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.362, allocations: 11.94 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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.826e-05/0.362, allocations: 109.9 kB / 1.21 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.3621, allocations: 11.84 kB / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001495/0.3622, allocations: 73.52 kB / 1.21 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.3622, allocations: 0 / 1.21 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3622, allocations: 4 kB / 1.21 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3623, allocations: 0 / 1.21 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.3624, allocations: 165.7 kB / 1.21 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3624, allocations: 0 / 1.21 GB, free: 6.48 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.509e-05/0.3625, allocations: 7.938 kB / 1.21 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.3625, allocations: 3.938 kB / 1.21 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-06/0.3625, allocations: 4 kB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3625, allocations: 0 / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3625, allocations: 4 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/0.3627, allocations: 105 kB / 1.211 GB, free: 6.34 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.21e-05/0.3627, allocations: 84.98 kB / 1.211 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.3627, allocations: 4 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.653e-05/0.3628, allocations: 0 / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.838e-05/0.3628, allocations: 240 / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.994e-06/0.3628, allocations: 8.062 kB / 1.211 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.211e-05/0.3629, allocations: 87.27 kB / 1.211 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3629, allocations: 0 / 1.211 GB, free: 6.141 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002357/0.3631, allocations: 24 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (3): * Single equations (assignments): 3 * 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.0005001/0.3637, allocations: 0.6592 MB / 1.211 GB, free: 5.43 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001081/0.3638, allocations: 32.05 kB / 1.211 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.3638, allocations: 0 / 1.211 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.28e-05/0.3638, allocations: 16 kB / 1.211 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.364, allocations: 7.984 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.3655, allocations: 1.267 MB / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.3659, allocations: 0.6807 MB / 1.213 GB, free: 3.316 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.571e-05/0.3659, allocations: 4 kB / 1.213 GB, free: 3.312 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.09e-05/0.366, allocations: 19.42 kB / 1.213 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of SimCode: time 4.91e-07/0.366, allocations: 0 / 1.213 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/0.3888, allocations: 1.884 MB / 1.215 GB, free: 1.543 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.798/8.187, allocations: 10.89 kB / 1.215 GB, free: 1.535 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[502]=4.000000 File[237]=1.888000 " Variables in the reference:time,x,y,der(x),der(y) Variables in the result:c[1],c[2],c[3],c[4],c[5],der(x),der(y),time,x,xMax,xMin,y