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.00662/0.00662, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001247/0.001247, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.296/2.296, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 65.39 kB / 0.9504 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2627, allocations: 140.4 MB / 1.088 GB, free: 1.969 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001545/0.2642, allocations: 0.5804 MB / 1.088 GB, free: 1.391 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002456/0.2645, allocations: 63.72 kB / 1.088 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.641e-05/0.2645, allocations: 0 / 1.088 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.201e-05/0.2645, allocations: 0 / 1.088 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 5.551e-06/0.2646, allocations: 0 / 1.088 GB, free: 1.328 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.2648, allocations: 7.984 kB / 1.088 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 4.181e-05/0.2648, allocations: 8 kB / 1.088 GB, free: 1.312 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.2649, allocations: 0 / 1.088 GB, free: 1.312 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.52e-05/0.2649, allocations: 4 kB / 1.088 GB, free: 1.309 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 1.847e-05/0.2649, allocations: 3.938 kB / 1.088 GB, free: 1.305 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.596e-06/0.2649, allocations: 0 / 1.088 GB, free: 1.305 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 6.607e-05/0.265, allocations: 11.98 kB / 1.088 GB, free: 1.293 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.528e-06/0.265, allocations: 7.984 kB / 1.088 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.593e-05/0.265, allocations: 0 / 1.088 GB, free: 1.285 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 7.332e-05/0.2651, allocations: 11.94 kB / 1.088 GB, free: 1.273 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2651, allocations: 0 / 1.088 GB, free: 1.273 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.695e-06/0.2651, allocations: 4 kB / 1.088 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.2651, allocations: 3.938 kB / 1.088 GB, free: 1.266 MB / 0.8419 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.0002705/0.2654, allocations: 315.6 kB / 1.088 GB, free: 0.9062 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.2654, allocations: 8.031 kB / 1.089 GB, free: 0.8984 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.939e-05/0.2655, allocations: 30.75 kB / 1.089 GB, free: 0.8594 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.17e-05/0.2655, allocations: 4.938 kB / 1.089 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.239e-05/0.2656, allocations: 164.4 kB / 1.089 GB, free: 0.6562 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.2656, allocations: 4.359 kB / 1.089 GB, free: 0.6523 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.352e-06/0.2656, allocations: 384 / 1.089 GB, free: 0.6523 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.161e-05/0.2657, allocations: 34.27 kB / 1.089 GB, free: 0.6133 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2657, allocations: 3.938 kB / 1.089 GB, free: 0.6094 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.2657, allocations: 0 / 1.089 GB, free: 0.6094 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2657, allocations: 0 / 1.089 GB, free: 0.6094 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.386e-05/0.2658, allocations: 7.938 kB / 1.089 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000132/0.2659, allocations: 157.7 kB / 1.089 GB, free: 408 kB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.971e-05/0.266, allocations: 22.95 kB / 1.089 GB, free: 376 kB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.526e-05/0.266, allocations: 4.859 kB / 1.089 GB, free: 368 kB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/0.2661, allocations: 89.16 kB / 1.089 GB, free: 260 kB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.2662, allocations: 30.56 kB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.2662, allocations: 0 / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of matching and sorting (n=2): time 0.0001249/0.2663, allocations: 41.7 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.006e-05/0.2664, allocations: 63.39 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.126e-05/0.2664, allocations: 93.86 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.2664, allocations: 25.7 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.173e-05/0.2665, allocations: 80.14 kB / 1.089 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.547e-05/0.2665, allocations: 7.844 kB / 1.089 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.2665, allocations: 13.72 kB / 1.089 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.518e-05/0.2666, allocations: 318.8 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.152e-05/0.2666, allocations: 4 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.526e-06/0.2666, allocations: 4 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.186e-05/0.2667, allocations: 12.84 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2667, allocations: 0 / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.622e-05/0.2667, allocations: 41.64 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.2668, allocations: 8 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.2668, allocations: 3.938 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.2668, allocations: 3.938 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.104e-05/0.2668, allocations: 7.984 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.2669, allocations: 4.094 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.372e-05/0.2669, allocations: 2.812 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.677e-06/0.2669, allocations: 0 / 1.09 GB, free: 15.43 MB / 0.8575 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 6.467e-05/0.267, allocations: 105.8 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.138e-05/0.267, allocations: 8 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.233e-05/0.2671, allocations: 44.69 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.2671, allocations: 4 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2671, allocations: 0 / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.2671, allocations: 4.031 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.146e-05/0.2672, allocations: 149.7 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2672, allocations: 3.984 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.293e-05/0.2672, allocations: 4 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2672, allocations: 0 / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.2672, allocations: 3.938 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.2672, allocations: 4 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2672, allocations: 0 / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.858e-05/0.2673, allocations: 65.12 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.624e-05/0.2674, allocations: 81.09 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.032e-05/0.2674, allocations: 3.938 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.262e-05/0.2674, allocations: 4 kB / 1.09 GB, free: 14.86 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.105e-05/0.2674, allocations: 4 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-06/0.2674, allocations: 0 / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.553e-05/0.2675, allocations: 79.22 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.322e-06/0.2675, allocations: 0 / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001926/0.2677, allocations: 7.938 kB / 1.09 GB, free: 14.77 MB / 0.8575 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.0003818/0.268, allocations: 0.6125 MB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 7.12e-05/0.2681, allocations: 8 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.2681, allocations: 0 / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.68e-05/0.2682, allocations: 11.94 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.2683, allocations: 4.156 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002919/0.2686, allocations: 114.7 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.2688, allocations: 0.6767 MB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 1.247e-05/0.2688, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.291e-05/0.2689, allocations: 15.42 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.2689, allocations: 0 / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01621/0.2851, allocations: 1.068 MB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.337/7.623, allocations: 4 kB / 1.093 GB, free: 12.24 MB / 0.8575 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) "" Variables in the reference:time,fac Variables in the result:fac,n,time