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.001419/0.001419, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001439/0.001439, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.526/1.526, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.004/3.004, allocations: 482.4 MB / 0.7542 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001945/0.001945, allocations: 63.98 kB / 0.9231 GB, free: 29.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.4176, allocations: 162.2 MB / 1.082 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.002261/0.4199, allocations: 0.587 MB / 1.082 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0005936/0.4205, allocations: 203.4 kB / 1.082 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.769e-05/0.4205, allocations: 0 / 1.082 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.317e-05/0.4206, allocations: 0 / 1.082 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.864e-05/0.4206, allocations: 3.938 kB / 1.082 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003519/0.421, allocations: 47.92 kB / 1.082 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.764e-05/0.4211, allocations: 11.94 kB / 1.082 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.111e-05/0.4211, allocations: 3.984 kB / 1.082 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.206e-05/0.4212, allocations: 15.94 kB / 1.082 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.101e-05/0.4212, allocations: 0 / 1.082 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.4212, allocations: 4 kB / 1.082 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002207/0.4214, allocations: 115.8 kB / 1.083 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.922e-05/0.4215, allocations: 7.984 kB / 1.083 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.4215, allocations: 7.938 kB / 1.083 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001616/0.4217, allocations: 63.83 kB / 1.083 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.4217, allocations: 7.938 kB / 1.083 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.352e-06/0.4217, allocations: 0 / 1.083 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.521e-06/0.4217, allocations: 0 / 1.083 GB, free: 12.74 MB / 0.8419 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.0004753/0.4222, allocations: 343.7 kB / 1.083 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.4223, allocations: 11.97 kB / 1.083 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.535e-05/0.4223, allocations: 4.844 kB / 1.083 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.4225, allocations: 168.4 kB / 1.083 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.405e-05/0.4226, allocations: 384 / 1.083 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/0.4226, allocations: 12.3 kB / 1.083 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001473/0.4228, allocations: 34.27 kB / 1.083 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4228, allocations: 192 / 1.083 GB, free: 12.09 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.4228, allocations: 3.938 kB / 1.083 GB, free: 12.08 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.4228, allocations: 8 kB / 1.083 GB, free: 12.07 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.065e-05/0.4228, allocations: 11.98 kB / 1.083 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002512/0.4231, allocations: 161.6 kB / 1.083 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 7.862e-05/0.4232, allocations: 26.58 kB / 1.083 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.073e-05/0.4232, allocations: 12.91 kB / 1.083 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 5.889e-05/0.4233, allocations: 4 kB / 1.083 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.121e-05/0.4233, allocations: 34.56 kB / 1.083 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.4234, allocations: 0 / 1.083 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0008183/0.4242, allocations: 302.2 kB / 1.084 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/0.4242, allocations: 51.41 kB / 1.084 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.4244, allocations: 109.8 kB / 1.084 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.4244, allocations: 25.7 kB / 1.084 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.651e-05/0.4245, allocations: 84.36 kB / 1.084 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.4245, allocations: 11.81 kB / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.709e-05/0.4246, allocations: 21.7 kB / 1.084 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001881/0.4248, allocations: 314.8 kB / 1.084 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.76e-05/0.4248, allocations: 19.92 kB / 1.084 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.831e-05/0.4249, allocations: 21.72 kB / 1.084 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.515e-05/0.425, allocations: 41.7 kB / 1.084 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.425, allocations: 0 / 1.084 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001026/0.4251, allocations: 65.62 kB / 1.084 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.4251, allocations: 11.94 kB / 1.084 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4251, allocations: 0 / 1.084 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.851e-05/0.4251, allocations: 3.984 kB / 1.084 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.525e-05/0.4252, allocations: 4 kB / 1.084 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.4252, allocations: 4 kB / 1.084 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.805e-05/0.4253, allocations: 4 kB / 1.084 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.824e-06/0.4253, allocations: 64 / 1.084 GB, free: 10.57 MB / 0.8419 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 0.0001212/0.4254, allocations: 117.8 kB / 1.085 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.104e-05/0.4254, allocations: 11.84 kB / 1.085 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002004/0.4256, allocations: 85.88 kB / 1.085 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.4256, allocations: 0 / 1.085 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4257, allocations: 0 / 1.085 GB, free: 10.34 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.4257, allocations: 3.984 kB / 1.085 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.4258, allocations: 165.6 kB / 1.085 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4259, allocations: 0 / 1.085 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.572e-05/0.4259, allocations: 16 kB / 1.085 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.4259, allocations: 3.938 kB / 1.085 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.4259, allocations: 0 / 1.085 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.426, allocations: 3.984 kB / 1.085 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.426, allocations: 0 / 1.085 GB, free: 10.1 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001982/0.4262, allocations: 105 kB / 1.085 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.182e-05/0.4262, allocations: 81.02 kB / 1.085 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.4263, allocations: 3.938 kB / 1.085 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.533e-05/0.4263, allocations: 8.094 kB / 1.085 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.529e-05/0.4264, allocations: 3.984 kB / 1.085 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.4264, allocations: 0 / 1.085 GB, free: 9.863 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.64e-05/0.4264, allocations: 87.28 kB / 1.085 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4264, allocations: 0 / 1.085 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002236/0.4267, allocations: 23.98 kB / 1.085 GB, free: 9.754 MB / 0.8419 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.0002506/0.4269, allocations: 115.2 kB / 1.085 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001248/0.4271, allocations: 35.98 kB / 1.085 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4271, allocations: 4.062 kB / 1.085 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 2.462e-05/0.4271, allocations: 12 kB / 1.085 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/0.4273, allocations: 8 kB / 1.085 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003376/0.4276, allocations: 135.2 kB / 1.085 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.428, allocations: 0.6848 MB / 1.086 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 2.651e-05/0.428, allocations: 0 / 1.086 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.914e-05/0.4281, allocations: 15.44 kB / 1.086 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.4281, allocations: 0 / 1.086 GB, free: 8.688 MB / 0.8419 GB Notification: Performance of Templates: time 0.004029/0.4321, allocations: 0.8747 MB / 1.087 GB, free: 7.812 MB / 0.8419 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=400 -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