Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.Examples.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Binomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Binomial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_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.0007538/0.0007539, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008131/0.0008132, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.371/2.371, allocations: 390.4 MB / 0.6655 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004061/0.0004061, allocations: 8 kB / 0.8149 GB, free: 14.11 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8679/0.8684, allocations: 142.3 MB / 0.9539 GB, free: 8.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.00159/0.87, allocations: 1.24 MB / 0.9551 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003808/0.8704, allocations: 171 kB / 0.9552 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.116e-05/0.8704, allocations: 0.9062 kB / 0.9552 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.186e-05/0.8704, allocations: 0 / 0.9552 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.307e-05/0.8705, allocations: 5 kB / 0.9552 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.8707, allocations: 38.45 kB / 0.9553 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.042e-05/0.8708, allocations: 31.97 kB / 0.9553 GB, free: 7 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.087e-05/0.8709, allocations: 13.03 kB / 0.9553 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.684e-05/0.8709, allocations: 8.766 kB / 0.9553 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.927e-05/0.871, allocations: 24.97 kB / 0.9553 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.17e-05/0.871, allocations: 1.156 kB / 0.9553 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.59e-05/0.8711, allocations: 37.06 kB / 0.9554 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.12e-05/0.8711, allocations: 5.312 kB / 0.9554 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.88e-05/0.8712, allocations: 31.33 kB / 0.9554 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.047e-05/0.8713, allocations: 43.56 kB / 0.9555 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.8713, allocations: 5.5 kB / 0.9555 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8713, allocations: 0 / 0.9555 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.8713, allocations: 0 / 0.9555 GB, free: 6.879 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003676/0.8717, allocations: 355.3 kB / 0.9558 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.8717, allocations: 9.281 kB / 0.9558 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.134e-05/0.8717, allocations: 36.31 kB / 0.9558 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.211e-05/0.8718, allocations: 9.391 kB / 0.9559 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.861e-05/0.8718, allocations: 169.1 kB / 0.956 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.8719, allocations: 0.9688 kB / 0.956 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.8719, allocations: 2.875 kB / 0.956 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001754/0.8721, allocations: 71.23 kB / 0.9561 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.8721, allocations: 0 / 0.9561 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.8721, allocations: 9.203 kB / 0.9561 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.8721, allocations: 0 / 0.9561 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001837/0.8723, allocations: 62.45 kB / 0.9562 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003006/0.8726, allocations: 268.4 kB / 0.9564 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002795/0.8729, allocations: 66.47 kB / 0.9565 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.168e-05/0.873, allocations: 33.75 kB / 0.9565 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001639/0.8732, allocations: 174 kB / 0.9567 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.8732, allocations: 35.77 kB / 0.9567 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.8732, allocations: 3.938 kB / 0.9567 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003345/0.8735, allocations: 113.2 kB / 0.9568 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.8736, allocations: 51.41 kB / 0.9569 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.282e-05/0.8736, allocations: 120 kB / 0.957 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.937e-06/0.8737, allocations: 25.7 kB / 0.957 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.613e-05/0.8737, allocations: 89.27 kB / 0.9571 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.342e-05/0.8737, allocations: 14.3 kB / 0.9571 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.8737, allocations: 0 / 0.9571 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.609e-05/0.8738, allocations: 311.9 kB / 0.9574 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/0.8739, allocations: 23.55 kB / 0.9574 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.72e-05/0.874, allocations: 32.06 kB / 0.9575 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.083e-05/0.874, allocations: 22.7 kB / 0.9575 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.8741, allocations: 1.5 kB / 0.9575 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000194/0.8743, allocations: 85.25 kB / 0.9576 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.8743, allocations: 13.84 kB / 0.9576 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.8743, allocations: 0 / 0.9576 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.8743, allocations: 1.156 kB / 0.9576 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.674e-05/0.8744, allocations: 17.02 kB / 0.9576 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.8744, allocations: 5.094 kB / 0.9576 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.398e-05/0.8745, allocations: 9.938 kB / 0.9576 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.8745, allocations: 5.469 kB / 0.9576 GB, free: 4.754 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: 2 (rea2Int.y,bin.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.932e-05/0.8745, allocations: 108.2 kB / 0.9577 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.8746, allocations: 5.578 kB / 0.9577 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002399/0.8748, allocations: 101.5 kB / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.8748, allocations: 0.6562 kB / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.8748, allocations: 0 / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.8748, allocations: 1.156 kB / 0.9578 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001248/0.875, allocations: 164.7 kB / 0.958 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.875, allocations: 5.469 kB / 0.958 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.964e-05/0.875, allocations: 12.98 kB / 0.958 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.8751, allocations: 0.9688 kB / 0.958 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.605e-06/0.8751, allocations: 0 / 0.958 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.8751, allocations: 12.89 kB / 0.958 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.8751, allocations: 0 / 0.958 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002188/0.8753, allocations: 181.8 kB / 0.9582 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.965e-05/0.8753, allocations: 78.39 kB / 0.9582 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.8754, allocations: 5.5 kB / 0.9583 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.943e-05/0.8754, allocations: 9.266 kB / 0.9583 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.247e-05/0.8755, allocations: 10.81 kB / 0.9583 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.8755, allocations: 1.438 kB / 0.9583 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.948e-05/0.8755, allocations: 89.17 kB / 0.9584 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8755, allocations: 3.938 kB / 0.9584 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002343/0.8758, allocations: 17.62 kB / 0.9584 GB, free: 3.984 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: 2 (rea2Int.y,bin.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004513/0.8762, allocations: 0.7464 MB / 0.9591 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002024/0.8764, allocations: 54.7 kB / 0.9592 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.8765, allocations: 1.5 kB / 0.9592 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.959e-05/0.8765, allocations: 27.92 kB / 0.9592 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.8768, allocations: 21.59 kB / 0.9592 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007641/0.8776, allocations: 444.1 kB / 0.9596 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.8777, allocations: 0.6801 MB / 0.9603 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.058e-05/0.8777, allocations: 2.75 kB / 0.9603 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.8778, allocations: 18.19 kB / 0.9603 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8778, allocations: 3.938 kB / 0.9603 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.013/0.8908, allocations: 1.617 MB / 0.9619 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002135/0.8911, allocations: 179.5 kB / 0.9621 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/2.65, allocations: 0 / 0.9621 GB, free: 1.109 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Binomial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Binomial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Binomial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Binomial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.Binomial_res.mat does not exist to compare? outputFormat=mat