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: translateModel(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck") translateModel(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007258/0.007258, allocations: 100.5 kB / 15.73 MB, free: 6.027 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.001545/0.001545, allocations: 187.2 kB / 16.67 MB, free: 5.965 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.423/1.423, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.759/2.759, allocations: 461.9 MB / 0.7347 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 63.91 kB / 1.054 GB, free: 7.168 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3968/0.3979, allocations: 157.4 MB / 1.208 GB, free: 9.664 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001755/0.3997, allocations: 0.5189 MB / 1.208 GB, free: 9.145 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0005349/0.4003, allocations: 203.3 kB / 1.208 GB, free: 8.945 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.555e-05/0.4003, allocations: 4 kB / 1.208 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.651e-05/0.4004, allocations: 0 / 1.208 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.027e-05/0.4004, allocations: 0 / 1.208 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004097/0.4008, allocations: 55.8 kB / 1.208 GB, free: 8.887 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.86e-05/0.4009, allocations: 11.98 kB / 1.208 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.991e-05/0.401, allocations: 3.984 kB / 1.208 GB, free: 8.871 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.273e-05/0.401, allocations: 4 kB / 1.208 GB, free: 8.867 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.67e-05/0.401, allocations: 11.94 kB / 1.208 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.401, allocations: 0 / 1.208 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000225/0.4013, allocations: 135.8 kB / 1.209 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.901e-05/0.4013, allocations: 7.984 kB / 1.209 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.193e-05/0.4014, allocations: 3.938 kB / 1.209 GB, free: 8.711 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001591/0.4015, allocations: 71.83 kB / 1.209 GB, free: 8.641 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4015, allocations: 4 kB / 1.209 GB, free: 8.637 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.324e-06/0.4015, allocations: 0 / 1.209 GB, free: 8.637 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.4016, allocations: 0 / 1.209 GB, free: 8.637 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.0004042/0.402, allocations: 339.4 kB / 1.209 GB, free: 8.254 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.402, allocations: 8.031 kB / 1.209 GB, free: 8.246 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.737e-05/0.4021, allocations: 4.844 kB / 1.209 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.4022, allocations: 168.4 kB / 1.209 GB, free: 8.039 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.4022, allocations: 384 / 1.209 GB, free: 8.039 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.4022, allocations: 4.375 kB / 1.209 GB, free: 8.035 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001105/0.4023, allocations: 42.19 kB / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.4024, allocations: 192 / 1.209 GB, free: 7.988 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.4024, allocations: 7.875 kB / 1.209 GB, free: 7.98 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4024, allocations: 7.938 kB / 1.209 GB, free: 7.973 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.788e-05/0.4024, allocations: 11.98 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001742/0.4026, allocations: 165.7 kB / 1.209 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 5.292e-05/0.4027, allocations: 30.56 kB / 1.209 GB, free: 7.711 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.07e-05/0.4027, allocations: 8.922 kB / 1.209 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/0.4027, allocations: 11.92 kB / 1.209 GB, free: 7.688 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/0.4028, allocations: 30.56 kB / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.4028, allocations: 0 / 1.21 GB, free: 7.648 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005778/0.4033, allocations: 306.4 kB / 1.21 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.4034, allocations: 51.41 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.831e-05/0.4035, allocations: 109.8 kB / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.758e-05/0.4035, allocations: 25.7 kB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.788e-05/0.4035, allocations: 84.14 kB / 1.21 GB, free: 7 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.4036, allocations: 7.812 kB / 1.21 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.4036, allocations: 21.7 kB / 1.21 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.022e-05/0.4037, allocations: 318.9 kB / 1.21 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.308e-05/0.4037, allocations: 8 kB / 1.21 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.734e-05/0.4038, allocations: 29.7 kB / 1.21 GB, free: 6.602 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.608e-05/0.4038, allocations: 41.64 kB / 1.21 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-07/0.4038, allocations: 0 / 1.21 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.949e-05/0.4039, allocations: 65.72 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.404, allocations: 11.94 kB / 1.211 GB, free: 6.473 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.404, allocations: 4 kB / 1.211 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.404, allocations: 0 / 1.211 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.242e-05/0.4041, allocations: 15.92 kB / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.4041, allocations: 0 / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.554e-05/0.4041, allocations: 0 / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.4041, allocations: 0 / 1.211 GB, free: 6.453 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 8.234e-05/0.4042, allocations: 117.8 kB / 1.211 GB, free: 6.328 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.738e-05/0.4042, allocations: 11.84 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001361/0.4043, allocations: 69.61 kB / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.4044, allocations: 0 / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.4044, allocations: 0 / 1.211 GB, free: 6.234 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4044, allocations: 7.875 kB / 1.211 GB, free: 6.227 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001172/0.4045, allocations: 165.7 kB / 1.211 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4045, allocations: 4 kB / 1.211 GB, free: 6.012 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.982e-05/0.4046, allocations: 8 kB / 1.211 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.4046, allocations: 3.938 kB / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.4046, allocations: 0 / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.4046, allocations: 0 / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.4046, allocations: 4 kB / 1.211 GB, free: 5.996 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001521/0.4047, allocations: 105.1 kB / 1.211 GB, free: 5.875 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.422e-05/0.4048, allocations: 84.95 kB / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.4048, allocations: 3.938 kB / 1.211 GB, free: 5.77 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.842e-05/0.4049, allocations: 4.031 kB / 1.211 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.305e-05/0.4049, allocations: 0 / 1.211 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.4049, allocations: 0 / 1.211 GB, free: 5.766 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.774e-05/0.4049, allocations: 95.33 kB / 1.211 GB, free: 5.672 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4049, allocations: 3.938 kB / 1.211 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002183/0.4052, allocations: 20 kB / 1.211 GB, free: 5.648 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.0001737/0.4054, allocations: 115.2 kB / 1.211 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001042/0.4055, allocations: 36.2 kB / 1.211 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4055, allocations: 0 / 1.211 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.213e-05/0.4055, allocations: 12 kB / 1.211 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001542/0.4057, allocations: 12.06 kB / 1.211 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00028/0.4059, allocations: 145.5 kB / 1.212 GB, free: 5.301 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.4062, allocations: 0.6807 MB / 1.212 GB, free: 4.594 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.331e-05/0.4062, allocations: 4 kB / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.4063, allocations: 11.42 kB / 1.212 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of SimCode: time 2.41e-07/0.4063, allocations: 0 / 1.212 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of Templates: time 0.003407/0.4097, allocations: 0.9041 MB / 1.213 GB, free: 3.68 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.makefile (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 & ./Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches