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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: 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.001046/0.001046, allocations: 98.88 kB / 16.02 MB, free: 76 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.001271/0.001271, allocations: 187.7 kB / 16.92 MB, free: 6.773 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.493/1.493, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.864/2.864, allocations: 462.6 MB / 0.737 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003757/0.000376, allocations: 13.92 kB / 0.9034 GB, free: 36.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3225, allocations: 159.6 MB / 1.059 GB, free: 5 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.0006791/0.3232, allocations: 262.9 kB / 1.06 GB, free: 4.742 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0005125/0.3237, allocations: 203.4 kB / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.457e-05/0.3238, allocations: 0 / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.743e-05/0.3238, allocations: 0 / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.157e-05/0.3238, allocations: 0 / 1.06 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.3241, allocations: 51.86 kB / 1.06 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.203e-05/0.3242, allocations: 8 kB / 1.06 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.331e-05/0.3242, allocations: 0 / 1.06 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.906e-05/0.3243, allocations: 15.92 kB / 1.06 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.621e-05/0.3243, allocations: 0 / 1.06 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.3243, allocations: 0 / 1.06 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000195/0.3245, allocations: 123.8 kB / 1.06 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.466e-05/0.3246, allocations: 11.98 kB / 1.06 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.152e-05/0.3246, allocations: 29.64 kB / 1.06 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.3247, allocations: 47.92 kB / 1.06 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3248, allocations: 0 / 1.06 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3248, allocations: 3.938 kB / 1.06 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.107e-06/0.3248, allocations: 0 / 1.06 GB, free: 4.25 MB / 0.8106 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.0003228/0.3251, allocations: 335.7 kB / 1.06 GB, free: 3.871 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3251, allocations: 12.03 kB / 1.06 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.124e-05/0.3252, allocations: 8.828 kB / 1.06 GB, free: 3.852 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.3253, allocations: 168.4 kB / 1.061 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.3253, allocations: 384 / 1.061 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.572e-05/0.3254, allocations: 8.359 kB / 1.061 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.3255, allocations: 34.27 kB / 1.061 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.3255, allocations: 8.062 kB / 1.061 GB, free: 3.594 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.3255, allocations: 7.938 kB / 1.061 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.3255, allocations: 0 / 1.061 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.617e-05/0.3255, allocations: 11.98 kB / 1.061 GB, free: 3.574 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001727/0.3257, allocations: 157.7 kB / 1.061 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.66e-05/0.3258, allocations: 26.61 kB / 1.061 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.33e-05/0.3258, allocations: 16.91 kB / 1.061 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.789e-05/0.3259, allocations: 4 kB / 1.061 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.3259, allocations: 34.56 kB / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.3259, allocations: 0 / 1.061 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005382/0.3264, allocations: 306.2 kB / 1.061 GB, free: 2.918 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.3265, allocations: 55.41 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.129e-05/0.3266, allocations: 105.8 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.3266, allocations: 25.7 kB / 1.061 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.893e-05/0.3266, allocations: 92.12 kB / 1.061 GB, free: 2.613 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.3267, allocations: 3.906 kB / 1.061 GB, free: 2.609 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.3267, allocations: 17.7 kB / 1.061 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000104/0.3268, allocations: 314.8 kB / 1.062 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.502e-05/0.3268, allocations: 20.02 kB / 1.062 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.944e-05/0.3269, allocations: 21.72 kB / 1.062 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.571e-05/0.3269, allocations: 37.7 kB / 1.062 GB, free: 2.18 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/0.3269, allocations: 3.938 kB / 1.062 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001104/0.3271, allocations: 65.59 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.3271, allocations: 21.66 kB / 1.062 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.616e-06/0.3271, allocations: 0 / 1.062 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.3271, allocations: 0 / 1.062 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.082e-05/0.3272, allocations: 7.984 kB / 1.062 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.3272, allocations: 7.938 kB / 1.062 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.596e-05/0.3272, allocations: 4 kB / 1.062 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3272, allocations: 0 / 1.062 GB, free: 2.066 MB / 0.8106 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.386e-05/0.3273, allocations: 113.8 kB / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.11e-05/0.3273, allocations: 7.938 kB / 1.062 GB, free: 1.938 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001362/0.3275, allocations: 73.58 kB / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3275, allocations: 0 / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3275, allocations: 0 / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3275, allocations: 0 / 1.062 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001208/0.3276, allocations: 165.7 kB / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3276, allocations: 0 / 1.062 GB, free: 1.645 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.685e-05/0.3277, allocations: 8 kB / 1.062 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.3277, allocations: 3.938 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.3277, allocations: 3.938 kB / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.3277, allocations: 0 / 1.062 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3277, allocations: 3.938 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001384/0.3278, allocations: 117.2 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.223e-05/0.3279, allocations: 77.11 kB / 1.062 GB, free: 1.398 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.3279, allocations: 3.938 kB / 1.062 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.643e-05/0.328, allocations: 4.031 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.254e-05/0.328, allocations: 4 kB / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.328, allocations: 0 / 1.062 GB, free: 1.387 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.473e-05/0.328, allocations: 91.27 kB / 1.063 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.328, allocations: 4.062 kB / 1.063 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002052/0.3283, allocations: 20 kB / 1.063 GB, free: 1.273 MB / 0.8106 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.000174/0.3284, allocations: 115.2 kB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.796e-05/0.3285, allocations: 35.91 kB / 1.063 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3285, allocations: 0 / 1.063 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.97e-05/0.3286, allocations: 12 kB / 1.063 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.3287, allocations: 4 kB / 1.063 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002684/0.329, allocations: 174.5 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.3293, allocations: 0.677 MB / 1.064 GB, free: 200 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.804e-05/0.3293, allocations: 11.44 kB / 1.064 GB, free: 188 kB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.3293, allocations: 3.938 kB / 1.064 GB, free: 184 kB / 0.8106 GB Notification: Performance of Templates: time 0.002331/0.3316, allocations: 0.8473 MB / 1.064 GB, free: 15.33 MB / 0.8262 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/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