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.001361/0.001367, allocations: 106.6 kB / 16.41 MB, free: 6.492 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.001456/0.001456, allocations: 189.6 kB / 17.34 MB, free: 5.762 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.15 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.394/2.394, allocations: 390.2 MB / 0.6655 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 67.89 kB / 0.9515 GB, free: 7.699 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9302/0.9317, allocations: 140.4 MB / 1.089 GB, free: 5.531 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001651/0.9334, allocations: 0.5247 MB / 1.089 GB, free: 5.211 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0004991/0.9339, allocations: 194.8 kB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.181e-05/0.934, allocations: 0 / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.156e-05/0.934, allocations: 4.844 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.587e-05/0.934, allocations: 0.8438 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004086/0.9345, allocations: 57.28 kB / 1.089 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.078e-05/0.9345, allocations: 23.77 kB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.553e-05/0.9346, allocations: 2.984 kB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.996e-05/0.9346, allocations: 2.703 kB / 1.089 GB, free: 5.055 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.838e-05/0.9346, allocations: 7.281 kB / 1.089 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.337e-05/0.9347, allocations: 5.188 kB / 1.089 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002524/0.9349, allocations: 133.1 kB / 1.09 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.348e-05/0.935, allocations: 8.047 kB / 1.09 GB, free: 5.004 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.467e-05/0.935, allocations: 10.75 kB / 1.09 GB, free: 4.996 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.9352, allocations: 76.28 kB / 1.09 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.9352, allocations: 0 / 1.09 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9352, allocations: 4.719 kB / 1.09 GB, free: 4.965 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.538e-06/0.9352, allocations: 0 / 1.09 GB, free: 4.965 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.0003058/0.9355, allocations: 340.6 kB / 1.09 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.9356, allocations: 8.844 kB / 1.09 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.558e-05/0.9356, allocations: 3.719 kB / 1.09 GB, free: 4.602 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.985e-05/0.9357, allocations: 167.3 kB / 1.09 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.9357, allocations: 1.219 kB / 1.09 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.9357, allocations: 1.312 kB / 1.09 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.9358, allocations: 40.88 kB / 1.09 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.9359, allocations: 4.797 kB / 1.09 GB, free: 4.363 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.9359, allocations: 3.938 kB / 1.09 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.9359, allocations: 5.172 kB / 1.09 GB, free: 4.355 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.033e-05/0.9359, allocations: 13.34 kB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001292/0.9361, allocations: 159.2 kB / 1.09 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.699e-05/0.9361, allocations: 23.78 kB / 1.09 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.128e-05/0.9361, allocations: 15.31 kB / 1.09 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.834e-05/0.9362, allocations: 8.719 kB / 1.09 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.9362, allocations: 32 kB / 1.09 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.9362, allocations: 0 / 1.09 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005127/0.9367, allocations: 300.2 kB / 1.091 GB, free: 3.816 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.459e-05/0.9368, allocations: 52.44 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.384e-05/0.9368, allocations: 108.7 kB / 1.091 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.247e-06/0.9369, allocations: 31.05 kB / 1.091 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.606e-05/0.9369, allocations: 82.62 kB / 1.091 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.274e-05/0.9369, allocations: 19.23 kB / 1.091 GB, free: 3.52 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.882e-05/0.9369, allocations: 14.31 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.476e-05/0.937, allocations: 318.2 kB / 1.091 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.519e-05/0.937, allocations: 11.41 kB / 1.091 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.282e-05/0.9371, allocations: 27.81 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.266e-05/0.9371, allocations: 45.2 kB / 1.091 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.9371, allocations: 0.8125 kB / 1.091 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001002/0.9373, allocations: 70.09 kB / 1.091 GB, free: 3.098 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.9373, allocations: 10.33 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.9373, allocations: 0 / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.9373, allocations: 1.156 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.702e-05/0.9374, allocations: 11.66 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.9374, allocations: 1.547 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.553e-05/0.9374, allocations: 4 kB / 1.091 GB, free: 3.086 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.9374, allocations: 2.75 kB / 1.091 GB, free: 3.086 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.639e-05/0.9375, allocations: 114 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.301e-05/0.9375, allocations: 6.797 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001317/0.9376, allocations: 73.77 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.9376, allocations: 1.484 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.9377, allocations: 0 / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.9377, allocations: 1.062 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.212e-05/0.9377, allocations: 168 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.9378, allocations: 0 / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.018e-05/0.9378, allocations: 6.594 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.9378, allocations: 3.938 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.9378, allocations: 1.328 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.9378, allocations: 0.9688 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.9378, allocations: 0.5156 kB / 1.092 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001439/0.938, allocations: 105.3 kB / 1.092 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.972e-05/0.938, allocations: 86.75 kB / 1.092 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.366e-05/0.938, allocations: 5.719 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.952e-05/0.9381, allocations: 0.5625 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.9381, allocations: 2.844 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.9381, allocations: 1.625 kB / 1.092 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.547e-05/0.9382, allocations: 88.62 kB / 1.092 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of sort global known variables: time 9e-08/0.9382, allocations: 1.062 kB / 1.092 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002184/0.9384, allocations: 16.55 kB / 1.092 GB, free: 2.453 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.0001714/0.9386, allocations: 124.4 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001071/0.9387, allocations: 39.3 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.9387, allocations: 4.938 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.523e-05/0.9387, allocations: 13.52 kB / 1.092 GB, free: 2.34 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001511/0.9389, allocations: 6.531 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002562/0.9391, allocations: 152.4 kB / 1.092 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.9393, allocations: 0.6816 MB / 1.093 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.74e-05/0.9393, allocations: 10.73 kB / 1.093 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of SimCode: time 1.91e-07/0.9393, allocations: 4 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of Templates: time 0.002849/0.9421, allocations: 0.8521 MB / 1.094 GB, free: 1.426 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/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