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: "" <> buildModelFMU(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_9_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.001675/0.001675, 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.001993/0.001993, allocations: 195.5 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.419/1.419, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.314/2.314, allocations: 390.3 MB / 0.6647 GB, free: 496 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001342, allocations: 64.14 kB / 0.8126 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5632/0.5646, allocations: 140.4 MB / 0.9497 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001513/0.5661, allocations: 0.5164 MB / 0.9502 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004009/0.5665, allocations: 187.8 kB / 0.9504 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.699e-05/0.5666, allocations: 0 / 0.9504 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.119e-05/0.5666, allocations: 5.312 kB / 0.9504 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.575e-05/0.5666, allocations: 3.938 kB / 0.9504 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.567, allocations: 63.06 kB / 0.9505 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.349e-05/0.567, allocations: 5.906 kB / 0.9505 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.617e-05/0.5671, allocations: 5.406 kB / 0.9505 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.688e-05/0.5671, allocations: 6.703 kB / 0.9505 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.348e-05/0.5671, allocations: 10.06 kB / 0.9505 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.5671, allocations: 1.156 kB / 0.9505 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.5673, allocations: 128.6 kB / 0.9506 GB, free: 8.477 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.5674, allocations: 2.656 kB / 0.9506 GB, free: 8.477 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.031e-05/0.5674, allocations: 17.2 kB / 0.9506 GB, free: 8.461 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001278/0.5675, allocations: 64.81 kB / 0.9507 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.5675, allocations: 1.5 kB / 0.9507 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.42e-07/0.5675, allocations: 3.938 kB / 0.9507 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.5675, allocations: 0 / 0.9507 GB, free: 8.418 MB / 0.7169 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.0002414/0.5678, allocations: 349.5 kB / 0.951 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.5678, allocations: 9.75 kB / 0.951 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.25e-05/0.5679, allocations: 34.75 kB / 0.9511 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.659e-05/0.5679, allocations: 6.281 kB / 0.9511 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.569e-05/0.568, allocations: 167.2 kB / 0.9512 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.568, allocations: 5.781 kB / 0.9513 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.568, allocations: 1.75 kB / 0.9513 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.456e-05/0.5681, allocations: 36.25 kB / 0.9513 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.5681, allocations: 4.938 kB / 0.9513 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.5681, allocations: 3.984 kB / 0.9513 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.5681, allocations: 1.219 kB / 0.9513 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.403e-05/0.5682, allocations: 7.469 kB / 0.9513 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001129/0.5683, allocations: 174.4 kB / 0.9515 GB, free: 7.535 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.124e-05/0.5683, allocations: 26.52 kB / 0.9515 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.707e-05/0.5684, allocations: 10.23 kB / 0.9515 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.5684, allocations: 6.828 kB / 0.9515 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.478e-05/0.5684, allocations: 32.12 kB / 0.9515 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.603e-06/0.5684, allocations: 0 / 0.9515 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004444/0.5689, allocations: 313.4 kB / 0.9518 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.666e-05/0.5689, allocations: 51.41 kB / 0.9519 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.134e-05/0.5689, allocations: 108.7 kB / 0.952 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.284e-06/0.569, allocations: 25.7 kB / 0.952 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.869e-05/0.569, allocations: 85.64 kB / 0.9521 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.569, allocations: 5.156 kB / 0.9521 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.719e-05/0.569, allocations: 17.88 kB / 0.9521 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.8e-05/0.5691, allocations: 320.2 kB / 0.9524 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.211e-05/0.5691, allocations: 17.53 kB / 0.9524 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.639e-05/0.5691, allocations: 24.7 kB / 0.9525 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.786e-05/0.5692, allocations: 38.64 kB / 0.9525 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.72e-07/0.5692, allocations: 0 / 0.9525 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.646e-05/0.5693, allocations: 74.12 kB / 0.9526 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.5693, allocations: 13.53 kB / 0.9526 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.5693, allocations: 0 / 0.9526 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.5693, allocations: 1.094 kB / 0.9526 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.584e-05/0.5694, allocations: 14.17 kB / 0.9526 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.5694, allocations: 0.9375 kB / 0.9526 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.439e-05/0.5694, allocations: 1.469 kB / 0.9526 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.5694, allocations: 1.25 kB / 0.9526 GB, free: 6.418 MB / 0.7169 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 4.488e-05/0.5695, allocations: 109 kB / 0.9527 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.124e-05/0.5695, allocations: 5.125 kB / 0.9527 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.5696, allocations: 82.98 kB / 0.9528 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.5696, allocations: 1.344 kB / 0.9528 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.5696, allocations: 0 / 0.9528 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.5696, allocations: 0 / 0.9528 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.842e-05/0.5697, allocations: 166.8 kB / 0.953 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.5697, allocations: 0 / 0.953 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.778e-05/0.5698, allocations: 4.375 kB / 0.953 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.5698, allocations: 5.25 kB / 0.953 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.902e-06/0.5698, allocations: 0 / 0.953 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.5698, allocations: 1.062 kB / 0.953 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.5698, allocations: 4 kB / 0.953 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.5699, allocations: 112.3 kB / 0.9531 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.537e-05/0.5699, allocations: 85.22 kB / 0.9532 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.09e-05/0.57, allocations: 1.625 kB / 0.9532 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.507e-05/0.57, allocations: 1.531 kB / 0.9532 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.553e-05/0.57, allocations: 5.641 kB / 0.9532 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.57, allocations: 0 / 0.9532 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.844e-05/0.5701, allocations: 95.2 kB / 0.9533 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5701, allocations: 0 / 0.9533 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002512/0.5703, allocations: 15.72 kB / 0.9533 GB, free: 5.742 MB / 0.7169 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.0003122/0.5707, allocations: 0.6708 MB / 0.9539 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.655e-05/0.5708, allocations: 30.48 kB / 0.954 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.5708, allocations: 6.094 kB / 0.954 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.139e-05/0.5708, allocations: 15.64 kB / 0.954 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001415/0.5709, allocations: 2.125 kB / 0.954 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008841/0.5718, allocations: 1.245 MB / 0.9552 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001418/0.572, allocations: 0.683 MB / 0.9559 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.683e-05/0.572, allocations: 4.375 kB / 0.9559 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.917e-05/0.5721, allocations: 16.91 kB / 0.9559 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of SimCode: time 1.042e-06/0.5721, allocations: 0 / 0.9559 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01793/0.59, allocations: 1.84 MB / 0.9577 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.85/8.44, allocations: 12.97 kB / 0.9577 GB, free: 2.219 MB / 0.7169 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.fmu > Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches