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.001399/0.001399, 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.001569/0.001569, allocations: 194.5 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.33/1.33, 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.371/2.371, allocations: 390.3 MB / 0.6647 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 59.91 kB / 0.8127 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.625/0.6264, allocations: 140.4 MB / 0.9497 GB, free: 9.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001729/0.6282, allocations: 0.5811 MB / 0.9503 GB, free: 8.609 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002238/0.6284, allocations: 42.83 kB / 0.9503 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.529e-05/0.6284, allocations: 1.375 kB / 0.9503 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.082e-05/0.6284, allocations: 0 / 0.9503 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.179e-06/0.6285, allocations: 0 / 0.9503 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.6287, allocations: 19.81 kB / 0.9504 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.055e-05/0.6287, allocations: 2.469 kB / 0.9504 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.222e-05/0.6288, allocations: 1.344 kB / 0.9504 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.542e-05/0.6288, allocations: 1.25 kB / 0.9504 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.092e-05/0.6288, allocations: 9.219 kB / 0.9504 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.578e-06/0.6288, allocations: 0 / 0.9504 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.979e-05/0.6289, allocations: 16.77 kB / 0.9504 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.157e-06/0.6289, allocations: 0 / 0.9504 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.942e-05/0.6289, allocations: 5.297 kB / 0.9504 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.348e-05/0.629, allocations: 11.14 kB / 0.9504 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.629, allocations: 1.125 kB / 0.9504 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.62e-07/0.629, allocations: 0 / 0.9504 GB, free: 8.531 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.629, allocations: 0 / 0.9504 GB, free: 8.531 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.0002124/0.6293, allocations: 308.7 kB / 0.9507 GB, free: 8.184 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.6293, allocations: 13 kB / 0.9507 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.486e-05/0.6293, allocations: 32.09 kB / 0.9507 GB, free: 8.141 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.075e-05/0.6294, allocations: 4.875 kB / 0.9507 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.206e-05/0.6294, allocations: 169.5 kB / 0.9509 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.644e-06/0.6294, allocations: 384 / 0.9509 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.377e-06/0.6294, allocations: 1.688 kB / 0.9509 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.495e-05/0.6295, allocations: 32.77 kB / 0.9509 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.6295, allocations: 5.312 kB / 0.9509 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.193e-06/0.6296, allocations: 0 / 0.9509 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.6296, allocations: 4 kB / 0.951 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.186e-05/0.6296, allocations: 7.641 kB / 0.951 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.424e-05/0.6297, allocations: 147.9 kB / 0.9511 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.065e-05/0.6297, allocations: 26.92 kB / 0.9511 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.798e-05/0.6298, allocations: 15.3 kB / 0.9511 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000129/0.6299, allocations: 83.64 kB / 0.9512 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.279e-05/0.6299, allocations: 39.91 kB / 0.9513 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.6299, allocations: 0 / 0.9513 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001212/0.6301, allocations: 46.38 kB / 0.9513 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.911e-05/0.6301, allocations: 52.81 kB / 0.9514 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.608e-05/0.6301, allocations: 93.86 kB / 0.9514 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.851e-06/0.6301, allocations: 25.7 kB / 0.9515 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.735e-06/0.6301, allocations: 81.58 kB / 0.9515 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.599e-05/0.6301, allocations: 0 / 0.9515 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.254e-05/0.6302, allocations: 16.34 kB / 0.9516 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.895e-05/0.6302, allocations: 320.2 kB / 0.9519 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.102e-05/0.6302, allocations: 5.047 kB / 0.9519 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.134e-06/0.6302, allocations: 2.438 kB / 0.9519 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.83e-05/0.6303, allocations: 10.14 kB / 0.9519 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.6303, allocations: 0 / 0.9519 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.937e-05/0.6303, allocations: 38.36 kB / 0.9519 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.6304, allocations: 9.484 kB / 0.9519 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.6304, allocations: 4.031 kB / 0.9519 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.6304, allocations: 4 kB / 0.9519 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.005e-05/0.6304, allocations: 2.656 kB / 0.9519 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.6305, allocations: 5.375 kB / 0.9519 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.368e-05/0.6305, allocations: 2.25 kB / 0.9519 GB, free: 6.781 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.6305, allocations: 1.438 kB / 0.9519 GB, free: 6.781 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 4.486e-05/0.6305, allocations: 107.2 kB / 0.952 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.535e-06/0.6305, allocations: 7.938 kB / 0.9521 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.325e-05/0.6306, allocations: 48.38 kB / 0.9521 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.6306, allocations: 1.375 kB / 0.9521 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.6306, allocations: 0 / 0.9521 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.6306, allocations: 0 / 0.9521 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.798e-05/0.6307, allocations: 151.8 kB / 0.9522 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.6307, allocations: 0 / 0.9522 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.09e-05/0.6307, allocations: 3 kB / 0.9523 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.6307, allocations: 1.125 kB / 0.9523 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.6307, allocations: 3.938 kB / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.6307, allocations: 1.062 kB / 0.9523 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.6307, allocations: 3.938 kB / 0.9523 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.602e-05/0.6308, allocations: 70.56 kB / 0.9523 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.413e-05/0.6308, allocations: 77.11 kB / 0.9524 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.067e-05/0.6308, allocations: 5.781 kB / 0.9524 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.037e-05/0.6309, allocations: 0 / 0.9524 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.736e-05/0.6309, allocations: 9.516 kB / 0.9524 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-06/0.6309, allocations: 4 kB / 0.9524 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.111e-05/0.6309, allocations: 76.62 kB / 0.9525 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6309, allocations: 4.031 kB / 0.9525 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001925/0.6311, allocations: 3.906 kB / 0.9525 GB, free: 6.145 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.0002418/0.6314, allocations: 0.6072 MB / 0.9531 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 7.197e-05/0.6314, allocations: 7.25 kB / 0.9531 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.6315, allocations: 4.094 kB / 0.9531 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.777e-05/0.6315, allocations: 11.98 kB / 0.9531 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001263/0.6316, allocations: 2.406 kB / 0.9531 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002408/0.6319, allocations: 113 kB / 0.9532 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.324e-05/0.632, allocations: 0.6779 MB / 0.9539 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.288e-05/0.632, allocations: 1.188 kB / 0.9539 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.755e-05/0.632, allocations: 9.875 kB / 0.9539 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of SimCode: time 9.82e-07/0.632, allocations: 0 / 0.9539 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01682/0.6488, allocations: 1.055 MB / 0.9549 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.116/7.765, allocations: 3 kB / 0.9549 GB, free: 4.043 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 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.csv","/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