Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_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.001257/0.001257, 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.001273/0.001273, allocations: 192 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.282/1.282, 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 11.0.1-master/package.mo): time 2.653/2.653, allocations: 461.9 MB / 0.7346 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 65.67 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2675, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.002586/0.2701, allocations: 0.5894 MB / 1.053 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002786/0.2704, allocations: 51.73 kB / 1.054 GB, free: 7.633 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.68e-05/0.2705, allocations: 4 kB / 1.054 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.409e-05/0.2705, allocations: 0 / 1.054 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.59e-06/0.2705, allocations: 4 kB / 1.054 GB, free: 7.625 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.2708, allocations: 11.92 kB / 1.054 GB, free: 7.613 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.168e-05/0.2708, allocations: 4 kB / 1.054 GB, free: 7.609 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.865e-05/0.2709, allocations: 8 kB / 1.054 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.405e-05/0.2709, allocations: 0 / 1.054 GB, free: 7.602 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.49e-05/0.2709, allocations: 7.969 kB / 1.054 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.012e-05/0.2709, allocations: 0 / 1.054 GB, free: 7.594 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.336e-05/0.271, allocations: 8 kB / 1.054 GB, free: 7.586 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.347e-05/0.271, allocations: 4 kB / 1.054 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.862e-05/0.2711, allocations: 0 / 1.054 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.401e-05/0.2712, allocations: 11.92 kB / 1.054 GB, free: 7.57 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2712, allocations: 4 kB / 1.054 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.803e-06/0.2712, allocations: 0 / 1.054 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.52e-06/0.2712, allocations: 0 / 1.054 GB, free: 7.566 MB / 0.8106 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.0002816/0.2715, allocations: 315.6 kB / 1.054 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.2715, allocations: 12.62 kB / 1.054 GB, free: 7.195 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.2716, allocations: 34.73 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.546e-05/0.2716, allocations: 0.9375 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.586e-05/0.2717, allocations: 160.4 kB / 1.054 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.2717, allocations: 384 / 1.054 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.2717, allocations: 4.375 kB / 1.054 GB, free: 6.953 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.2718, allocations: 38.2 kB / 1.054 GB, free: 6.91 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.2718, allocations: 3.938 kB / 1.054 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.2718, allocations: 0 / 1.054 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2719, allocations: 0 / 1.054 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.524e-05/0.2719, allocations: 7.984 kB / 1.054 GB, free: 6.898 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001442/0.2721, allocations: 149.7 kB / 1.054 GB, free: 6.703 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.693e-05/0.2721, allocations: 26.59 kB / 1.054 GB, free: 6.668 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.956e-05/0.2721, allocations: 8.922 kB / 1.054 GB, free: 6.656 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001507/0.2723, allocations: 85.03 kB / 1.054 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.2723, allocations: 42.5 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.2723, allocations: 0 / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0001281/0.2725, allocations: 41.62 kB / 1.054 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.824e-05/0.2725, allocations: 51.41 kB / 1.055 GB, free: 6.395 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.569e-05/0.2725, allocations: 93.86 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.858e-06/0.2726, allocations: 29.83 kB / 1.055 GB, free: 6.258 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.313e-05/0.2726, allocations: 80.14 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.838e-05/0.2726, allocations: 7.922 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.2726, allocations: 13.72 kB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.736e-05/0.2727, allocations: 314.8 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.385e-05/0.2728, allocations: 8 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.916e-06/0.2728, allocations: 0 / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.25e-05/0.2728, allocations: 20.86 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2728, allocations: 0 / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.503e-05/0.2729, allocations: 45.59 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.2729, allocations: 4 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2729, allocations: 3.938 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.2729, allocations: 0 / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.401e-05/0.273, allocations: 4 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.273, allocations: 0 / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.401e-05/0.273, allocations: 288 / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-06/0.273, allocations: 0 / 1.055 GB, free: 5.738 MB / 0.8106 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.617e-05/0.2731, allocations: 113.9 kB / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.948e-06/0.2731, allocations: 0 / 1.055 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.594e-05/0.2732, allocations: 56.62 kB / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2732, allocations: 0 / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2732, allocations: 0 / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.2732, allocations: 0 / 1.055 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.374e-05/0.2733, allocations: 153.7 kB / 1.055 GB, free: 5.359 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.2733, allocations: 4 kB / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.123e-05/0.2734, allocations: 0 / 1.055 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.2734, allocations: 8.031 kB / 1.055 GB, free: 5.348 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.2734, allocations: 3.938 kB / 1.055 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.2734, allocations: 0 / 1.055 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2734, allocations: 0 / 1.055 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.075e-05/0.2735, allocations: 65.06 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.972e-05/0.2735, allocations: 77.11 kB / 1.056 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.2735, allocations: 7.938 kB / 1.056 GB, free: 5.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.555e-05/0.2735, allocations: 4.031 kB / 1.056 GB, free: 5.156 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.749e-05/0.2736, allocations: 3.984 kB / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-06/0.2736, allocations: 0 / 1.056 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.039e-05/0.2736, allocations: 79.22 kB / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.423e-06/0.2736, allocations: 0 / 1.056 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000226/0.2738, allocations: 7.938 kB / 1.056 GB, free: 5.066 MB / 0.8106 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.0003401/0.2742, allocations: 0.6143 MB / 1.056 GB, free: 4.422 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.432e-05/0.2743, allocations: 8 kB / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2743, allocations: 0 / 1.056 GB, free: 4.414 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.49e-05/0.2743, allocations: 7.984 kB / 1.056 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.2744, allocations: 9.656 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003016/0.2748, allocations: 114.6 kB / 1.056 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001836/0.2749, allocations: 0.6769 MB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.419e-05/0.275, allocations: 4 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.055e-05/0.275, allocations: 11.44 kB / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of SimCode: time 1.453e-06/0.275, allocations: 0 / 1.057 GB, free: 3.527 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01533/0.2903, allocations: 1.035 MB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.895/7.185, allocations: 15.47 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches