Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Factorial.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.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",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.0012/0.0012, allocations: 99.62 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.001524/0.001524, 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.352/1.352, allocations: 223.2 MB / 239.9 MB, free: 5.457 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.401/2.401, allocations: 390.3 MB / 0.6653 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004255/0.0004257, allocations: 8 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8566/0.8571, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001609/0.8588, allocations: 1.22 MB / 0.9548 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003331/0.8591, allocations: 120.2 kB / 0.9549 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.38e-05/0.8592, allocations: 1.219 kB / 0.9549 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.724e-05/0.8592, allocations: 0 / 0.9549 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.631e-05/0.8593, allocations: 5.062 kB / 0.9549 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.8595, allocations: 20.7 kB / 0.9549 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.505e-05/0.8596, allocations: 17.94 kB / 0.9549 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.86e-05/0.8597, allocations: 3.594 kB / 0.9549 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.416e-05/0.8597, allocations: 12.89 kB / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.234e-05/0.8598, allocations: 12.02 kB / 0.955 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.8598, allocations: 1.125 kB / 0.955 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.269e-05/0.8599, allocations: 12.73 kB / 0.955 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.779e-06/0.8599, allocations: 1.188 kB / 0.955 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.467e-05/0.8599, allocations: 35.02 kB / 0.955 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.821e-05/0.86, allocations: 18.14 kB / 0.955 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.86, allocations: 7.938 kB / 0.955 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.337e-06/0.86, allocations: 1 kB / 0.955 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.405e-06/0.86, allocations: 0 / 0.955 GB, free: 6.898 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004204/0.8604, allocations: 343.3 kB / 0.9554 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.8605, allocations: 9.438 kB / 0.9554 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.444e-05/0.8605, allocations: 32.09 kB / 0.9554 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.807e-05/0.8606, allocations: 5.359 kB / 0.9554 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.57e-05/0.8607, allocations: 168.5 kB / 0.9556 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.8607, allocations: 5.375 kB / 0.9556 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.418e-05/0.8607, allocations: 1.625 kB / 0.9556 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.8609, allocations: 64.28 kB / 0.9556 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.8609, allocations: 0.9375 kB / 0.9556 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.861, allocations: 0 / 0.9556 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.861, allocations: 4.938 kB / 0.9556 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.8612, allocations: 59.69 kB / 0.9557 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003242/0.8615, allocations: 266.5 kB / 0.956 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003158/0.8618, allocations: 66.42 kB / 0.956 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.547e-05/0.8619, allocations: 83.88 kB / 0.9561 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.221e-05/0.8619, allocations: 31.91 kB / 0.9561 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.513e-06/0.862, allocations: 0 / 0.9561 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003677/0.8623, allocations: 112.9 kB / 0.9562 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.208e-05/0.8624, allocations: 55.39 kB / 0.9563 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.252e-05/0.8624, allocations: 103.9 kB / 0.9564 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.435e-06/0.8624, allocations: 29.7 kB / 0.9564 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.546e-05/0.8625, allocations: 81.48 kB / 0.9565 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.8625, allocations: 9.234 kB / 0.9565 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.62e-06/0.8625, allocations: 4 kB / 0.9565 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.151e-05/0.8625, allocations: 315.9 kB / 0.9568 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.9e-05/0.8626, allocations: 23.52 kB / 0.9568 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.928e-05/0.8627, allocations: 26.75 kB / 0.9569 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.664e-05/0.8628, allocations: 24.05 kB / 0.9569 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.8628, allocations: 0 / 0.9569 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002011/0.863, allocations: 93.59 kB / 0.957 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.863, allocations: 6.75 kB / 0.957 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.8631, allocations: 3.984 kB / 0.957 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.8631, allocations: 4.734 kB / 0.957 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.005e-05/0.8632, allocations: 10.12 kB / 0.957 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.8632, allocations: 3.984 kB / 0.957 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.738e-05/0.8632, allocations: 11 kB / 0.957 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.8632, allocations: 0 / 0.957 GB, free: 4.934 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 (fac.y,rea2Int.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.695e-05/0.8633, allocations: 120.9 kB / 0.9571 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.314e-05/0.8633, allocations: 1.156 kB / 0.9571 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002466/0.8636, allocations: 99.72 kB / 0.9572 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.8636, allocations: 0.875 kB / 0.9572 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.8636, allocations: 3.953 kB / 0.9572 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.8636, allocations: 1.219 kB / 0.9572 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001174/0.8637, allocations: 159.5 kB / 0.9574 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.8637, allocations: 5.078 kB / 0.9574 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.064e-05/0.8638, allocations: 9.312 kB / 0.9574 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.8638, allocations: 1.094 kB / 0.9574 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-06/0.8638, allocations: 3.984 kB / 0.9574 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.8638, allocations: 5.25 kB / 0.9574 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.8639, allocations: 0 / 0.9574 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/0.8641, allocations: 180.4 kB / 0.9576 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.819e-05/0.8641, allocations: 89.95 kB / 0.9577 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.8641, allocations: 9.016 kB / 0.9577 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.266e-05/0.8642, allocations: 5.844 kB / 0.9577 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.697e-05/0.8643, allocations: 11.05 kB / 0.9577 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.579e-06/0.8643, allocations: 1.062 kB / 0.9577 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.355e-05/0.8643, allocations: 82.56 kB / 0.9578 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8643, allocations: 0 / 0.9578 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002215/0.8645, allocations: 6.969 kB / 0.9578 GB, free: 4.168 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 (fac.y,rea2Int.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.0004381/0.865, allocations: 0.7227 MB / 0.9585 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002126/0.8652, allocations: 58.52 kB / 0.9585 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.8652, allocations: 0 / 0.9585 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.778e-05/0.8653, allocations: 32.34 kB / 0.9586 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001787/0.8655, allocations: 9.25 kB / 0.9586 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003997/0.8659, allocations: 147.1 kB / 0.9587 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.365e-05/0.866, allocations: 0.6801 MB / 0.9594 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.302e-05/0.8661, allocations: 2.188 kB / 0.9594 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.8661, allocations: 18 kB / 0.9594 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of SimCode: time 3.61e-07/0.8661, allocations: 0 / 0.9594 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01176/0.8779, allocations: 1.266 MB / 0.9606 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.8781, allocations: 175.8 kB / 0.9608 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.62/2.498, allocations: 0 / 0.9608 GB, free: 1.711 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat