Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.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.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Binomial",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.007581/0.007581, allocations: 100.6 kB / 15.73 MB, free: 6.453 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.001735/0.001735, allocations: 184.8 kB / 16.67 MB, free: 6.367 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.348 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.43/2.43, allocations: 390.3 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 64.41 kB / 0.9504 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.288, allocations: 140.4 MB / 1.088 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001951/0.29, allocations: 0.5766 MB / 1.088 GB, free: 1.367 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0004061/0.2905, allocations: 115.9 kB / 1.088 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.067e-05/0.2905, allocations: 0 / 1.088 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.176e-05/0.2906, allocations: 0 / 1.088 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 6.302e-06/0.2906, allocations: 0 / 1.088 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003557/0.2909, allocations: 39.89 kB / 1.088 GB, free: 1.215 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001198/0.2911, allocations: 63.94 kB / 1.088 GB, free: 1.152 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.2911, allocations: 8 kB / 1.088 GB, free: 1.145 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.214e-05/0.2912, allocations: 27.97 kB / 1.088 GB, free: 1.117 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.519e-05/0.2912, allocations: 19.97 kB / 1.088 GB, free: 1.098 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.644e-05/0.2912, allocations: 4 kB / 1.088 GB, free: 1.094 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.2914, allocations: 51.94 kB / 1.088 GB, free: 1.043 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 4.344e-05/0.2914, allocations: 15.98 kB / 1.088 GB, free: 1.027 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.2915, allocations: 23.84 kB / 1.088 GB, free: 1.004 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.2916, allocations: 75.83 kB / 1.089 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2916, allocations: 0 / 1.089 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2916, allocations: 0 / 1.089 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.956e-06/0.2917, allocations: 0 / 1.089 GB, free: 0.9297 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005452/0.2922, allocations: 375.5 kB / 1.089 GB, free: 0.5117 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.2923, allocations: 8.031 kB / 1.089 GB, free: 0.5039 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.382e-05/0.2923, allocations: 38.75 kB / 1.089 GB, free: 468 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.839e-05/0.2924, allocations: 12.84 kB / 1.089 GB, free: 456 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.673e-05/0.2925, allocations: 167.1 kB / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002903/0.2928, allocations: 281.6 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.2928, allocations: 4.375 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002653/0.2931, allocations: 93.81 kB / 1.089 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.2931, allocations: 3.984 kB / 1.089 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.2931, allocations: 4 kB / 1.089 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.2931, allocations: 4 kB / 1.089 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003562/0.2935, allocations: 131.8 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001869/0.2937, allocations: 170.2 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.294, allocations: 98.45 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.2942, allocations: 40.84 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.2942, allocations: 11.97 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.2942, allocations: 38.5 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.2942, allocations: 0 / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005578/0.2948, allocations: 149.8 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.2949, allocations: 51.41 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.999e-05/0.2949, allocations: 93.86 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.2949, allocations: 25.7 kB / 1.09 GB, free: 14.9 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.647e-05/0.295, allocations: 84.14 kB / 1.09 GB, free: 14.81 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.761e-05/0.295, allocations: 31.75 kB / 1.09 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.424e-05/0.2951, allocations: 37.69 kB / 1.09 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.2952, allocations: 310.8 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.2953, allocations: 35.97 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.2955, allocations: 32.41 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00028/0.2958, allocations: 80.91 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2958, allocations: 0 / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003557/0.2961, allocations: 117.5 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.2962, allocations: 11.94 kB / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.2962, allocations: 0 / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.2962, allocations: 0 / 1.091 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.2964, allocations: 23.98 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.2964, allocations: 0 / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.818e-05/0.2965, allocations: 15.92 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.2965, allocations: 4 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001672/0.2967, allocations: 117.8 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.774e-05/0.2967, allocations: 3.938 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.847e-05/0.2967, allocations: 15.97 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2968, allocations: 4 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.2968, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2968, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001499/0.2969, allocations: 181.5 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.2969, allocations: 3.938 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.2971, allocations: 27.91 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.409e-06/0.2971, allocations: 3.938 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.2971, allocations: 4 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2971, allocations: 0 / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2971, allocations: 4 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003659/0.2975, allocations: 137.1 kB / 1.091 GB, free: 13.53 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.2975, allocations: 92.89 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.2976, allocations: 4 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.114e-05/0.2976, allocations: 7.984 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.507e-05/0.2977, allocations: 11.92 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.2977, allocations: 4 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.922e-05/0.2978, allocations: 83.22 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.2978, allocations: 0 / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002342/0.298, allocations: 20 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0007453/0.2988, allocations: 0.6974 MB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003569/0.2991, allocations: 91.81 kB / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.2991, allocations: 0 / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.2993, allocations: 56.44 kB / 1.092 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001441/0.2995, allocations: 4 kB / 1.092 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005544/0.3, allocations: 198.7 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.3003, allocations: 0.6846 MB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001933/0.3005, allocations: 39.95 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.443e-05/0.3006, allocations: 19.42 kB / 1.093 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.3006, allocations: 0 / 1.093 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.3181, allocations: 2.04 MB / 1.095 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.313/7.632, allocations: 9.031 kB / 1.095 GB, free: 9.449 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Binomial_fmu --startTime=0 --stopTime=15.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Binomial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Binomial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,bin[1],bin[2],bin[3],bin[4],bin[5],bin[6],bin[7],bin[8],bin[9],bin[10] Variables in the result:bin[10],bin[1],bin[2],bin[3],bin[4],bin[5],bin[6],bin[7],bin[8],bin[9],n,time