Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_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.0008854/0.0008851, allocations: 99.55 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.0009541/0.000954, allocations: 177.3 kB / 15.94 MB, free: 228 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.34/1.34, allocations: 223.2 MB / 239.9 MB, free: 5.328 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.329/2.329, allocations: 390.3 MB / 0.6653 GB, free: 3.027 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004032/0.0004033, allocations: 15.98 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7476/0.7481, allocations: 142.3 MB / 0.9536 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007191/0.7488, allocations: 318.8 kB / 0.9539 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002169/0.749, allocations: 38.47 kB / 0.9539 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.202e-05/0.7491, allocations: 1.062 kB / 0.9539 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.009e-05/0.7491, allocations: 0 / 0.9539 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.58e-06/0.7491, allocations: 0 / 0.9539 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001876/0.7493, allocations: 19.36 kB / 0.9539 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.831e-05/0.7493, allocations: 1.188 kB / 0.9539 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.929e-05/0.7494, allocations: 1.281 kB / 0.954 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.62e-05/0.7494, allocations: 0 / 0.954 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.774e-05/0.7494, allocations: 9.297 kB / 0.954 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.064e-05/0.7494, allocations: 1.125 kB / 0.954 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.452e-05/0.7495, allocations: 7.531 kB / 0.954 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.53e-06/0.7495, allocations: 0 / 0.954 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.967e-05/0.7496, allocations: 27.2 kB / 0.954 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.088e-05/0.7496, allocations: 6.641 kB / 0.954 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.7496, allocations: 0 / 0.954 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.585e-06/0.7496, allocations: 3.984 kB / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.7497, allocations: 0 / 0.954 GB, free: 7.742 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000216/0.7499, allocations: 308.8 kB / 0.9543 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.7499, allocations: 12.69 kB / 0.9543 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.469e-05/0.75, allocations: 35.75 kB / 0.9543 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.131e-05/0.75, allocations: 7.891 kB / 0.9544 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.042e-05/0.7501, allocations: 176.4 kB / 0.9545 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.7501, allocations: 0 / 0.9545 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.7501, allocations: 1.062 kB / 0.9545 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.981e-05/0.7502, allocations: 29.36 kB / 0.9545 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.7502, allocations: 0 / 0.9545 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.7502, allocations: 0 / 0.9545 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.7502, allocations: 1.25 kB / 0.9546 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.242e-05/0.7503, allocations: 10.17 kB / 0.9546 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001077/0.7504, allocations: 152.4 kB / 0.9547 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.072e-05/0.7504, allocations: 27.73 kB / 0.9547 GB, free: 6.867 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001533/0.7506, allocations: 87.5 kB / 0.9548 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.7506, allocations: 31.84 kB / 0.9548 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.91e-07/0.7506, allocations: 0 / 0.9548 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001324/0.7507, allocations: 38.08 kB / 0.9549 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.368e-05/0.7508, allocations: 52.5 kB / 0.9549 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.55e-05/0.7508, allocations: 101.8 kB / 0.955 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.973e-06/0.7508, allocations: 29.64 kB / 0.9551 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.209e-05/0.7508, allocations: 81.33 kB / 0.9551 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.7509, allocations: 0 / 0.9551 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-06/0.7509, allocations: 1.25 kB / 0.9551 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.7509, allocations: 314.8 kB / 0.9554 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.508e-06/0.7509, allocations: 5.625 kB / 0.9554 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.7509, allocations: 2.844 kB / 0.9554 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.412e-05/0.751, allocations: 6.844 kB / 0.9555 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.751, allocations: 0 / 0.9555 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.045e-05/0.751, allocations: 36.84 kB / 0.9555 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.7511, allocations: 6.844 kB / 0.9555 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.7511, allocations: 0 / 0.9555 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.7511, allocations: 1.406 kB / 0.9555 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.732e-05/0.7511, allocations: 2.844 kB / 0.9555 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.7512, allocations: 8.078 kB / 0.9555 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.416e-05/0.7512, allocations: 2.25 kB / 0.9555 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.7512, allocations: 1.312 kB / 0.9555 GB, free: 6.035 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.574e-05/0.7513, allocations: 118.9 kB / 0.9556 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.783e-06/0.7513, allocations: 5.203 kB / 0.9556 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.214e-05/0.7513, allocations: 40.64 kB / 0.9557 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.7514, allocations: 0 / 0.9557 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.7514, allocations: 0 / 0.9557 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.7514, allocations: 5.469 kB / 0.9557 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.035e-05/0.7514, allocations: 151.3 kB / 0.9558 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.7514, allocations: 3.938 kB / 0.9558 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.08e-05/0.7515, allocations: 3.094 kB / 0.9558 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.7515, allocations: 0 / 0.9558 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-06/0.7515, allocations: 1.375 kB / 0.9558 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.7515, allocations: 0 / 0.9558 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.7515, allocations: 3.938 kB / 0.9558 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.178e-05/0.7516, allocations: 77.89 kB / 0.9559 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.002e-05/0.7516, allocations: 78.14 kB / 0.956 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.7516, allocations: 4.984 kB / 0.956 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.072e-05/0.7516, allocations: 4 kB / 0.956 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.766e-05/0.7517, allocations: 6 kB / 0.956 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.915e-06/0.7517, allocations: 1.031 kB / 0.956 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.451e-05/0.7517, allocations: 75.28 kB / 0.9561 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7517, allocations: 0 / 0.9561 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001959/0.7519, allocations: 4.156 kB / 0.9561 GB, free: 5.395 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.000282/0.7522, allocations: 0.6074 MB / 0.9567 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.492e-05/0.7523, allocations: 10.44 kB / 0.9567 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.7523, allocations: 0 / 0.9567 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.584e-05/0.7523, allocations: 9.328 kB / 0.9567 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.041e-05/0.7524, allocations: 4.156 kB / 0.9567 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002641/0.7527, allocations: 109.2 kB / 0.9568 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.7528, allocations: 0.6763 MB / 0.9574 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.474e-05/0.7528, allocations: 5.094 kB / 0.9575 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.804e-05/0.7528, allocations: 8.719 kB / 0.9575 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7528, allocations: 0.9375 kB / 0.9575 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01055/0.7634, allocations: 0.8601 MB / 0.9583 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003291/0.7638, allocations: 180 kB / 0.9585 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.51/2.274, allocations: 0 / 0.9585 GB, free: 3.297 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat