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.001192/0.001192, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.252/1.252, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.145/2.145, allocations: 390.3 MB / 0.6647 GB, free: 284 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.91 kB / 0.8127 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5306/0.5319, allocations: 140.4 MB / 0.9497 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Binomial): time 0.001496/0.5334, allocations: 0.5796 MB / 0.9503 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002989/0.5337, allocations: 103.8 kB / 0.9504 GB, free: 8.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.79e-05/0.5338, allocations: 4 kB / 0.9504 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.155e-05/0.5338, allocations: 0 / 0.9504 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.499e-06/0.5338, allocations: 0 / 0.9504 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002854/0.5341, allocations: 42.27 kB / 0.9504 GB, free: 8.551 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.464e-05/0.5342, allocations: 59.56 kB / 0.9505 GB, free: 8.523 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.524e-05/0.5342, allocations: 5.234 kB / 0.9505 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.694e-05/0.5343, allocations: 21.36 kB / 0.9505 GB, free: 8.512 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.594e-05/0.5343, allocations: 32.92 kB / 0.9506 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.5343, allocations: 2.656 kB / 0.9506 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.728e-05/0.5344, allocations: 38.59 kB / 0.9506 GB, free: 8.473 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.1e-05/0.5345, allocations: 29.45 kB / 0.9506 GB, free: 8.453 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.604e-05/0.5345, allocations: 25.36 kB / 0.9506 GB, free: 8.434 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.5346, allocations: 69.92 kB / 0.9507 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.5346, allocations: 0 / 0.9507 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.022e-06/0.5346, allocations: 1.375 kB / 0.9507 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.5346, allocations: 0 / 0.9507 GB, free: 8.391 MB / 0.7169 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.0003627/0.535, allocations: 379 kB / 0.9511 GB, free: 8 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.056e-05/0.5351, allocations: 9.625 kB / 0.9511 GB, free: 8 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.495e-05/0.5351, allocations: 37.5 kB / 0.9511 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.175e-05/0.5351, allocations: 6.438 kB / 0.9511 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.489e-05/0.5352, allocations: 179.9 kB / 0.9513 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001668/0.5353, allocations: 275.3 kB / 0.9516 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.5354, allocations: 7.125 kB / 0.9516 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000205/0.5356, allocations: 82.38 kB / 0.9516 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.5356, allocations: 0 / 0.9516 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.5356, allocations: 4 kB / 0.9517 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.5356, allocations: 1.406 kB / 0.9517 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002967/0.5359, allocations: 128.8 kB / 0.9518 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001187/0.536, allocations: 190.5 kB / 0.952 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002629/0.5363, allocations: 99.53 kB / 0.9521 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.5364, allocations: 42.33 kB / 0.9521 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.5365, allocations: 1.25 kB / 0.9521 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.215e-05/0.5365, allocations: 35.81 kB / 0.9521 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.052e-06/0.5365, allocations: 0 / 0.9521 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.000467/0.5369, allocations: 148.3 kB / 0.9523 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.827e-05/0.537, allocations: 56.84 kB / 0.9523 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.533e-05/0.537, allocations: 90.8 kB / 0.9524 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.879e-06/0.537, allocations: 29.64 kB / 0.9524 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.175e-06/0.537, allocations: 81.02 kB / 0.9525 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.08e-05/0.5371, allocations: 36.27 kB / 0.9526 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/0.5371, allocations: 30.02 kB / 0.9526 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.715e-05/0.5372, allocations: 312.2 kB / 0.9529 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.5373, allocations: 34.34 kB / 0.9529 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.5374, allocations: 39.42 kB / 0.9529 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.5377, allocations: 74 kB / 0.953 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.5377, allocations: 1.344 kB / 0.953 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002926/0.538, allocations: 115.9 kB / 0.9531 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.538, allocations: 8.906 kB / 0.9531 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.538, allocations: 0 / 0.9531 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.538, allocations: 5.156 kB / 0.9531 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.5382, allocations: 20.83 kB / 0.9532 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.5382, allocations: 1.156 kB / 0.9532 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.488e-05/0.5382, allocations: 15.48 kB / 0.9532 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.5382, allocations: 6.75 kB / 0.9532 GB, free: 6.055 MB / 0.7169 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.86e-05/0.5383, allocations: 115.1 kB / 0.9533 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.5383, allocations: 9.344 kB / 0.9533 GB, free: 5.93 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.241e-05/0.5384, allocations: 17.36 kB / 0.9533 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.5384, allocations: 1.25 kB / 0.9533 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.5384, allocations: 0 / 0.9533 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.5384, allocations: 4 kB / 0.9533 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.49e-05/0.5385, allocations: 183.6 kB / 0.9535 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.5385, allocations: 1.688 kB / 0.9535 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.5386, allocations: 24.94 kB / 0.9535 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.5386, allocations: 5.406 kB / 0.9535 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.5386, allocations: 5.438 kB / 0.9535 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.5386, allocations: 0 / 0.9535 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.5386, allocations: 0 / 0.9535 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003021/0.5389, allocations: 150.2 kB / 0.9537 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.639e-05/0.539, allocations: 87.45 kB / 0.9538 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.539, allocations: 4 kB / 0.9538 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.37e-05/0.539, allocations: 7.547 kB / 0.9538 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/0.5391, allocations: 13.52 kB / 0.9538 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.875e-06/0.5391, allocations: 2.812 kB / 0.9538 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.03e-05/0.5391, allocations: 75.28 kB / 0.9539 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.5391, allocations: 0 / 0.9539 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002092/0.5394, allocations: 25.8 kB / 0.9539 GB, free: 5.363 MB / 0.7169 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.0005085/0.5399, allocations: 0.7006 MB / 0.9546 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003241/0.5402, allocations: 96.3 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.5402, allocations: 0 / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.5404, allocations: 57.67 kB / 0.9547 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.5405, allocations: 5.188 kB / 0.9547 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004281/0.5409, allocations: 194.4 kB / 0.9549 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.15e-05/0.541, allocations: 0.6872 MB / 0.9556 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001298/0.5412, allocations: 43.33 kB / 0.9556 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.5412, allocations: 20.86 kB / 0.9556 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of SimCode: time 3.3e-07/0.5412, allocations: 0 / 0.9556 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.5577, allocations: 1.993 MB / 0.9576 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.586/7.144, allocations: 6.578 kB / 0.9576 GB, free: 2.637 MB / 0.7169 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) Reference file matches