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.009396/0.009397, allocations: 100.5 kB / 15.73 MB, free: 5.977 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.001682/0.001682, allocations: 197.2 kB / 16.67 MB, free: 5.914 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.476/1.476, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.534/2.534, allocations: 390.2 MB / 0.6648 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 71.17 kB / 0.9504 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3134/0.3147, allocations: 140.4 MB / 1.087 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.002015/0.3168, allocations: 0.5126 MB / 1.088 GB, free: 1.637 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0005647/0.3173, allocations: 187.8 kB / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.203e-05/0.3174, allocations: 0 / 1.088 GB, free: 1.453 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.851e-05/0.3174, allocations: 4 kB / 1.088 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.203e-05/0.3175, allocations: 7.938 kB / 1.088 GB, free: 1.441 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004556/0.318, allocations: 59.84 kB / 1.088 GB, free: 1.383 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.038e-05/0.318, allocations: 8 kB / 1.088 GB, free: 1.375 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.508e-05/0.3181, allocations: 3.984 kB / 1.088 GB, free: 1.371 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.303e-05/0.3181, allocations: 7.938 kB / 1.088 GB, free: 1.363 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 3.083e-05/0.3181, allocations: 7.984 kB / 1.088 GB, free: 1.355 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.3182, allocations: 4 kB / 1.088 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.3184, allocations: 127.8 kB / 1.088 GB, free: 1.227 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.959e-05/0.3185, allocations: 11.91 kB / 1.088 GB, free: 1.215 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.3185, allocations: 15.94 kB / 1.088 GB, free: 1.199 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001876/0.3187, allocations: 63.89 kB / 1.088 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3187, allocations: 0 / 1.088 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.104e-06/0.3187, allocations: 0 / 1.088 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.295e-06/0.3187, allocations: 3.938 kB / 1.088 GB, free: 1.133 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.0004075/0.3191, allocations: 342.2 kB / 1.089 GB, free: 0.75 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.3192, allocations: 12.03 kB / 1.089 GB, free: 0.7383 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.047e-05/0.3192, allocations: 34.75 kB / 1.089 GB, free: 0.6953 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.3193, allocations: 4.922 kB / 1.089 GB, free: 0.6914 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.3194, allocations: 176.2 kB / 1.089 GB, free: 492 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.3194, allocations: 384 / 1.089 GB, free: 492 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.222e-05/0.3195, allocations: 384 / 1.089 GB, free: 492 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.3196, allocations: 38.25 kB / 1.089 GB, free: 448 kB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.3196, allocations: 3.938 kB / 1.089 GB, free: 444 kB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.245e-06/0.3196, allocations: 0 / 1.089 GB, free: 444 kB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.3196, allocations: 8 kB / 1.089 GB, free: 436 kB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.059e-05/0.3197, allocations: 11.98 kB / 1.089 GB, free: 424 kB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000182/0.3198, allocations: 161.7 kB / 1.089 GB, free: 212 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.251e-05/0.3199, allocations: 30.52 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.451e-05/0.3199, allocations: 12.91 kB / 1.089 GB, free: 156 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.289e-05/0.32, allocations: 4 kB / 1.089 GB, free: 152 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.32, allocations: 30.56 kB / 1.089 GB, free: 112 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.463e-06/0.32, allocations: 0 / 1.089 GB, free: 112 kB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.000621/0.3206, allocations: 307 kB / 1.09 GB, free: 15.76 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.3207, allocations: 51.41 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.408e-05/0.3208, allocations: 109.8 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.3208, allocations: 25.7 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.23e-05/0.3209, allocations: 84.14 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.848e-05/0.3209, allocations: 12.03 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.3209, allocations: 21.7 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.3211, allocations: 314.8 kB / 1.09 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.826e-05/0.3211, allocations: 19.98 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.408e-05/0.3211, allocations: 25.66 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.998e-05/0.3212, allocations: 37.7 kB / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.21e-07/0.3212, allocations: 0 / 1.09 GB, free: 15.01 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001073/0.3213, allocations: 69.62 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.3213, allocations: 16 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.3214, allocations: 3.938 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.3214, allocations: 0 / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.001e-05/0.3214, allocations: 11.98 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.3215, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.533e-05/0.3215, allocations: 0 / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-06/0.3215, allocations: 0 / 1.09 GB, free: 14.91 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 7.372e-05/0.3216, allocations: 109.8 kB / 1.09 GB, free: 14.79 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.633e-05/0.3216, allocations: 11.84 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001531/0.3218, allocations: 77.52 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3218, allocations: 3.938 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3218, allocations: 0 / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3218, allocations: 0 / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.3219, allocations: 165.7 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.3219, allocations: 4 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.442e-05/0.322, allocations: 4 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.529e-06/0.322, allocations: 3.938 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.322, allocations: 0 / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.322, allocations: 0 / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.322, allocations: 4.172 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001542/0.3222, allocations: 113 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.224e-05/0.3222, allocations: 81.05 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.504e-05/0.3223, allocations: 4 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.97e-05/0.3223, allocations: 4.031 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.175e-05/0.3223, allocations: 0 / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.3223, allocations: 3.984 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.861e-05/0.3224, allocations: 91.27 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3224, allocations: 4.062 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002152/0.3226, allocations: 16 kB / 1.091 GB, free: 14.11 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.0004986/0.3231, allocations: 0.6631 MB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001148/0.3232, allocations: 35.92 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.3233, allocations: 4.188 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.648e-05/0.3233, allocations: 15.98 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001746/0.3235, allocations: 1.875 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.3248, allocations: 1.253 MB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.3252, allocations: 0.6846 MB / 1.094 GB, free: 11.31 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.294e-05/0.3252, allocations: 8.078 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.868e-05/0.3252, allocations: 15.44 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.3253, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.3479, allocations: 1.869 MB / 1.095 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.775/8.123, allocations: 19.3 kB / 1.095 GB, free: 9.539 MB / 0.8575 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 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.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) "Warning: Resultfile and Reference have different end time points! Reffile[502]=4.000000 File[237]=1.888000 " Variables in the reference:time,x,y,der(x),der(y) Variables in the result:c[1],c[2],c[3],c[4],c[5],der(x),der(y),time,x,xMax,xMin,y