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: translateModel(Buildings.Utilities.Math.Functions.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.1.|bin.2.|bin.3.|bin.4.|bin.5.|bin.6.|bin.7.|bin.8.|bin.9.|bin.10.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial") translateModel(Buildings.Utilities.Math.Functions.Examples.Binomial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bin.1.|bin.2.|bin.3.|bin.4.|bin.5.|bin.6.|bin.7.|bin.8.|bin.9.|bin.10.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 109.8 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.001793/0.001794, allocations: 185.5 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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.17 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.327/2.327, allocations: 390.3 MB / 0.6655 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 71.88 kB / 0.9516 GB, free: 7.664 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9427/0.9443, allocations: 140.4 MB / 1.089 GB, free: 5.566 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001658/0.946, allocations: 0.5909 MB / 1.089 GB, free: 5.199 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003725/0.9464, allocations: 104.5 kB / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.127e-05/0.9464, allocations: 0 / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.132e-05/0.9464, allocations: 1.125 kB / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.363e-06/0.9464, allocations: 0 / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.9468, allocations: 46.48 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.947, allocations: 65 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.853e-05/0.947, allocations: 1.625 kB / 1.089 GB, free: 5.102 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.45e-05/0.9471, allocations: 26.66 kB / 1.089 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.35e-05/0.9471, allocations: 20.47 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.9472, allocations: 2.469 kB / 1.089 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.9473, allocations: 49.61 kB / 1.09 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.676e-05/0.9474, allocations: 22.22 kB / 1.09 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.235e-05/0.9474, allocations: 17.75 kB / 1.09 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001601/0.9476, allocations: 77.62 kB / 1.09 GB, free: 5.031 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.9476, allocations: 0 / 1.09 GB, free: 5.031 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9476, allocations: 4 kB / 1.09 GB, free: 5.027 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.9476, allocations: 1 kB / 1.09 GB, free: 5.027 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004445/0.9481, allocations: 370.3 kB / 1.09 GB, free: 4.656 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.9481, allocations: 8.844 kB / 1.09 GB, free: 4.656 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.685e-05/0.9482, allocations: 10.7 kB / 1.09 GB, free: 4.652 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.457e-05/0.9482, allocations: 166.4 kB / 1.09 GB, free: 4.457 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002021/0.9484, allocations: 280.7 kB / 1.09 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.9485, allocations: 7.5 kB / 1.09 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.9487, allocations: 80.81 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.9487, allocations: 3.938 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.9487, allocations: 4.516 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.9487, allocations: 1.938 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003935/0.9491, allocations: 132.9 kB / 1.091 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001493/0.9493, allocations: 178.9 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.9496, allocations: 102.2 kB / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.9498, allocations: 42.09 kB / 1.091 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.9498, allocations: 9.109 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.599e-05/0.9498, allocations: 37.91 kB / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.042e-06/0.9498, allocations: 0 / 1.091 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0005341/0.9504, allocations: 155 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.9504, allocations: 53.59 kB / 1.091 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.141e-05/0.9504, allocations: 89.86 kB / 1.091 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.958e-06/0.9504, allocations: 25.7 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.026e-05/0.9504, allocations: 86 kB / 1.091 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.353e-05/0.9505, allocations: 36.3 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.9505, allocations: 31.03 kB / 1.091 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.193e-05/0.9506, allocations: 313.3 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.9507, allocations: 34.39 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.9509, allocations: 33.53 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.9511, allocations: 75.23 kB / 1.092 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9512, allocations: 0 / 1.092 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003286/0.9515, allocations: 116.3 kB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.9515, allocations: 9.953 kB / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.9515, allocations: 0 / 1.092 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.9515, allocations: 5.109 kB / 1.092 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.9517, allocations: 27.52 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.9517, allocations: 1.125 kB / 1.092 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.011e-05/0.9518, allocations: 8.484 kB / 1.092 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.9518, allocations: 8.609 kB / 1.092 GB, free: 2.934 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 5.939e-05/0.9519, allocations: 123.9 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.579e-05/0.9519, allocations: 11.39 kB / 1.092 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.943e-05/0.9519, allocations: 7.969 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.9519, allocations: 2.297 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.9519, allocations: 0.7812 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.9519, allocations: 0.7969 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.774e-05/0.952, allocations: 181.1 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.9521, allocations: 0 / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001208/0.9522, allocations: 23.66 kB / 1.092 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.9522, allocations: 4.812 kB / 1.092 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.9522, allocations: 11.47 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.9522, allocations: 0 / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.9522, allocations: 0.7188 kB / 1.092 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003516/0.9526, allocations: 145.4 kB / 1.093 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.767e-05/0.9526, allocations: 83.7 kB / 1.093 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.625e-05/0.9526, allocations: 4.562 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.88e-05/0.9527, allocations: 5.062 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.101e-05/0.9527, allocations: 17.88 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.9528, allocations: 9 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.248e-05/0.9528, allocations: 76.5 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9528, allocations: 0 / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002207/0.953, allocations: 21 kB / 1.093 GB, free: 2.293 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.0001838/0.9532, allocations: 120.4 kB / 1.093 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003555/0.9536, allocations: 97.06 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.9536, allocations: 0.8125 kB / 1.093 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.9537, allocations: 45.7 kB / 1.093 GB, free: 2.164 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.9539, allocations: 7.391 kB / 1.093 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003667/0.9543, allocations: 183.4 kB / 1.093 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001111/0.9544, allocations: 0.6843 MB / 1.094 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.306e-05/0.9544, allocations: 22.59 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of SimCode: time 2e-07/0.9544, allocations: 0 / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of Templates: time 0.003542/0.958, allocations: 1.323 MB / 1.095 GB, free: 1.191 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Binomial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches