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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.004548/0.004548, allocations: 98.48 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.001304/0.001304, allocations: 194.5 kB / 16.68 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.897/2.897, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001913, allocations: 63.89 kB / 1.083 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.289, allocations: 162.2 MB / 1.241 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001516/0.2906, allocations: 0.5133 MB / 1.242 GB, free: 9.73 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0004707/0.2911, allocations: 199.3 kB / 1.242 GB, free: 9.535 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.973e-05/0.2911, allocations: 0 / 1.242 GB, free: 9.535 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.007e-05/0.2911, allocations: 0 / 1.242 GB, free: 9.535 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.649e-05/0.2912, allocations: 3.938 kB / 1.242 GB, free: 9.531 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003488/0.2915, allocations: 59.86 kB / 1.242 GB, free: 9.473 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.948e-05/0.2916, allocations: 11.98 kB / 1.242 GB, free: 9.461 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.785e-05/0.2916, allocations: 4 kB / 1.242 GB, free: 9.457 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.066e-05/0.2916, allocations: 3.938 kB / 1.242 GB, free: 9.453 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.801e-05/0.2917, allocations: 15.92 kB / 1.242 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.016e-05/0.2917, allocations: 0 / 1.242 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002383/0.2919, allocations: 127.8 kB / 1.242 GB, free: 9.312 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.733e-05/0.292, allocations: 4 kB / 1.242 GB, free: 9.309 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.396e-05/0.292, allocations: 7.875 kB / 1.242 GB, free: 9.301 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001632/0.2922, allocations: 75.77 kB / 1.242 GB, free: 9.227 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2922, allocations: 4 kB / 1.242 GB, free: 9.223 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2922, allocations: 0 / 1.242 GB, free: 9.223 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.2922, allocations: 0 / 1.242 GB, free: 9.223 MB / 0.9981 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.0003585/0.2926, allocations: 339.4 kB / 1.243 GB, free: 8.84 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.2926, allocations: 8.031 kB / 1.243 GB, free: 8.832 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.455e-05/0.2927, allocations: 38.67 kB / 1.243 GB, free: 8.785 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.498e-05/0.2927, allocations: 4.938 kB / 1.243 GB, free: 8.781 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.2928, allocations: 172.3 kB / 1.243 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.2928, allocations: 4.375 kB / 1.243 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.736e-05/0.2929, allocations: 12.31 kB / 1.243 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.447e-05/0.293, allocations: 38.25 kB / 1.243 GB, free: 8.516 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.293, allocations: 7.938 kB / 1.243 GB, free: 8.508 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.293, allocations: 0 / 1.243 GB, free: 8.508 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.293, allocations: 0 / 1.243 GB, free: 8.508 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.482e-05/0.293, allocations: 8 kB / 1.243 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001736/0.2932, allocations: 157.7 kB / 1.243 GB, free: 8.297 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.214e-05/0.2933, allocations: 34.5 kB / 1.243 GB, free: 8.254 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.944e-05/0.2933, allocations: 12.92 kB / 1.243 GB, free: 8.238 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.877e-05/0.2933, allocations: 4 kB / 1.243 GB, free: 8.234 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.2934, allocations: 38.55 kB / 1.243 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.2934, allocations: 0 / 1.243 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0005383/0.2939, allocations: 294.3 kB / 1.244 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.131e-05/0.294, allocations: 55.62 kB / 1.244 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.732e-05/0.2941, allocations: 113.8 kB / 1.244 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.2941, allocations: 25.7 kB / 1.244 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.149e-05/0.2941, allocations: 84.14 kB / 1.244 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.2942, allocations: 11.91 kB / 1.244 GB, free: 7.531 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.2942, allocations: 17.72 kB / 1.244 GB, free: 7.508 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2943, allocations: 314.8 kB / 1.244 GB, free: 7.191 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.135e-05/0.2944, allocations: 19.94 kB / 1.244 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.196e-05/0.2944, allocations: 25.7 kB / 1.244 GB, free: 7.141 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.747e-05/0.2945, allocations: 41.7 kB / 1.244 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.2945, allocations: 0 / 1.244 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000111/0.2946, allocations: 65.62 kB / 1.244 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.2946, allocations: 7.938 kB / 1.244 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/0.2946, allocations: 0 / 1.244 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.295e-05/0.2947, allocations: 64 / 1.244 GB, free: 7.016 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.515e-05/0.2947, allocations: 12 kB / 1.244 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.2947, allocations: 0 / 1.244 GB, free: 7.004 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.681e-05/0.2948, allocations: 7.938 kB / 1.244 GB, free: 6.996 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-06/0.2948, allocations: 4 kB / 1.244 GB, free: 6.992 MB / 0.9981 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.998e-05/0.2948, allocations: 113.8 kB / 1.244 GB, free: 6.871 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.829e-05/0.2949, allocations: 8.031 kB / 1.244 GB, free: 6.863 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001395/0.295, allocations: 85.38 kB / 1.245 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.295, allocations: 0 / 1.245 GB, free: 6.766 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.295, allocations: 8 kB / 1.245 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.444e-06/0.295, allocations: 0 / 1.245 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.2952, allocations: 165.7 kB / 1.245 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2952, allocations: 0 / 1.245 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.536e-05/0.2952, allocations: 4 kB / 1.245 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.2952, allocations: 3.938 kB / 1.245 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.2953, allocations: 0 / 1.245 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2953, allocations: 4 kB / 1.245 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2953, allocations: 0 / 1.245 GB, free: 6.535 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001543/0.2954, allocations: 105 kB / 1.245 GB, free: 6.414 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.03e-05/0.2955, allocations: 97.02 kB / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.2955, allocations: 0 / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.354e-05/0.2956, allocations: 0 / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.401e-05/0.2956, allocations: 0 / 1.245 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.2956, allocations: 4 kB / 1.245 GB, free: 6.297 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.396e-05/0.2956, allocations: 87.27 kB / 1.245 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2956, allocations: 4 kB / 1.245 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002074/0.2959, allocations: 16 kB / 1.245 GB, free: 6.191 MB / 0.9981 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.0004887/0.2964, allocations: 0.6709 MB / 1.246 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 9.095e-05/0.2965, allocations: 27.98 kB / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2965, allocations: 0 / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 2.362e-05/0.2965, allocations: 16 kB / 1.246 GB, free: 5.449 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.2966, allocations: 9.438 kB / 1.246 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.2977, allocations: 1.256 MB / 1.247 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.298, allocations: 0.6807 MB / 1.248 GB, free: 3.391 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.267e-05/0.2981, allocations: 0.7031 kB / 1.248 GB, free: 3.391 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.661e-05/0.2981, allocations: 18.94 kB / 1.248 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.2981, allocations: 0 / 1.248 GB, free: 3.375 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02198/0.3201, allocations: 1.883 MB / 1.249 GB, free: 1.629 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.544/7.864, allocations: 4.062 kB / 1.249 GB, free: 1.625 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.csv --start-time 0 --stop-time 4 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 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.csv","/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) Reference file matches