Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 111 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002166/0.002166, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.547/1.547, allocations: 230.6 MB / 252.8 MB, free: 8.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.253/3.253, allocations: 0.49 GB / 0.7916 GB, free: 33.3 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 74.45 kB / 1.149 GB, free: 26.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3669, allocations: 176.1 MB / 1.321 GB, free: 3.324 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.002101/0.369, allocations: 0.5895 MB / 1.321 GB, free: 2.742 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003027/0.3693, allocations: 63.77 kB / 1.321 GB, free: 2.68 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.893e-05/0.3694, allocations: 0 / 1.321 GB, free: 2.68 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.81e-05/0.3694, allocations: 0 / 1.321 GB, free: 2.68 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.3694, allocations: 0 / 1.321 GB, free: 2.68 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002968/0.3697, allocations: 23.92 kB / 1.322 GB, free: 2.656 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.3698, allocations: 31.95 kB / 1.322 GB, free: 2.625 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.375e-05/0.3698, allocations: 4 kB / 1.322 GB, free: 2.621 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.032e-05/0.3699, allocations: 4 kB / 1.322 GB, free: 2.617 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 3.638e-05/0.3699, allocations: 19.97 kB / 1.322 GB, free: 2.598 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.25e-05/0.3699, allocations: 4 kB / 1.322 GB, free: 2.594 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.643e-05/0.37, allocations: 15.98 kB / 1.322 GB, free: 2.578 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 3.68e-05/0.37, allocations: 15.94 kB / 1.322 GB, free: 2.562 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.968e-05/0.3701, allocations: 7.938 kB / 1.322 GB, free: 2.555 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001287/0.3702, allocations: 40.09 kB / 1.322 GB, free: 2.516 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3702, allocations: 0 / 1.322 GB, free: 2.516 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.974e-06/0.3702, allocations: 0 / 1.322 GB, free: 2.516 MB / 1.014 GB Notification: Performance of Transformations before backend: time 7.183e-06/0.3702, allocations: 0 / 1.322 GB, free: 2.516 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004154/0.3706, allocations: 339.4 kB / 1.322 GB, free: 2.133 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.3707, allocations: 15.98 kB / 1.322 GB, free: 2.117 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.964e-05/0.3707, allocations: 34.75 kB / 1.322 GB, free: 2.074 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.3708, allocations: 8.922 kB / 1.322 GB, free: 2.066 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.3709, allocations: 164.4 kB / 1.322 GB, free: 1.867 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.3709, allocations: 4.312 kB / 1.322 GB, free: 1.863 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.01e-05/0.3709, allocations: 4.375 kB / 1.322 GB, free: 1.859 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001648/0.3711, allocations: 62.23 kB / 1.322 GB, free: 1.793 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.3711, allocations: 3.938 kB / 1.322 GB, free: 1.789 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.3711, allocations: 4 kB / 1.322 GB, free: 1.785 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.3711, allocations: 3.938 kB / 1.322 GB, free: 1.781 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.3713, allocations: 103.9 kB / 1.322 GB, free: 1.68 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002125/0.3715, allocations: 185.5 kB / 1.323 GB, free: 1.449 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.3716, allocations: 66.89 kB / 1.323 GB, free: 1.375 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.366e-05/0.3717, allocations: 28.84 kB / 1.323 GB, free: 1.344 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003896/0.3721, allocations: 397.5 kB / 1.323 GB, free: 0.8633 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.3721, allocations: 38.48 kB / 1.323 GB, free: 0.8164 MB / 1.014 GB Notification: Performance of pre-optimization done (n=11): time 1.092e-06/0.3721, allocations: 4 kB / 1.323 GB, free: 0.8125 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.0002874/0.3724, allocations: 121.8 kB / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.3724, allocations: 55.41 kB / 1.323 GB, free: 0.6211 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.134e-05/0.3725, allocations: 93.86 kB / 1.323 GB, free: 0.5195 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.3725, allocations: 25.7 kB / 1.323 GB, free: 500 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 3.071e-05/0.3725, allocations: 80.14 kB / 1.323 GB, free: 416 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.3726, allocations: 27.78 kB / 1.323 GB, free: 388 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.548e-05/0.3726, allocations: 29.72 kB / 1.323 GB, free: 352 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.3727, allocations: 318.8 kB / 1.324 GB, free: 24 kB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.258e-05/0.3728, allocations: 23.98 kB / 1.324 GB, free: 0 / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.769e-05/0.3728, allocations: 23.98 kB / 1.324 GB, free: 15.98 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.3729, allocations: 64.83 kB / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.373, allocations: 0 / 1.324 GB, free: 15.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001505/0.3731, allocations: 89.56 kB / 1.324 GB, free: 15.82 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.3731, allocations: 11.94 kB / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3731, allocations: 0 / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.3731, allocations: 0 / 1.324 GB, free: 15.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.3732, allocations: 23.92 kB / 1.324 GB, free: 15.78 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.3733, allocations: 0 / 1.324 GB, free: 15.78 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.634e-05/0.3733, allocations: 11.94 kB / 1.324 GB, free: 15.77 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.3733, allocations: 4 kB / 1.324 GB, free: 15.77 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001357/0.3734, allocations: 121.8 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.3734, allocations: 7.891 kB / 1.324 GB, free: 15.63 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.3737, allocations: 125.5 kB / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.3737, allocations: 0 / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3737, allocations: 0 / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3737, allocations: 0 / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001565/0.3739, allocations: 185.6 kB / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3739, allocations: 0 / 1.324 GB, free: 15.26 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.308e-05/0.3739, allocations: 19.98 kB / 1.324 GB, free: 15.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.3739, allocations: 3.938 kB / 1.324 GB, free: 15.24 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.3739, allocations: 4 kB / 1.324 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3739, allocations: 0 / 1.324 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3739, allocations: 0 / 1.324 GB, free: 15.23 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001819/0.3741, allocations: 125.8 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.367e-05/0.3742, allocations: 96.92 kB / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.3742, allocations: 0 / 1.325 GB, free: 14.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.686e-05/0.3742, allocations: 8 kB / 1.325 GB, free: 14.97 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.724e-05/0.3742, allocations: 7.984 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.3743, allocations: 0 / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of sorting global known variables: time 3.811e-05/0.3743, allocations: 79.28 kB / 1.325 GB, free: 14.89 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3743, allocations: 3.938 kB / 1.325 GB, free: 14.88 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00021/0.3745, allocations: 12 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0005787/0.3751, allocations: 0.682 MB / 1.325 GB, free: 14.16 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001499/0.3752, allocations: 55.97 kB / 1.325 GB, free: 14.11 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3752, allocations: 0 / 1.325 GB, free: 14.11 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.596e-05/0.3753, allocations: 31.92 kB / 1.326 GB, free: 14.08 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001381/0.3754, allocations: 9.719 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004439/0.3759, allocations: 186.4 kB / 1.326 GB, free: 13.85 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.3762, allocations: 0.6845 MB / 1.326 GB, free: 13.14 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.964e-05/0.3763, allocations: 35.94 kB / 1.326 GB, free: 13.1 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.281e-05/0.3763, allocations: 23.42 kB / 1.326 GB, free: 13.08 MB / 1.029 GB Notification: Performance of SimCode: time 3.91e-07/0.3763, allocations: 0 / 1.326 GB, free: 13.08 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.4014, allocations: 1.568 MB / 1.328 GB, free: 11.62 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.056/8.458, allocations: 11.91 kB / 1.328 GB, free: 11.61 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv --start-time 0 --stop-time 13.9 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00556 Buildings_12_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable falFac[6] in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[6] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! Error: Could not read variable falFac[7] in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[7] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! Error: Could not read variable falFac[8] in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[8] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! Error: Could not read variable falFac[9] in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[9] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! Error: Could not read variable falFac[10] in file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv. Warning: Get data of variable falFac[10] from file Buildings_12_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.488432110985741]