Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.009976/0.009976, allocations: 103.6 kB / 15.73 MB, free: 6.051 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.001305/0.001305, allocations: 190.8 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.196/2.196, allocations: 390.2 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 0.9508 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9729/0.9741, allocations: 140.4 MB / 1.088 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001524/0.9757, allocations: 0.5192 MB / 1.088 GB, free: 5.18 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0004823/0.9762, allocations: 200.1 kB / 1.089 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.882e-05/0.9762, allocations: 0 / 1.089 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.279e-05/0.9762, allocations: 4.938 kB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.657e-05/0.9763, allocations: 1.312 kB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003806/0.9767, allocations: 57.34 kB / 1.089 GB, free: 5.035 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.3e-05/0.9767, allocations: 19.31 kB / 1.089 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.434e-05/0.9768, allocations: 2.906 kB / 1.089 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.893e-05/0.9768, allocations: 2.938 kB / 1.089 GB, free: 5.023 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.545e-05/0.9768, allocations: 7.172 kB / 1.089 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.9768, allocations: 1.188 kB / 1.089 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002404/0.9771, allocations: 137.5 kB / 1.089 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.047e-05/0.9771, allocations: 11.45 kB / 1.089 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.653e-05/0.9772, allocations: 10 kB / 1.089 GB, free: 4.961 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001648/0.9773, allocations: 74.03 kB / 1.089 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.9773, allocations: 0 / 1.089 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.174e-06/0.9774, allocations: 0 / 1.089 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.9774, allocations: 1.344 kB / 1.089 GB, free: 4.938 MB / 0.8575 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.000283/0.9777, allocations: 341.2 kB / 1.089 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.9777, allocations: 9.25 kB / 1.089 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.231e-05/0.9777, allocations: 2.062 kB / 1.089 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.99e-05/0.9778, allocations: 168.1 kB / 1.089 GB, free: 4.375 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.9778, allocations: 5.469 kB / 1.089 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.9779, allocations: 2.203 kB / 1.089 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.978, allocations: 44.2 kB / 1.089 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.978, allocations: 192 / 1.089 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.978, allocations: 5.672 kB / 1.089 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.978, allocations: 0 / 1.089 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.867e-05/0.978, allocations: 9.641 kB / 1.089 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001322/0.9782, allocations: 163.5 kB / 1.09 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 5.165e-05/0.9782, allocations: 31.08 kB / 1.09 GB, free: 4.102 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.061e-05/0.9783, allocations: 10.98 kB / 1.09 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.18e-05/0.9783, allocations: 9.734 kB / 1.09 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.708e-05/0.9783, allocations: 31.66 kB / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.9783, allocations: 0 / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005013/0.9788, allocations: 304.3 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/0.9789, allocations: 53.09 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.294e-05/0.9789, allocations: 108.2 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.356e-06/0.979, allocations: 25.7 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.366e-05/0.979, allocations: 86.86 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.979, allocations: 11.81 kB / 1.09 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.757e-05/0.979, allocations: 18.45 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.393e-05/0.9791, allocations: 314.8 kB / 1.091 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.525e-05/0.9791, allocations: 14.23 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.255e-05/0.9792, allocations: 27.84 kB / 1.091 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.671e-05/0.9792, allocations: 45.92 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.9792, allocations: 0 / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.817e-05/0.9793, allocations: 63.48 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.9793, allocations: 9.828 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.9794, allocations: 4.062 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.9794, allocations: 1.281 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.692e-05/0.9794, allocations: 11.91 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.9794, allocations: 0 / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.654e-05/0.9795, allocations: 1.938 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.203e-06/0.9795, allocations: 9.25 kB / 1.091 GB, free: 3.055 MB / 0.8575 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 5.114e-05/0.9795, allocations: 117.2 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.145e-05/0.9795, allocations: 6.094 kB / 1.091 GB, free: 2.934 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000129/0.9797, allocations: 74.48 kB / 1.091 GB, free: 2.879 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.9797, allocations: 5.406 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.9797, allocations: 0.7969 kB / 1.091 GB, free: 2.875 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.9797, allocations: 3.938 kB / 1.091 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.67e-05/0.9798, allocations: 163.7 kB / 1.091 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.9798, allocations: 0.6875 kB / 1.091 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.84e-05/0.9798, allocations: 10.23 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.9799, allocations: 4.688 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.9799, allocations: 0.75 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.9799, allocations: 0.9688 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.9799, allocations: 0.7969 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001476/0.98, allocations: 104.4 kB / 1.091 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.817e-05/0.9801, allocations: 79.09 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.9801, allocations: 5.719 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.54e-05/0.9801, allocations: 1 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.625e-05/0.9801, allocations: 2.578 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.9801, allocations: 1.344 kB / 1.091 GB, free: 2.5 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.368e-05/0.9802, allocations: 89.52 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9802, allocations: 8 kB / 1.091 GB, free: 2.414 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000204/0.9804, allocations: 17.2 kB / 1.091 GB, free: 2.414 MB / 0.8575 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.0001584/0.9806, allocations: 116.4 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000104/0.9807, allocations: 31.19 kB / 1.092 GB, free: 2.32 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.9807, allocations: 5.25 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.501e-05/0.9807, allocations: 12.92 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.9809, allocations: 14.44 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002318/0.9811, allocations: 132.6 kB / 1.092 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.9812, allocations: 0.6808 MB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.455e-05/0.9812, allocations: 4.562 kB / 1.092 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.417e-05/0.9813, allocations: 9.359 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of SimCode: time 2e-07/0.9813, allocations: 1.125 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of Templates: time 0.003361/0.9846, allocations: 0.8963 MB / 1.093 GB, free: 1.391 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches