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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001219/0.001219, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001252/0.001252, allocations: 191.3 kB / 16.25 MB, free: 6.645 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.246/1.246, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.163/2.163, allocations: 390.2 MB / 0.6644 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 63.91 kB / 0.8122 GB, free: 14.71 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5222/0.5234, allocations: 140.4 MB / 0.9492 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001546/0.525, allocations: 0.6477 MB / 0.9499 GB, free: 8.707 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001918/0.5252, allocations: 48.22 kB / 0.9499 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.009e-05/0.5252, allocations: 4 kB / 0.9499 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.587e-05/0.5253, allocations: 0 / 0.9499 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.378e-06/0.5253, allocations: 3.938 kB / 0.9499 GB, free: 8.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001792/0.5254, allocations: 8.125 kB / 0.9499 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.468e-05/0.5255, allocations: 6.688 kB / 0.9499 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.361e-05/0.5255, allocations: 1.375 kB / 0.9499 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.211e-05/0.5255, allocations: 1.375 kB / 0.9499 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.93e-05/0.5256, allocations: 9.297 kB / 0.95 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.704e-06/0.5256, allocations: 0 / 0.95 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.397e-05/0.5256, allocations: 12.11 kB / 0.95 GB, free: 8.641 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.146e-06/0.5257, allocations: 5.375 kB / 0.95 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.472e-05/0.5257, allocations: 0 / 0.95 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.191e-05/0.5257, allocations: 16.11 kB / 0.95 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.5257, allocations: 0 / 0.95 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.893e-06/0.5257, allocations: 1.375 kB / 0.95 GB, free: 8.625 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.5258, allocations: 0 / 0.95 GB, free: 8.625 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.0001817/0.5259, allocations: 307.7 kB / 0.9503 GB, free: 8.277 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.526, allocations: 9.625 kB / 0.9503 GB, free: 8.277 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.026e-05/0.526, allocations: 34.69 kB / 0.9503 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.031e-05/0.526, allocations: 6.297 kB / 0.9503 GB, free: 8.23 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.898e-05/0.5261, allocations: 168.4 kB / 0.9505 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.5261, allocations: 1.75 kB / 0.9505 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.119e-06/0.5261, allocations: 384 / 0.9505 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.346e-05/0.5262, allocations: 30.39 kB / 0.9505 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.5262, allocations: 3.938 kB / 0.9505 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.34e-06/0.5262, allocations: 3.938 kB / 0.9505 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.5262, allocations: 1.375 kB / 0.9505 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.753e-05/0.5262, allocations: 6.734 kB / 0.9505 GB, free: 7.984 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.076e-05/0.5263, allocations: 147.1 kB / 0.9507 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.536e-05/0.5264, allocations: 24.08 kB / 0.9507 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/0.5264, allocations: 15.59 kB / 0.9507 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001152/0.5265, allocations: 83.84 kB / 0.9508 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.363e-05/0.5265, allocations: 31.94 kB / 0.9508 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.5265, allocations: 0 / 0.9508 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001053/0.5266, allocations: 53.72 kB / 0.9509 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.193e-05/0.5267, allocations: 56.91 kB / 0.9509 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.355e-05/0.5267, allocations: 89.86 kB / 0.951 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.44e-06/0.5267, allocations: 25.7 kB / 0.951 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.805e-06/0.5267, allocations: 80.14 kB / 0.9511 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.181e-05/0.5267, allocations: 1.375 kB / 0.9511 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.092e-05/0.5267, allocations: 16.47 kB / 0.9511 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.232e-05/0.5268, allocations: 316.2 kB / 0.9514 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.808e-06/0.5268, allocations: 1.375 kB / 0.9514 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.653e-06/0.5268, allocations: 5.375 kB / 0.9514 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.487e-05/0.5268, allocations: 22.23 kB / 0.9515 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.5268, allocations: 0 / 0.9515 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.363e-05/0.5269, allocations: 37.94 kB / 0.9515 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.5269, allocations: 9.484 kB / 0.9515 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.5269, allocations: 3.938 kB / 0.9515 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.5269, allocations: 1.375 kB / 0.9515 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.556e-05/0.527, allocations: 2.75 kB / 0.9515 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.527, allocations: 96 / 0.9515 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.386e-05/0.527, allocations: 11.62 kB / 0.9515 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-06/0.527, allocations: 0 / 0.9515 GB, free: 6.875 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.5271, allocations: 115.2 kB / 0.9516 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-06/0.5271, allocations: 1.375 kB / 0.9516 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.576e-05/0.5271, allocations: 51.56 kB / 0.9517 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.5271, allocations: 1.375 kB / 0.9517 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.5271, allocations: 0 / 0.9517 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.5272, allocations: 0 / 0.9517 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.33e-05/0.5272, allocations: 152.5 kB / 0.9518 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.5272, allocations: 0 / 0.9518 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.982e-05/0.5272, allocations: 2.75 kB / 0.9518 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.5272, allocations: 1.375 kB / 0.9518 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.5272, allocations: 3.938 kB / 0.9518 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.5273, allocations: 0 / 0.9518 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.5273, allocations: 1.375 kB / 0.9518 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.891e-05/0.5273, allocations: 69.22 kB / 0.9519 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.173e-05/0.5273, allocations: 82.52 kB / 0.952 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.598e-06/0.5273, allocations: 3.938 kB / 0.952 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.056e-05/0.5274, allocations: 0 / 0.952 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.534e-05/0.5274, allocations: 10.73 kB / 0.952 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-06/0.5274, allocations: 0 / 0.952 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.698e-06/0.5274, allocations: 75.28 kB / 0.9521 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5274, allocations: 1.375 kB / 0.9521 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001846/0.5276, allocations: 4.125 kB / 0.9521 GB, free: 6.242 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 (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.0002095/0.5278, allocations: 0.6029 MB / 0.9527 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.461e-05/0.5279, allocations: 14.81 kB / 0.9527 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.5279, allocations: 0 / 0.9527 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.344e-05/0.5279, allocations: 8.109 kB / 0.9527 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001132/0.528, allocations: 1.531 kB / 0.9527 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002139/0.5282, allocations: 115.4 kB / 0.9528 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.284e-05/0.5283, allocations: 0.6793 MB / 0.9535 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.139e-05/0.5283, allocations: 5.312 kB / 0.9535 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.598e-05/0.5284, allocations: 8.812 kB / 0.9535 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5284, allocations: 3.938 kB / 0.9535 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009613/0.538, allocations: 0.9619 MB / 0.9544 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001277/0.5381, allocations: 205.9 kB / 0.9546 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.551/2.089, allocations: 0 / 0.9546 GB, free: 4.008 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/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) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches