Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Examples.Factorial,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_9_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.007205/0.007205, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001801/0.001801, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.129/2.129, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 64.09 kB / 0.9504 GB, free: 8.195 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6895/0.6907, allocations: 140.4 MB / 1.087 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002288/0.6931, allocations: 1.51 MB / 1.089 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003344/0.6934, allocations: 124.2 kB / 1.089 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.335e-05/0.6935, allocations: 1.156 kB / 1.089 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.611e-05/0.6935, allocations: 1.688 kB / 1.089 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.711e-05/0.6935, allocations: 4.969 kB / 1.089 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002011/0.6937, allocations: 23.41 kB / 1.089 GB, free: 4.152 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.423e-05/0.6938, allocations: 31.95 kB / 1.089 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.239e-05/0.6939, allocations: 10.42 kB / 1.089 GB, free: 4.133 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.66e-05/0.694, allocations: 14.23 kB / 1.089 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.594e-05/0.694, allocations: 16.98 kB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.694, allocations: 3.188 kB / 1.089 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 5.196e-05/0.6941, allocations: 12 kB / 1.089 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.448e-05/0.6941, allocations: 7.094 kB / 1.089 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.448e-05/0.6941, allocations: 16.31 kB / 1.089 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.6942, allocations: 38.33 kB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.6943, allocations: 1.031 kB / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.092e-06/0.6943, allocations: 0 / 1.089 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.95e-06/0.6943, allocations: 0 / 1.089 GB, free: 4.078 MB / 0.8575 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.0003602/0.6946, allocations: 346.4 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.6947, allocations: 10.58 kB / 1.09 GB, free: 3.715 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.805e-05/0.6947, allocations: 36.67 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.275e-05/0.6947, allocations: 5.875 kB / 1.09 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.211e-05/0.6948, allocations: 167.7 kB / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.832e-05/0.6948, allocations: 1.938 kB / 1.09 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.6948, allocations: 6.516 kB / 1.09 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.695, allocations: 58.84 kB / 1.09 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.695, allocations: 7.938 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.517e-06/0.6951, allocations: 1.062 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.6951, allocations: 0 / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000195/0.6953, allocations: 42.14 kB / 1.09 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002773/0.6955, allocations: 267.8 kB / 1.09 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003143/0.6959, allocations: 57.78 kB / 1.09 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.764e-05/0.696, allocations: 26.19 kB / 1.09 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.791e-05/0.6961, allocations: 81.39 kB / 1.09 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.29e-05/0.6961, allocations: 40.34 kB / 1.09 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.6961, allocations: 0 / 1.09 GB, free: 2.941 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003782/0.6965, allocations: 92.89 kB / 1.09 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.6965, allocations: 51.41 kB / 1.09 GB, free: 2.836 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.525e-05/0.6966, allocations: 102.7 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.385e-06/0.6966, allocations: 25.7 kB / 1.091 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.303e-05/0.6966, allocations: 85.67 kB / 1.091 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.351e-05/0.6966, allocations: 10.7 kB / 1.091 GB, free: 2.609 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.6967, allocations: 14.55 kB / 1.091 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 3.954e-05/0.6967, allocations: 321.1 kB / 1.091 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.38e-05/0.6968, allocations: 16.2 kB / 1.091 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.78e-05/0.6969, allocations: 24.53 kB / 1.091 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.6971, allocations: 53 kB / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.6971, allocations: 0 / 1.091 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002206/0.6973, allocations: 74.11 kB / 1.091 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.6973, allocations: 7.438 kB / 1.091 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.6974, allocations: 1.062 kB / 1.091 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.6974, allocations: 0.7969 kB / 1.091 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.323e-05/0.6975, allocations: 15.47 kB / 1.091 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.698e-06/0.6975, allocations: 0 / 1.091 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.039e-05/0.6975, allocations: 10.03 kB / 1.091 GB, free: 2.195 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.6975, allocations: 10.12 kB / 1.091 GB, free: 2.188 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 (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 5.639e-05/0.6976, allocations: 120.7 kB / 1.091 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/0.6976, allocations: 1.75 kB / 1.091 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002641/0.6979, allocations: 86.78 kB / 1.091 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.6979, allocations: 1.188 kB / 1.091 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.6979, allocations: 0 / 1.091 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.6979, allocations: 1.859 kB / 1.091 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.6981, allocations: 162.2 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.6981, allocations: 0.6562 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.652e-05/0.6981, allocations: 15.83 kB / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.6982, allocations: 0 / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.215e-06/0.6982, allocations: 1.688 kB / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.6982, allocations: 0 / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.6982, allocations: 1.609 kB / 1.092 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.6984, allocations: 175.8 kB / 1.092 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.546e-05/0.6984, allocations: 90.75 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.254e-05/0.6985, allocations: 2.031 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.698e-05/0.6986, allocations: 5.25 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.6986, allocations: 5.516 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-06/0.6986, allocations: 1.75 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.953e-05/0.6986, allocations: 83.7 kB / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.6986, allocations: 0 / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002269/0.6989, allocations: 8.578 kB / 1.092 GB, free: 1.48 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.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.0004817/0.6994, allocations: 0.7165 MB / 1.093 GB, free: 16.8 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002364/0.6996, allocations: 41.89 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.6996, allocations: 0 / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 9.978e-05/0.6997, allocations: 29.03 kB / 1.093 GB, free: 16.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.7, allocations: 7.016 kB / 1.093 GB, free: 16.78 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003861/0.7004, allocations: 142.2 kB / 1.093 GB, free: 16.63 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.7006, allocations: 0.6772 MB / 1.094 GB, free: 15.94 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.118e-05/0.7007, allocations: 10.98 kB / 1.094 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.346e-05/0.7007, allocations: 20.19 kB / 1.094 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/0.7007, allocations: 0 / 1.094 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01538/0.7161, allocations: 1.572 MB / 1.095 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.215/7.931, allocations: 8.594 kB / 1.095 GB, free: 15.51 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 Buildings_9_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches