Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_10_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.007561/0.007561, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.001827/0.001827, allocations: 190.6 kB / 16.67 MB, free: 5.93 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.456/2.456, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 67.84 kB / 1.018 GB, free: 9.887 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.92/0.9215, allocations: 151.6 MB / 1.166 GB, free: 3.785 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002563/0.9241, allocations: 1.519 MB / 1.168 GB, free: 2.254 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003661/0.9245, allocations: 128.5 kB / 1.168 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.856e-05/0.9245, allocations: 0 / 1.168 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.686e-05/0.9246, allocations: 0 / 1.168 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.643e-05/0.9246, allocations: 3.938 kB / 1.168 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002291/0.9248, allocations: 27.91 kB / 1.168 GB, free: 2.094 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 8.092e-05/0.9249, allocations: 27.97 kB / 1.168 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.925, allocations: 15.94 kB / 1.168 GB, free: 2.051 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.667e-05/0.9251, allocations: 15.92 kB / 1.168 GB, free: 2.035 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.286e-05/0.9252, allocations: 11.98 kB / 1.168 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.9252, allocations: 4 kB / 1.168 GB, free: 2.02 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.447e-05/0.9252, allocations: 15.94 kB / 1.168 GB, free: 2.004 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.815e-05/0.9253, allocations: 11.97 kB / 1.168 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.939e-05/0.9253, allocations: 11.94 kB / 1.168 GB, free: 1.98 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001205/0.9254, allocations: 35.89 kB / 1.168 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.9254, allocations: 0 / 1.168 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.964e-06/0.9255, allocations: 0 / 1.168 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.9255, allocations: 0 / 1.168 GB, free: 1.945 MB / 0.8887 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.0004542/0.9259, allocations: 345.7 kB / 1.168 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.926, allocations: 8.922 kB / 1.168 GB, free: 1.551 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.114e-05/0.926, allocations: 34.75 kB / 1.168 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.557e-05/0.926, allocations: 0.9375 kB / 1.168 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.9262, allocations: 172.3 kB / 1.168 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.9262, allocations: 4.375 kB / 1.168 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.9262, allocations: 384 / 1.168 GB, free: 1.297 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.9264, allocations: 58.17 kB / 1.169 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.9264, allocations: 7.938 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.147e-06/0.9264, allocations: 0 / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.9264, allocations: 0 / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001753/0.9266, allocations: 43.95 kB / 1.169 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003517/0.927, allocations: 268.8 kB / 1.169 GB, free: 0.8711 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.9273, allocations: 66.42 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.9274, allocations: 28.89 kB / 1.169 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001114/0.9275, allocations: 81.11 kB / 1.169 GB, free: 0.668 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.9275, allocations: 30.56 kB / 1.169 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.9276, allocations: 0 / 1.169 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of matching and sorting (n=3): time 0.0003606/0.9279, allocations: 101.6 kB / 1.169 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.928, allocations: 51.41 kB / 1.169 GB, free: 472 kB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.871e-05/0.928, allocations: 109.7 kB / 1.169 GB, free: 352 kB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.9281, allocations: 29.7 kB / 1.169 GB, free: 316 kB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.87e-05/0.9281, allocations: 80.14 kB / 1.169 GB, free: 232 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.9281, allocations: 3.906 kB / 1.169 GB, free: 228 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-05/0.9282, allocations: 21.7 kB / 1.169 GB, free: 200 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.9283, allocations: 314.8 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.762e-05/0.9284, allocations: 19.98 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.808e-05/0.9285, allocations: 23.97 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.9286, allocations: 40.77 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.9286, allocations: 0 / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002089/0.9288, allocations: 85.55 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.9289, allocations: 4 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.9289, allocations: 4 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.9289, allocations: 0 / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.124e-05/0.929, allocations: 15.92 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.929, allocations: 0 / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.749e-05/0.9291, allocations: 4 kB / 1.17 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.9291, allocations: 7.984 kB / 1.17 GB, free: 15.67 MB / 0.9044 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 7.415e-05/0.9292, allocations: 117.8 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.9292, allocations: 4 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002582/0.9294, allocations: 77.14 kB / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.9295, allocations: 0 / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.9295, allocations: 0 / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.9295, allocations: 0 / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001533/0.9296, allocations: 169.6 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.9296, allocations: 0 / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-05/0.9297, allocations: 19.92 kB / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.9297, allocations: 0 / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.9297, allocations: 0 / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.9298, allocations: 0 / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.9298, allocations: 0 / 1.17 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002364/0.93, allocations: 172 kB / 1.17 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.681e-05/0.93, allocations: 88.95 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.9301, allocations: 4 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.304e-05/0.9302, allocations: 15.92 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.523e-05/0.9302, allocations: 3.938 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.9302, allocations: 4 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.554e-05/0.9303, allocations: 87.3 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9303, allocations: 4 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002231/0.9305, allocations: 4 kB / 1.171 GB, free: 14.81 MB / 0.9044 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.0005145/0.931, allocations: 0.7141 MB / 1.171 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002177/0.9312, allocations: 43.95 kB / 1.171 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.9313, allocations: 0 / 1.171 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.921e-05/0.9314, allocations: 31.92 kB / 1.171 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.9316, allocations: 3.984 kB / 1.171 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004075/0.9321, allocations: 143.1 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.9323, allocations: 0.6845 MB / 1.172 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.706e-05/0.9323, allocations: 0 / 1.172 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.283e-05/0.9324, allocations: 19.42 kB / 1.172 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/0.9324, allocations: 4 kB / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01648/0.9488, allocations: 1.581 MB / 1.174 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.8/8.749, allocations: 0 / 1.174 GB, free: 11.57 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,fac.y Variables in the result:fac.u,fac.y,rea2Int.u,rea2Int.y,time,x.duration,x.height,x.offset,x.startTime,x.y