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.00847/0.00847, allocations: 101.9 kB / 15.73 MB, free: 6.031 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.00189/0.00189, allocations: 197.4 kB / 16.67 MB, free: 5.969 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.502/1.502, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.938/2.938, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 63.91 kB / 1.054 GB, free: 7.648 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3978, allocations: 157.4 MB / 1.207 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001759/0.3996, allocations: 0.5211 MB / 1.208 GB, free: 9.625 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000527/0.4001, allocations: 191.4 kB / 1.208 GB, free: 9.438 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.415e-05/0.4002, allocations: 0 / 1.208 GB, free: 9.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.755e-05/0.4002, allocations: 0 / 1.208 GB, free: 9.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.592e-05/0.4003, allocations: 3.938 kB / 1.208 GB, free: 9.434 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005015/0.4008, allocations: 63.84 kB / 1.208 GB, free: 9.371 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.514e-05/0.4009, allocations: 11.97 kB / 1.208 GB, free: 9.359 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.189e-05/0.4009, allocations: 4 kB / 1.208 GB, free: 9.355 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.273e-05/0.4009, allocations: 4 kB / 1.208 GB, free: 9.352 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.032e-05/0.401, allocations: 7.938 kB / 1.208 GB, free: 9.344 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.401, allocations: 0 / 1.208 GB, free: 9.344 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002394/0.4012, allocations: 139.8 kB / 1.208 GB, free: 9.207 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.825e-05/0.4013, allocations: 4 kB / 1.208 GB, free: 9.203 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.855e-05/0.4013, allocations: 7.938 kB / 1.208 GB, free: 9.195 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.4015, allocations: 75.83 kB / 1.208 GB, free: 9.121 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4015, allocations: 0 / 1.208 GB, free: 9.121 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.794e-06/0.4015, allocations: 0 / 1.208 GB, free: 9.121 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.141e-06/0.4015, allocations: 0 / 1.208 GB, free: 9.121 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.0004584/0.402, allocations: 339.7 kB / 1.209 GB, free: 8.738 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.4021, allocations: 8.625 kB / 1.209 GB, free: 8.73 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.847e-05/0.4021, allocations: 34.69 kB / 1.209 GB, free: 8.688 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.518e-05/0.4022, allocations: 12.84 kB / 1.209 GB, free: 8.676 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001343/0.4023, allocations: 164.4 kB / 1.209 GB, free: 8.477 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.4023, allocations: 4.375 kB / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.4024, allocations: 384 / 1.209 GB, free: 8.473 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.4025, allocations: 38.27 kB / 1.209 GB, free: 8.43 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.4025, allocations: 15.84 kB / 1.209 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.4025, allocations: 0 / 1.209 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4025, allocations: 0 / 1.209 GB, free: 8.414 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.877e-05/0.4026, allocations: 8 kB / 1.209 GB, free: 8.406 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001991/0.4028, allocations: 161.7 kB / 1.209 GB, free: 8.199 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.675e-05/0.4028, allocations: 30.53 kB / 1.209 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.351e-05/0.4029, allocations: 8.922 kB / 1.209 GB, free: 8.148 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 4.828e-05/0.4029, allocations: 7.984 kB / 1.209 GB, free: 8.141 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.403, allocations: 42.5 kB / 1.209 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.403, allocations: 0 / 1.209 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0006423/0.4036, allocations: 302.1 kB / 1.209 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.4037, allocations: 51.41 kB / 1.209 GB, free: 7.68 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.442e-05/0.4038, allocations: 109.8 kB / 1.21 GB, free: 7.562 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.4038, allocations: 29.7 kB / 1.21 GB, free: 7.527 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.4038, allocations: 84.14 kB / 1.21 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.4039, allocations: 15.83 kB / 1.21 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.672e-05/0.4039, allocations: 13.72 kB / 1.21 GB, free: 7.406 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.4041, allocations: 319.1 kB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.967e-05/0.4041, allocations: 19.98 kB / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.358e-05/0.4041, allocations: 25.64 kB / 1.21 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.344e-05/0.4042, allocations: 41.72 kB / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.4042, allocations: 0 / 1.21 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001012/0.4043, allocations: 73.61 kB / 1.21 GB, free: 6.91 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.4043, allocations: 7.938 kB / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.4044, allocations: 0 / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.4044, allocations: 0 / 1.21 GB, free: 6.902 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.15e-05/0.4045, allocations: 8 kB / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.4045, allocations: 0 / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.485e-05/0.4045, allocations: 0 / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.4045, allocations: 4 kB / 1.21 GB, free: 6.891 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 9.537e-05/0.4046, allocations: 117.8 kB / 1.21 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.4046, allocations: 11.91 kB / 1.21 GB, free: 6.754 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001504/0.4048, allocations: 69.52 kB / 1.21 GB, free: 6.672 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4048, allocations: 4 kB / 1.21 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.4048, allocations: 3.938 kB / 1.21 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.4048, allocations: 0 / 1.21 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.405, allocations: 161.7 kB / 1.21 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.405, allocations: 0 / 1.21 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.209e-05/0.405, allocations: 7.984 kB / 1.211 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.405, allocations: 3.938 kB / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.405, allocations: 0 / 1.211 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.4051, allocations: 8 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4051, allocations: 0 / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001711/0.4052, allocations: 101.3 kB / 1.211 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.832e-05/0.4053, allocations: 88.98 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.4053, allocations: 0 / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.444e-05/0.4054, allocations: 11.97 kB / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.356e-05/0.4054, allocations: 0 / 1.211 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.4054, allocations: 4 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.118e-05/0.4055, allocations: 91.64 kB / 1.211 GB, free: 6.109 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4055, allocations: 3.938 kB / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002613/0.4057, allocations: 24 kB / 1.211 GB, free: 6.082 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.0005547/0.4063, allocations: 0.6437 MB / 1.211 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001274/0.4064, allocations: 40.05 kB / 1.211 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4064, allocations: 0 / 1.211 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.416e-05/0.4065, allocations: 15.98 kB / 1.212 GB, free: 5.355 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.4066, allocations: 4 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001144/0.4078, allocations: 1.268 MB / 1.213 GB, free: 3.996 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.4081, allocations: 0.6846 MB / 1.213 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.932e-05/0.4081, allocations: 7.984 kB / 1.213 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.347e-05/0.4082, allocations: 11.44 kB / 1.213 GB, free: 3.27 MB / 0.9669 GB Notification: Performance of SimCode: time 6.91e-07/0.4082, allocations: 4 kB / 1.213 GB, free: 3.266 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.4303, allocations: 1.878 MB / 1.215 GB, free: 1.52 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.054/8.484, allocations: 13.3 kB / 1.215 GB, free: 1.512 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