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.001178/0.001178, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001223/0.001223, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.221/1.221, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.141/2.141, allocations: 390.3 MB / 0.6647 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 67.88 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5205/0.5219, allocations: 140.4 MB / 0.9497 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001444/0.5234, allocations: 0.5861 MB / 0.9503 GB, free: 8.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002004/0.5236, allocations: 47.97 kB / 0.9503 GB, free: 8.742 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.447e-05/0.5236, allocations: 0 / 0.9503 GB, free: 8.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.598e-06/0.5237, allocations: 0 / 0.9503 GB, free: 8.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.147e-06/0.5237, allocations: 0 / 0.9503 GB, free: 8.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001732/0.5238, allocations: 12.31 kB / 0.9504 GB, free: 8.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.723e-05/0.5239, allocations: 6.766 kB / 0.9504 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.607e-05/0.5239, allocations: 1.5 kB / 0.9504 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.19e-05/0.5239, allocations: 1.344 kB / 0.9504 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 1.695e-05/0.524, allocations: 11.92 kB / 0.9504 GB, free: 8.719 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.985e-06/0.524, allocations: 1.594 kB / 0.9504 GB, free: 8.719 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.753e-05/0.524, allocations: 12.25 kB / 0.9504 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.253e-06/0.5241, allocations: 0 / 0.9504 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.461e-05/0.5241, allocations: 1.688 kB / 0.9504 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.287e-05/0.5241, allocations: 14.97 kB / 0.9504 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.5241, allocations: 0 / 0.9504 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.163e-06/0.5242, allocations: 1.031 kB / 0.9504 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.5242, allocations: 0 / 0.9504 GB, free: 8.699 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.0001798/0.5243, allocations: 309.1 kB / 0.9507 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.5244, allocations: 16.86 kB / 0.9507 GB, free: 8.344 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.919e-05/0.5244, allocations: 34.75 kB / 0.9508 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.918e-05/0.5244, allocations: 6.5 kB / 0.9508 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.156e-05/0.5245, allocations: 160.4 kB / 0.9509 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.767e-06/0.5245, allocations: 4.312 kB / 0.9509 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.076e-06/0.5245, allocations: 2.094 kB / 0.9509 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.536e-05/0.5246, allocations: 29.39 kB / 0.9509 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.5246, allocations: 7.922 kB / 0.951 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.101e-06/0.5246, allocations: 0 / 0.951 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.5246, allocations: 5.625 kB / 0.951 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.623e-05/0.5246, allocations: 6.656 kB / 0.951 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.197e-05/0.5247, allocations: 147.2 kB / 0.9511 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.109e-05/0.5248, allocations: 31.94 kB / 0.9511 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.49e-05/0.5248, allocations: 7.672 kB / 0.9511 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001198/0.5249, allocations: 79.52 kB / 0.9512 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.5249, allocations: 31.94 kB / 0.9512 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.021e-06/0.525, allocations: 4 kB / 0.9513 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001123/0.5251, allocations: 50.84 kB / 0.9513 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.756e-05/0.5251, allocations: 51.41 kB / 0.9514 GB, free: 7.57 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.505e-05/0.5251, allocations: 89.86 kB / 0.9514 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.841e-06/0.5251, allocations: 27.17 kB / 0.9515 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.336e-06/0.5251, allocations: 80.14 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.412e-05/0.5252, allocations: 1.375 kB / 0.9515 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.5252, allocations: 16.5 kB / 0.9516 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.553e-05/0.5252, allocations: 319 kB / 0.9519 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.062e-05/0.5252, allocations: 5.375 kB / 0.9519 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.494e-06/0.5252, allocations: 2.781 kB / 0.9519 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.716e-05/0.5253, allocations: 14.23 kB / 0.9519 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.5253, allocations: 0 / 0.9519 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.653e-05/0.5253, allocations: 36.84 kB / 0.9519 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.5253, allocations: 6.812 kB / 0.9519 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.5254, allocations: 4.812 kB / 0.9519 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-06/0.5254, allocations: 4 kB / 0.9519 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.771e-05/0.5254, allocations: 3.406 kB / 0.9519 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.5254, allocations: 4 kB / 0.9519 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.152e-05/0.5255, allocations: 7.406 kB / 0.9519 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-06/0.5255, allocations: 1.344 kB / 0.9519 GB, free: 6.953 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.966e-05/0.5255, allocations: 111.1 kB / 0.9521 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-06/0.5255, allocations: 3.938 kB / 0.9521 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.138e-05/0.5256, allocations: 52.38 kB / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.5256, allocations: 0 / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5256, allocations: 1.062 kB / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.5256, allocations: 0 / 0.9521 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.435e-05/0.5257, allocations: 148.2 kB / 0.9522 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.5257, allocations: 0 / 0.9522 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.1e-05/0.5257, allocations: 3.062 kB / 0.9523 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.5257, allocations: 1.25 kB / 0.9523 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.5257, allocations: 3.938 kB / 0.9523 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.5257, allocations: 0 / 0.9523 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5257, allocations: 1.281 kB / 0.9523 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.376e-05/0.5258, allocations: 73.94 kB / 0.9523 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.269e-05/0.5258, allocations: 81.05 kB / 0.9524 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-06/0.5258, allocations: 5.156 kB / 0.9524 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.019e-05/0.5258, allocations: 4 kB / 0.9524 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.516e-05/0.5259, allocations: 5.297 kB / 0.9524 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.5259, allocations: 1.281 kB / 0.9524 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.05e-05/0.5259, allocations: 75.28 kB / 0.9525 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5259, allocations: 5.281 kB / 0.9525 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001727/0.5261, allocations: 3.688 kB / 0.9525 GB, free: 6.316 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.0002421/0.5263, allocations: 0.6036 MB / 0.9531 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.987e-05/0.5264, allocations: 10.53 kB / 0.9531 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.5264, allocations: 4.094 kB / 0.9531 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.414e-05/0.5264, allocations: 8.891 kB / 0.9531 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.5265, allocations: 1.219 kB / 0.9531 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002383/0.5268, allocations: 111.3 kB / 0.9532 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.783e-05/0.5269, allocations: 0.6836 MB / 0.9539 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.134e-05/0.5269, allocations: 1.219 kB / 0.9539 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.66e-05/0.5269, allocations: 8.656 kB / 0.9539 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of SimCode: time 7.91e-07/0.5269, allocations: 0 / 0.9539 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01506/0.542, allocations: 1.045 MB / 0.9549 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.685/7.227, allocations: 8.859 kB / 0.9549 GB, free: 4.219 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