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.001159/0.001159, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.318/1.318, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.748/2.748, allocations: 469.4 MB / 0.742 GB, free: 7.746 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.61 kB / 0.9083 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2772, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001918/0.2792, allocations: 0.5252 MB / 1.064 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000523/0.2798, allocations: 195.4 kB / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.925e-05/0.2798, allocations: 3.938 kB / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.373e-05/0.2798, allocations: 0 / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.088e-05/0.2799, allocations: 4 kB / 1.064 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.2803, allocations: 59.78 kB / 1.064 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.207e-05/0.2804, allocations: 12 kB / 1.064 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.119e-05/0.2804, allocations: 0 / 1.064 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.49e-05/0.2805, allocations: 11.92 kB / 1.064 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.331e-05/0.2805, allocations: 0 / 1.064 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.2805, allocations: 8 kB / 1.064 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002305/0.2807, allocations: 135.8 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.874e-05/0.2808, allocations: 0 / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.659e-05/0.2808, allocations: 15.91 kB / 1.065 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001658/0.281, allocations: 67.84 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.281, allocations: 0 / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.392e-06/0.281, allocations: 0 / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.281, allocations: 0 / 1.065 GB, free: 13.51 MB / 0.8262 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.0003384/0.2814, allocations: 343.7 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.2814, allocations: 12.03 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.804e-05/0.2814, allocations: 34.75 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.791e-05/0.2815, allocations: 0.9375 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.804e-05/0.2816, allocations: 172.2 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.2816, allocations: 384 / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.975e-05/0.2816, allocations: 4.375 kB / 1.065 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.445e-05/0.2817, allocations: 42.19 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2817, allocations: 3.938 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.2818, allocations: 0 / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.2818, allocations: 4 kB / 1.065 GB, free: 12.8 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.507e-05/0.2818, allocations: 12 kB / 1.065 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.282, allocations: 161.7 kB / 1.065 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.237e-05/0.282, allocations: 26.58 kB / 1.065 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.048e-05/0.282, allocations: 8.922 kB / 1.065 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.2821, allocations: 7.984 kB / 1.065 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.2821, allocations: 30.56 kB / 1.065 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.2821, allocations: 7.938 kB / 1.065 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0005186/0.2826, allocations: 302.2 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.978e-05/0.2827, allocations: 51.41 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.987e-05/0.2828, allocations: 109.8 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.2828, allocations: 25.7 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.524e-05/0.2828, allocations: 84.14 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.216e-05/0.2828, allocations: 15.91 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.877e-05/0.2829, allocations: 21.72 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.575e-05/0.283, allocations: 318.8 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.245e-05/0.283, allocations: 8 kB / 1.066 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.445e-05/0.283, allocations: 33.73 kB / 1.066 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.671e-05/0.2831, allocations: 41.64 kB / 1.066 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.2831, allocations: 4 kB / 1.066 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.151e-05/0.2832, allocations: 61.69 kB / 1.067 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2832, allocations: 11.94 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.2832, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.2833, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.784e-05/0.2833, allocations: 7.984 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.2833, allocations: 7.938 kB / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.377e-05/0.2833, allocations: 0 / 1.067 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.2834, allocations: 0 / 1.067 GB, free: 11.29 MB / 0.8262 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 6.991e-05/0.2834, allocations: 122.4 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.797e-05/0.2835, allocations: 11.84 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001327/0.2836, allocations: 69.58 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2836, allocations: 0 / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.2836, allocations: 0 / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2836, allocations: 0 / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001122/0.2837, allocations: 165.7 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2837, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.498e-05/0.2838, allocations: 15.94 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.2838, allocations: 7.938 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.2838, allocations: 0 / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.2838, allocations: 0 / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2838, allocations: 0 / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.284, allocations: 105.1 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.614e-05/0.284, allocations: 84.95 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.2841, allocations: 0 / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.167e-05/0.2841, allocations: 4.031 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.501e-05/0.2841, allocations: 4.062 kB / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.2841, allocations: 0 / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.724e-05/0.2842, allocations: 95.56 kB / 1.067 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.01e-07/0.2842, allocations: 0 / 1.067 GB, free: 10.51 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002308/0.2844, allocations: 16 kB / 1.067 GB, free: 10.49 MB / 0.8262 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.0004532/0.2849, allocations: 0.671 MB / 1.068 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 9.691e-05/0.285, allocations: 27.98 kB / 1.068 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.285, allocations: 3.938 kB / 1.068 GB, free: 9.762 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.404e-05/0.285, allocations: 23.92 kB / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.2852, allocations: 0 / 1.068 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009477/0.2861, allocations: 1.245 MB / 1.069 GB, free: 8.406 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.2864, allocations: 0.6846 MB / 1.07 GB, free: 7.695 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.628e-05/0.2864, allocations: 4.047 kB / 1.07 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.886e-05/0.2864, allocations: 15.44 kB / 1.07 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of SimCode: time 2.01e-07/0.2864, allocations: 0 / 1.07 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02066/0.3071, allocations: 1.847 MB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.503/7.81, allocations: 5.312 kB / 1.072 GB, free: 5.941 MB / 0.8262 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 50 --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