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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001635/0.001635, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002201/0.002201, allocations: 191.7 kB / 16.13 MB, free: 6.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.2 MB / 0.6643 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 63.91 kB / 0.812 GB, free: 14.82 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7249/0.7264, allocations: 140.4 MB / 0.949 GB, free: 9.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002555/0.729, allocations: 1.566 MB / 0.9506 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003194/0.7293, allocations: 123.9 kB / 0.9507 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.7294, allocations: 1.375 kB / 0.9507 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.003e-05/0.7294, allocations: 0 / 0.9507 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.805e-05/0.7295, allocations: 1.375 kB / 0.9507 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000164/0.7297, allocations: 32.03 kB / 0.9507 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.193e-05/0.7297, allocations: 24.36 kB / 0.9507 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.116e-05/0.7298, allocations: 4.125 kB / 0.9507 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.679e-05/0.7298, allocations: 16.05 kB / 0.9508 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.735e-05/0.7299, allocations: 17.47 kB / 0.9508 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.7299, allocations: 1.375 kB / 0.9508 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.949e-05/0.73, allocations: 9.5 kB / 0.9508 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.234e-05/0.73, allocations: 9.297 kB / 0.9508 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/0.73, allocations: 14.69 kB / 0.9508 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.306e-05/0.7301, allocations: 28.2 kB / 0.9508 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.7301, allocations: 3.938 kB / 0.9508 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.31e-07/0.7301, allocations: 5.312 kB / 0.9509 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.745e-06/0.7301, allocations: 0 / 0.9509 GB, free: 7.652 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.0003312/0.7304, allocations: 344.8 kB / 0.9512 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.7305, allocations: 9.625 kB / 0.9512 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.319e-05/0.7305, allocations: 32.12 kB / 0.9512 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.327e-05/0.7305, allocations: 6.25 kB / 0.9512 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.876e-05/0.7306, allocations: 173.6 kB / 0.9514 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.7306, allocations: 5.75 kB / 0.9514 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.868e-06/0.7306, allocations: 1.75 kB / 0.9514 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.7308, allocations: 57.34 kB / 0.9515 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.7308, allocations: 3.938 kB / 0.9515 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.7308, allocations: 1.375 kB / 0.9515 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.7308, allocations: 0 / 0.9515 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.731, allocations: 45.89 kB / 0.9515 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002577/0.7313, allocations: 266.7 kB / 0.9518 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002765/0.7316, allocations: 53.92 kB / 0.9518 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.489e-05/0.7317, allocations: 34.67 kB / 0.9518 GB, free: 6.594 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 8.393e-05/0.7317, allocations: 83.86 kB / 0.9519 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.193e-05/0.7318, allocations: 35.88 kB / 0.952 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.7318, allocations: 0 / 0.952 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003341/0.7321, allocations: 93.38 kB / 0.952 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.996e-05/0.7321, allocations: 52.78 kB / 0.9521 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.365e-05/0.7322, allocations: 107.3 kB / 0.9522 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.903e-06/0.7322, allocations: 29.7 kB / 0.9522 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.243e-05/0.7322, allocations: 81.52 kB / 0.9523 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.214e-05/0.7322, allocations: 5.594 kB / 0.9523 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.7323, allocations: 16.38 kB / 0.9523 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.348e-05/0.7323, allocations: 316.2 kB / 0.9526 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.359e-05/0.7324, allocations: 18.39 kB / 0.9526 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.539e-05/0.7325, allocations: 22.84 kB / 0.9527 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.7326, allocations: 54.47 kB / 0.9527 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.7326, allocations: 3.938 kB / 0.9527 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001837/0.7328, allocations: 75.86 kB / 0.9528 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.7329, allocations: 5.281 kB / 0.9528 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.7329, allocations: 5.047 kB / 0.9528 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.7329, allocations: 0 / 0.9528 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.383e-05/0.733, allocations: 15.2 kB / 0.9528 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.733, allocations: 1.25 kB / 0.9528 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.079e-05/0.733, allocations: 4.438 kB / 0.9528 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-06/0.733, allocations: 0 / 0.9528 GB, free: 5.637 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,fac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.705e-05/0.7331, allocations: 120.7 kB / 0.9529 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.7331, allocations: 9.25 kB / 0.9529 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002115/0.7333, allocations: 81.98 kB / 0.953 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.7333, allocations: 1.719 kB / 0.953 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.7333, allocations: 0 / 0.953 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.7334, allocations: 0 / 0.953 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001051/0.7335, allocations: 171.4 kB / 0.9532 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.7335, allocations: 5.375 kB / 0.9532 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.978e-05/0.7335, allocations: 10.8 kB / 0.9532 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.7335, allocations: 1.344 kB / 0.9532 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.7336, allocations: 0 / 0.9532 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.7336, allocations: 0 / 0.9532 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.7336, allocations: 1.031 kB / 0.9532 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002005/0.7338, allocations: 174.9 kB / 0.9534 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.638e-05/0.7338, allocations: 86.47 kB / 0.9535 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.188e-05/0.7338, allocations: 0 / 0.9535 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.878e-05/0.7339, allocations: 8.125 kB / 0.9535 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-05/0.7339, allocations: 6.297 kB / 0.9535 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-06/0.734, allocations: 5.5 kB / 0.9535 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.943e-05/0.734, allocations: 82.8 kB / 0.9536 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.734, allocations: 0 / 0.9536 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000216/0.7342, allocations: 11.38 kB / 0.9536 GB, free: 4.867 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003632/0.7346, allocations: 0.7095 MB / 0.9543 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001942/0.7348, allocations: 48.28 kB / 0.9543 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.7348, allocations: 5.344 kB / 0.9543 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.627e-05/0.7349, allocations: 21.64 kB / 0.9543 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002428/0.7351, allocations: 6.922 kB / 0.9543 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003387/0.7355, allocations: 154.4 kB / 0.9545 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.723e-05/0.7356, allocations: 0.6784 MB / 0.9551 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.987e-05/0.7356, allocations: 2.125 kB / 0.9551 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.013e-05/0.7356, allocations: 13.61 kB / 0.9552 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.7356, allocations: 0 / 0.9552 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5886/1.324, allocations: 1.365 MB / 0.9565 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000116/1.324, allocations: 189.6 kB / 0.9567 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.64/2.965, allocations: 0 / 0.9567 GB, free: 2.289 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/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) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches