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: 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.001801/0.001801, allocations: 108 kB / 15.6 MB, free: 132 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.002234/0.002235, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.424/1.424, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.803/2.803, allocations: 472.6 MB / 0.7451 GB, free: 4.621 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 65.88 kB / 0.912 GB, free: 33.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3893, allocations: 159.9 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001985/0.3913, allocations: 0.5158 MB / 1.069 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000526/0.3919, allocations: 191.4 kB / 1.069 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.966e-05/0.3919, allocations: 4 kB / 1.069 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.458e-05/0.392, allocations: 0 / 1.069 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.713e-05/0.392, allocations: 3.938 kB / 1.069 GB, free: 9.723 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003549/0.3924, allocations: 59.84 kB / 1.069 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.019e-05/0.3924, allocations: 8 kB / 1.069 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.353e-05/0.3924, allocations: 4 kB / 1.069 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.807e-05/0.3925, allocations: 7.938 kB / 1.069 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.845e-05/0.3925, allocations: 11.98 kB / 1.069 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.3925, allocations: 0 / 1.069 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002255/0.3928, allocations: 131.8 kB / 1.069 GB, free: 9.504 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.151e-05/0.3928, allocations: 4 kB / 1.069 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.657e-05/0.3928, allocations: 7.922 kB / 1.069 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001702/0.393, allocations: 67.83 kB / 1.069 GB, free: 9.426 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.393, allocations: 4 kB / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.555e-06/0.393, allocations: 0 / 1.069 GB, free: 9.422 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.393, allocations: 0 / 1.069 GB, free: 9.422 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.000394/0.3934, allocations: 349.4 kB / 1.07 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.3935, allocations: 8.031 kB / 1.07 GB, free: 9.023 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.069e-05/0.3935, allocations: 4.922 kB / 1.07 GB, free: 9.02 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.3937, allocations: 184.2 kB / 1.07 GB, free: 8.801 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.3937, allocations: 4.312 kB / 1.07 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.3937, allocations: 4.375 kB / 1.07 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/0.3939, allocations: 38.25 kB / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.3939, allocations: 192 / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3939, allocations: 3.938 kB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.3939, allocations: 8 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.704e-05/0.3939, allocations: 8 kB / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001867/0.3941, allocations: 161.6 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.448e-05/0.3942, allocations: 34.5 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.13e-05/0.3942, allocations: 8.922 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.792e-05/0.3943, allocations: 4 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.3943, allocations: 34.56 kB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.512e-06/0.3943, allocations: 0 / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0006186/0.3949, allocations: 304.4 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.395, allocations: 51.41 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.553e-05/0.3951, allocations: 109.8 kB / 1.07 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.3951, allocations: 25.7 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.348e-05/0.3951, allocations: 88.34 kB / 1.071 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/0.3952, allocations: 11.81 kB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.912e-05/0.3952, allocations: 17.72 kB / 1.071 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3953, allocations: 318.8 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.401e-05/0.3954, allocations: 8 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.212e-05/0.3954, allocations: 33.64 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.515e-05/0.3955, allocations: 41.7 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.3955, allocations: 0 / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.584e-05/0.3956, allocations: 65.62 kB / 1.071 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.3956, allocations: 11.94 kB / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.3956, allocations: 0 / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.3956, allocations: 0 / 1.071 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.705e-05/0.3957, allocations: 4 kB / 1.071 GB, free: 7.238 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.3957, allocations: 4 kB / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.3957, allocations: 0 / 1.071 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.3957, allocations: 4 kB / 1.071 GB, free: 7.23 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 8.807e-05/0.3958, allocations: 121.8 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.937e-05/0.3959, allocations: 15.78 kB / 1.071 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.396, allocations: 69.52 kB / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.396, allocations: 0 / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.396, allocations: 0 / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.396, allocations: 0 / 1.071 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.3962, allocations: 165.7 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.3962, allocations: 3.984 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.211e-05/0.3962, allocations: 8 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3963, allocations: 7.938 kB / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.3963, allocations: 0 / 1.071 GB, free: 6.773 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3963, allocations: 4 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3963, allocations: 0 / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.3964, allocations: 109.2 kB / 1.072 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.191e-05/0.3965, allocations: 81.02 kB / 1.072 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.3965, allocations: 7.922 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.163e-05/0.3966, allocations: 12.03 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.444e-05/0.3966, allocations: 0 / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.3966, allocations: 0 / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.065e-05/0.3967, allocations: 91.27 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3967, allocations: 0 / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002193/0.3969, allocations: 16 kB / 1.072 GB, free: 6.422 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.0001936/0.3971, allocations: 115.8 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001195/0.3972, allocations: 35.98 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.3972, allocations: 4.125 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.339e-05/0.3973, allocations: 19.92 kB / 1.072 GB, free: 6.242 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.3974, allocations: 10.5 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003019/0.3977, allocations: 133 kB / 1.072 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.398, allocations: 0.6807 MB / 1.073 GB, free: 5.375 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.519e-05/0.398, allocations: 4 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.763e-05/0.398, allocations: 11.44 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3981, allocations: 0 / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of Templates: time 0.003522/0.4016, allocations: 0.8947 MB / 1.074 GB, free: 4.465 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/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