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.001036/0.001036, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.001305/0.001305, 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.48/1.48, allocations: 223.3 MB / 240 MB, free: 5.273 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.42/2.42, allocations: 390.4 MB / 0.6655 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003908, allocations: 8 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8028/0.8032, allocations: 142.3 MB / 0.9539 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001449/0.8047, allocations: 1.219 MB / 0.955 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000298/0.805, allocations: 111.5 kB / 0.9551 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.256e-05/0.8051, allocations: 1.312 kB / 0.9551 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.596e-05/0.8051, allocations: 3.938 kB / 0.9552 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.351e-05/0.8051, allocations: 4 kB / 0.9552 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.8053, allocations: 17.83 kB / 0.9552 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.274e-05/0.8054, allocations: 26.36 kB / 0.9552 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.164e-05/0.8055, allocations: 10.7 kB / 0.9552 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.752e-05/0.8055, allocations: 12.58 kB / 0.9552 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.434e-05/0.8056, allocations: 16.2 kB / 0.9552 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.209e-05/0.8056, allocations: 1.094 kB / 0.9552 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.182e-05/0.8057, allocations: 12.84 kB / 0.9552 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.867e-06/0.8057, allocations: 6.094 kB / 0.9553 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.751e-05/0.8057, allocations: 26.64 kB / 0.9553 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.43e-05/0.8058, allocations: 26.03 kB / 0.9553 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.319e-06/0.8058, allocations: 1 kB / 0.9553 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8058, allocations: 3.938 kB / 0.9553 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.8058, allocations: 0 / 0.9553 GB, free: 6.953 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.00034/0.8061, allocations: 345.1 kB / 0.9556 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.8062, allocations: 13.44 kB / 0.9557 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.628e-05/0.8062, allocations: 31.91 kB / 0.9557 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.285e-05/0.8063, allocations: 5.422 kB / 0.9557 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.417e-05/0.8063, allocations: 172.2 kB / 0.9559 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.8064, allocations: 1.125 kB / 0.9559 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.8064, allocations: 5.531 kB / 0.9559 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/0.8066, allocations: 57.52 kB / 0.9559 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.8066, allocations: 0 / 0.9559 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-06/0.8066, allocations: 4 kB / 0.9559 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.8066, allocations: 1.312 kB / 0.9559 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.8068, allocations: 55.72 kB / 0.956 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003333/0.8071, allocations: 266.6 kB / 0.9562 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002772/0.8074, allocations: 62.3 kB / 0.9563 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.734e-05/0.8075, allocations: 32.58 kB / 0.9563 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.484e-05/0.8076, allocations: 85.42 kB / 0.9564 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.358e-05/0.8076, allocations: 30.56 kB / 0.9564 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.8076, allocations: 0 / 0.9564 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003546/0.808, allocations: 120.3 kB / 0.9565 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.032e-05/0.808, allocations: 52.91 kB / 0.9566 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.453e-05/0.8081, allocations: 97.94 kB / 0.9567 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.8081, allocations: 34.8 kB / 0.9567 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.521e-05/0.8082, allocations: 81.27 kB / 0.9568 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.8082, allocations: 5.25 kB / 0.9568 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.8082, allocations: 0 / 0.9568 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.739e-05/0.8083, allocations: 323.9 kB / 0.9571 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.352e-05/0.8084, allocations: 24 kB / 0.9571 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.234e-05/0.8085, allocations: 23.73 kB / 0.9572 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.8086, allocations: 30.59 kB / 0.9572 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.8086, allocations: 1.625 kB / 0.9572 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002308/0.8088, allocations: 92.83 kB / 0.9573 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.8089, allocations: 5.344 kB / 0.9573 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.8089, allocations: 0 / 0.9573 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.8089, allocations: 7.953 kB / 0.9573 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.057e-05/0.809, allocations: 14.55 kB / 0.9573 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.809, allocations: 0 / 0.9573 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.323e-05/0.809, allocations: 10.2 kB / 0.9573 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.8091, allocations: 1.25 kB / 0.9573 GB, free: 4.969 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 6.896e-05/0.8091, allocations: 108.5 kB / 0.9574 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.8092, allocations: 1.531 kB / 0.9574 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00025/0.8094, allocations: 100.5 kB / 0.9575 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.8094, allocations: 3.953 kB / 0.9575 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.8094, allocations: 0 / 0.9575 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.8095, allocations: 1.531 kB / 0.9575 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001256/0.8096, allocations: 163.8 kB / 0.9577 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.8096, allocations: 4 kB / 0.9577 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.826e-05/0.8097, allocations: 19.52 kB / 0.9577 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.8097, allocations: 0 / 0.9577 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.8097, allocations: 0 / 0.9577 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.8097, allocations: 0 / 0.9577 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.8097, allocations: 3.953 kB / 0.9577 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002233/0.8099, allocations: 185 kB / 0.9579 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.336e-05/0.81, allocations: 86.02 kB / 0.958 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.81, allocations: 0.875 kB / 0.958 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.203e-05/0.8101, allocations: 9.859 kB / 0.958 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.8101, allocations: 10.95 kB / 0.958 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.73e-06/0.8101, allocations: 8.984 kB / 0.958 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.552e-05/0.8102, allocations: 82.38 kB / 0.9581 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8102, allocations: 0 / 0.9581 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002342/0.8104, allocations: 7.469 kB / 0.9581 GB, free: 4.203 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.0004531/0.8109, allocations: 0.722 MB / 0.9588 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00023/0.8111, allocations: 54.75 kB / 0.9588 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.8111, allocations: 1.125 kB / 0.9588 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.8112, allocations: 36.88 kB / 0.9589 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.8115, allocations: 4 kB / 0.9589 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004054/0.8119, allocations: 144.5 kB / 0.959 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.8121, allocations: 0.6774 MB / 0.9597 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.436e-05/0.8121, allocations: 10.97 kB / 0.9597 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.27e-05/0.8121, allocations: 16.7 kB / 0.9597 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of SimCode: time 3.6e-07/0.8121, allocations: 0 / 0.9597 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01202/0.8242, allocations: 1.281 MB / 0.9609 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.8244, allocations: 180.3 kB / 0.9611 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/2.497, allocations: 2.375 kB / 0.9611 GB, free: 1.738 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