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.0009538/0.0009537, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009881/0.0009881, allocations: 177.3 kB / 15.95 MB, free: 216 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.415/1.415, allocations: 223.2 MB / 239.9 MB, free: 5.465 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.46/2.46, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003629, allocations: 19.94 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8791/0.8795, allocations: 142.3 MB / 0.9536 GB, free: 8.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Binomial): time 0.0021/0.8817, allocations: 1.241 MB / 0.9548 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004576/0.8821, allocations: 168.6 kB / 0.955 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.518e-05/0.8822, allocations: 4 kB / 0.955 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.723e-05/0.8822, allocations: 5.062 kB / 0.955 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.479e-05/0.8823, allocations: 0 / 0.955 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002755/0.8826, allocations: 34.92 kB / 0.955 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.586e-05/0.8826, allocations: 21.94 kB / 0.955 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.8827, allocations: 17.83 kB / 0.955 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.785e-05/0.8828, allocations: 8.844 kB / 0.955 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.514e-05/0.8828, allocations: 16.45 kB / 0.9551 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.8828, allocations: 2 kB / 0.9551 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.883, allocations: 50.09 kB / 0.9551 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.103e-05/0.883, allocations: 2.125 kB / 0.9551 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.404e-05/0.883, allocations: 34.77 kB / 0.9551 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001079/0.8831, allocations: 36.11 kB / 0.9552 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.8831, allocations: 0 / 0.9552 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.204e-06/0.8831, allocations: 1.188 kB / 0.9552 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.719e-06/0.8832, allocations: 0 / 0.9552 GB, free: 6.965 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.0004164/0.8836, allocations: 359.2 kB / 0.9555 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.8836, allocations: 8.656 kB / 0.9555 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.316e-05/0.8837, allocations: 32.12 kB / 0.9556 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.8837, allocations: 14.58 kB / 0.9556 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.904e-05/0.8838, allocations: 168.6 kB / 0.9557 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.8838, allocations: 1.031 kB / 0.9557 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.243e-05/0.8838, allocations: 1.938 kB / 0.9557 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002279/0.8841, allocations: 73.72 kB / 0.9558 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.8841, allocations: 3.938 kB / 0.9558 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.8841, allocations: 0 / 0.9558 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.8841, allocations: 1.062 kB / 0.9558 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.8843, allocations: 57.59 kB / 0.9559 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004255/0.8848, allocations: 279.6 kB / 0.9561 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.8851, allocations: 67.66 kB / 0.9562 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002765/0.8854, allocations: 165.1 kB / 0.9564 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.8855, allocations: 39.67 kB / 0.9564 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.462e-06/0.8855, allocations: 0 / 0.9564 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004596/0.8859, allocations: 117.4 kB / 0.9565 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.886, allocations: 52.53 kB / 0.9566 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.825e-05/0.8861, allocations: 111.5 kB / 0.9567 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.8861, allocations: 29.7 kB / 0.9567 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.35e-05/0.8862, allocations: 85.52 kB / 0.9568 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.856e-05/0.8862, allocations: 9.266 kB / 0.9568 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-06/0.8862, allocations: 4 kB / 0.9568 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.8863, allocations: 312.1 kB / 0.9571 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.8864, allocations: 28.08 kB / 0.9571 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.624e-05/0.8865, allocations: 27.19 kB / 0.9571 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.722e-05/0.8866, allocations: 19.55 kB / 0.9572 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.8866, allocations: 4 kB / 0.9572 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002249/0.8869, allocations: 90.8 kB / 0.9572 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.8869, allocations: 6.312 kB / 0.9573 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.8869, allocations: 4.922 kB / 0.9573 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.8869, allocations: 0 / 0.9573 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.486e-05/0.887, allocations: 18.2 kB / 0.9573 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.887, allocations: 0 / 0.9573 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.92e-05/0.8871, allocations: 15 kB / 0.9573 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.8871, allocations: 5.25 kB / 0.9573 GB, free: 4.863 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 7.235e-05/0.8872, allocations: 120.3 kB / 0.9574 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.285e-05/0.8872, allocations: 2.812 kB / 0.9574 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000269/0.8875, allocations: 97.17 kB / 0.9575 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.8875, allocations: 3.953 kB / 0.9575 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.8875, allocations: 0.9375 kB / 0.9575 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.8875, allocations: 0 / 0.9575 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.8877, allocations: 167.6 kB / 0.9577 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8877, allocations: 0 / 0.9577 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.01e-05/0.8878, allocations: 16.08 kB / 0.9577 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.8878, allocations: 3.938 kB / 0.9577 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.8878, allocations: 0 / 0.9577 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.8878, allocations: 0 / 0.9577 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.8878, allocations: 3.953 kB / 0.9577 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002414/0.888, allocations: 192.2 kB / 0.9579 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.699e-05/0.8881, allocations: 78.72 kB / 0.9579 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.8881, allocations: 0 / 0.9579 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.704e-05/0.8882, allocations: 10.77 kB / 0.958 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.323e-05/0.8882, allocations: 6.016 kB / 0.958 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.8883, allocations: 6.078 kB / 0.958 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.643e-05/0.8883, allocations: 89.28 kB / 0.9581 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8883, allocations: 0 / 0.9581 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002767/0.8886, allocations: 21.78 kB / 0.9581 GB, free: 4.086 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.0005198/0.8891, allocations: 0.7344 MB / 0.9588 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002488/0.8894, allocations: 54.36 kB / 0.9588 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.8894, allocations: 5.094 kB / 0.9589 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.8895, allocations: 27.08 kB / 0.9589 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.8897, allocations: 6.141 kB / 0.9589 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008478/0.8906, allocations: 463.8 kB / 0.9593 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.8907, allocations: 0.6847 MB / 0.96 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.329e-05/0.8908, allocations: 3.281 kB / 0.96 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.753e-05/0.8908, allocations: 18.02 kB / 0.96 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8908, allocations: 0 / 0.96 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01278/0.9036, allocations: 1.594 MB / 0.9616 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002572/0.9039, allocations: 171.5 kB / 0.9617 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/2.608, allocations: 4.906 kB / 0.9617 GB, free: 1.223 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