Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_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.001091/0.001091, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001388/0.001388, allocations: 172.7 kB / 15.95 MB, free: 208 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.37/1.37, allocations: 223.3 MB / 240 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.614/2.614, allocations: 409.4 MB / 0.684 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003864/0.0003866, allocations: 12 kB / 0.8378 GB, free: 6.547 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8086/0.809, allocations: 146.8 MB / 0.9811 GB, free: 6.465 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001883/0.8109, allocations: 1.227 MB / 0.9823 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0003554/0.8113, allocations: 108.6 kB / 0.9824 GB, free: 5.125 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.421e-05/0.8114, allocations: 4 kB / 0.9824 GB, free: 5.121 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.482e-05/0.8114, allocations: 3.938 kB / 0.9824 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 4.443e-05/0.8114, allocations: 0 / 0.9824 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002097/0.8116, allocations: 15.98 kB / 0.9825 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.289e-05/0.8117, allocations: 31.91 kB / 0.9825 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.166e-05/0.8118, allocations: 12 kB / 0.9825 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.377e-05/0.8119, allocations: 11.92 kB / 0.9825 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.494e-05/0.8119, allocations: 15.92 kB / 0.9825 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.812, allocations: 0 / 0.9825 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.723e-05/0.812, allocations: 4 kB / 0.9825 GB, free: 5.027 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.432e-05/0.812, allocations: 8 kB / 0.9825 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4e-05/0.8121, allocations: 25.7 kB / 0.9826 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.581e-05/0.8122, allocations: 27.94 kB / 0.9826 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.8122, allocations: 0 / 0.9826 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.214e-06/0.8122, allocations: 0 / 0.9826 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.098e-06/0.8122, allocations: 4 kB / 0.9826 GB, free: 4.957 MB / 0.7325 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.0004822/0.8127, allocations: 341.7 kB / 0.9829 GB, free: 4.574 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.8128, allocations: 12.03 kB / 0.9829 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.314e-05/0.8128, allocations: 30.56 kB / 0.983 GB, free: 4.523 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.612e-05/0.8129, allocations: 3.938 kB / 0.983 GB, free: 4.52 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.813, allocations: 178.8 kB / 0.9831 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.813, allocations: 0 / 0.9831 GB, free: 4.305 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.813, allocations: 4 kB / 0.9831 GB, free: 4.301 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001974/0.8132, allocations: 65.62 kB / 0.9832 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.8133, allocations: 0 / 0.9832 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.8133, allocations: 4 kB / 0.9832 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.8133, allocations: 0 / 0.9832 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.8135, allocations: 55.95 kB / 0.9833 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.8139, allocations: 260.9 kB / 0.9835 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.8142, allocations: 70.44 kB / 0.9836 GB, free: 3.789 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.444e-05/0.8143, allocations: 32.89 kB / 0.9836 GB, free: 3.754 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001112/0.8144, allocations: 81.11 kB / 0.9837 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.8144, allocations: 30.56 kB / 0.9837 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.8145, allocations: 0 / 0.9837 GB, free: 3.617 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0003804/0.8148, allocations: 113.6 kB / 0.9838 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.8149, allocations: 51.41 kB / 0.9839 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.69e-05/0.815, allocations: 110 kB / 0.984 GB, free: 3.32 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.815, allocations: 25.7 kB / 0.984 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.069e-05/0.8151, allocations: 92.05 kB / 0.9841 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.309e-05/0.8151, allocations: 0 / 0.9841 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-06/0.8151, allocations: 0 / 0.9841 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.8152, allocations: 322.8 kB / 0.9844 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.584e-05/0.8153, allocations: 19.98 kB / 0.9844 GB, free: 2.852 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.613e-05/0.8154, allocations: 27.98 kB / 0.9844 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.626e-05/0.8155, allocations: 27.97 kB / 0.9845 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.8155, allocations: 0 / 0.9845 GB, free: 2.797 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000204/0.8157, allocations: 93.45 kB / 0.9846 GB, free: 2.699 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.442e-05/0.8157, allocations: 4 kB / 0.9846 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.8158, allocations: 0 / 0.9846 GB, free: 2.695 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.8158, allocations: 4 kB / 0.9846 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.905e-05/0.8159, allocations: 15.98 kB / 0.9846 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.8159, allocations: 0 / 0.9846 GB, free: 2.676 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.08e-05/0.8159, allocations: 15.98 kB / 0.9846 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.8159, allocations: 3.938 kB / 0.9846 GB, free: 2.656 MB / 0.7325 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 8.877e-05/0.816, allocations: 109.8 kB / 0.9847 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/0.8161, allocations: 3.953 kB / 0.9847 GB, free: 2.535 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002604/0.8163, allocations: 97.14 kB / 0.9848 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.8163, allocations: 3.938 kB / 0.9848 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.8164, allocations: 0 / 0.9848 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.8164, allocations: 0 / 0.9848 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.8165, allocations: 165.6 kB / 0.985 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.8165, allocations: 0 / 0.985 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.447e-05/0.8166, allocations: 15.98 kB / 0.985 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.8166, allocations: 3.953 kB / 0.985 GB, free: 2.195 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.8167, allocations: 8 kB / 0.985 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.8167, allocations: 0 / 0.985 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.8167, allocations: 0 / 0.985 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.8169, allocations: 183.4 kB / 0.9852 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.411e-05/0.817, allocations: 81.11 kB / 0.9852 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.817, allocations: 3.953 kB / 0.9852 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.142e-05/0.8171, allocations: 11.98 kB / 0.9853 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.8172, allocations: 11.92 kB / 0.9853 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.8172, allocations: 0 / 0.9853 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.857e-05/0.8172, allocations: 87.22 kB / 0.9854 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8172, allocations: 0 / 0.9854 GB, free: 1.781 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002263/0.8174, allocations: 11.94 kB / 0.9854 GB, free: 1.77 MB / 0.7325 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.000607/0.8181, allocations: 0.7193 MB / 0.9861 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002256/0.8183, allocations: 55.98 kB / 0.9861 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.8183, allocations: 0 / 0.9861 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.946e-05/0.8184, allocations: 39.91 kB / 0.9862 GB, free: 0.9336 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.8187, allocations: 3.953 kB / 0.9862 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004369/0.8191, allocations: 150.2 kB / 0.9863 GB, free: 0.7383 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.8194, allocations: 0.6809 MB / 0.987 GB, free: 32 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.325e-05/0.8195, allocations: 4 kB / 0.987 GB, free: 28 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.579e-05/0.8195, allocations: 15.42 kB / 0.987 GB, free: 12 kB / 0.7325 GB Notification: Performance of SimCode: time 2.5e-07/0.8195, allocations: 0 / 0.987 GB, free: 12 kB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01224/0.8318, allocations: 1.288 MB / 0.9882 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002968/0.8321, allocations: 180.6 kB / 0.9884 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/2.654, allocations: 6.875 kB / 0.9884 GB, free: 14.61 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat does not exist to compare? outputFormat=mat