Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.Factorial.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.0007969/0.0007969, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0008501/0.0008501, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9195/0.9195, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.681/1.681, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 0.9505 GB, free: 3.504 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.601e-05/1.741e-05, allocations: 5.234 kB / 0.9505 GB, free: 3.5 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001766/0.001784, allocations: 1.543 MB / 0.952 GB, free: 1.941 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.0002917/0.002075, allocations: 115.7 kB / 0.9521 GB, free: 1.828 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.13e-05/0.002106, allocations: 0 / 0.9521 GB, free: 1.828 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 2.605e-05/0.002133, allocations: 0 / 0.9521 GB, free: 1.828 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 4.106e-05/0.002174, allocations: 15.86 kB / 0.9521 GB, free: 1.812 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002425/0.002416, allocations: 27.91 kB / 0.9522 GB, free: 1.785 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 6.839e-05/0.002484, allocations: 27.92 kB / 0.9522 GB, free: 1.758 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 9.394e-05/0.002578, allocations: 8 kB / 0.9522 GB, free: 1.75 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 5.032e-05/0.002629, allocations: 15.97 kB / 0.9522 GB, free: 1.734 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 4.24e-05/0.002671, allocations: 19.92 kB / 0.9522 GB, free: 1.715 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.002684, allocations: 0 / 0.9522 GB, free: 1.715 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 5.918e-05/0.002744, allocations: 11.98 kB / 0.9522 GB, free: 1.703 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 1.243e-05/0.002756, allocations: 4 kB / 0.9522 GB, free: 1.699 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 1.892e-05/0.002775, allocations: 8 kB / 0.9522 GB, free: 1.691 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.002887, allocations: 47.75 kB / 0.9523 GB, free: 1.645 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.002889, allocations: 4 kB / 0.9523 GB, free: 1.641 MB / 0.9011 GB Notification: Performance of FrontEnd: time 9.22e-07/0.00289, allocations: 4 kB / 0.9523 GB, free: 1.637 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.136e-06/0.002893, allocations: 0 / 0.9523 GB, free: 1.637 MB / 0.9011 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.0003308/0.003224, allocations: 266.3 kB / 0.9526 GB, free: 1.344 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.003259, allocations: 11.97 kB / 0.9526 GB, free: 1.332 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.878e-05/0.003287, allocations: 30.75 kB / 0.9526 GB, free: 1.293 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.115e-05/0.003309, allocations: 8.891 kB / 0.9526 GB, free: 1.285 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.831e-05/0.003377, allocations: 105.7 kB / 0.9527 GB, free: 1.156 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.003398, allocations: 8.375 kB / 0.9527 GB, free: 1.148 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.614e-06/0.003405, allocations: 4.375 kB / 0.9527 GB, free: 1.145 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.003527, allocations: 62.22 kB / 0.9528 GB, free: 1.078 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.003534, allocations: 192 / 0.9528 GB, free: 1.078 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.386e-06/0.003542, allocations: 4.375 kB / 0.9528 GB, free: 1.074 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.003548, allocations: 4.125 kB / 0.9528 GB, free: 1.07 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.906e-05/0.003647, allocations: 43.89 kB / 0.9528 GB, free: 1.027 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000281/0.003928, allocations: 224.1 kB / 0.953 GB, free: 0.7656 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002157/0.004143, allocations: 62.53 kB / 0.9531 GB, free: 0.6953 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.056e-05/0.004194, allocations: 24.91 kB / 0.9531 GB, free: 0.668 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 8.007e-05/0.004274, allocations: 11.92 kB / 0.9531 GB, free: 0.6562 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.004291, allocations: 34.5 kB / 0.9532 GB, free: 0.6133 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.004292, allocations: 0 / 0.9532 GB, free: 0.6133 MB / 0.9011 GB Notification: Performance of matching and sorting (n=3): time 0.0002356/0.004528, allocations: 89.59 kB / 0.9533 GB, free: 0.5195 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.064e-05/0.004558, allocations: 59.39 kB / 0.9533 GB, free: 460 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.61e-05/0.004614, allocations: 102.2 kB / 0.9534 GB, free: 348 kB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.004625, allocations: 25.7 kB / 0.9534 GB, free: 316 kB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 4.027e-05/0.004665, allocations: 88.08 kB / 0.9535 GB, free: 224 kB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 1.42e-05/0.004679, allocations: 7.938 kB / 0.9535 GB, free: 216 kB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.652e-05/0.004706, allocations: 17.72 kB / 0.9535 GB, free: 192 kB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 8.956e-05/0.004795, allocations: 314.8 kB / 0.9538 GB, free: 15.87 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.726e-05/0.004843, allocations: 19.97 kB / 0.9539 GB, free: 15.85 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.334e-05/0.004886, allocations: 19.92 kB / 0.9539 GB, free: 15.83 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.249e-05/0.004978, allocations: 56.94 kB / 0.9539 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.00498, allocations: 0 / 0.9539 GB, free: 15.77 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001129/0.005093, allocations: 73.59 kB / 0.954 GB, free: 15.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.005107, allocations: 10.34 kB / 0.954 GB, free: 15.69 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.005111, allocations: 0 / 0.954 GB, free: 15.69 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.659e-06/0.00512, allocations: 0 / 0.954 GB, free: 15.69 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.288e-05/0.005163, allocations: 11.98 kB / 0.954 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.005167, allocations: 0 / 0.954 GB, free: 15.68 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.707e-05/0.005194, allocations: 15.94 kB / 0.954 GB, free: 15.66 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.838e-06/0.005198, allocations: 0 / 0.954 GB, free: 15.66 MB / 0.9167 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.5e-05/0.005253, allocations: 117.8 kB / 0.9542 GB, free: 15.54 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.005266, allocations: 3.938 kB / 0.9542 GB, free: 15.53 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001447/0.005411, allocations: 77.33 kB / 0.9542 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.005413, allocations: 4 kB / 0.9542 GB, free: 15.44 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.005416, allocations: 0 / 0.9542 GB, free: 15.44 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.005419, allocations: 3.938 kB / 0.9542 GB, free: 15.44 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.968e-05/0.005519, allocations: 132.8 kB / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.00552, allocations: 0 / 0.9544 GB, free: 15.27 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.09e-05/0.005551, allocations: 15.92 kB / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.005552, allocations: 0 / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.005563, allocations: 4 kB / 0.9544 GB, free: 15.25 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.005564, allocations: 3.984 kB / 0.9544 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.005566, allocations: 4 kB / 0.9544 GB, free: 15.24 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.005702, allocations: 168.1 kB / 0.9546 GB, free: 15.06 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.969e-06/0.005712, allocations: 19.83 kB / 0.9546 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.295e-06/0.005721, allocations: 0 / 0.9546 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.004e-05/0.005761, allocations: 7.984 kB / 0.9546 GB, free: 15.03 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.0058, allocations: 3.984 kB / 0.9546 GB, free: 15.03 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.005803, allocations: 4 kB / 0.9546 GB, free: 15.02 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.405e-05/0.005827, allocations: 79.28 kB / 0.9547 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of sort global known variables: time 5e-08/0.005827, allocations: 7.938 kB / 0.9547 GB, free: 14.94 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001505/0.005978, allocations: 4 kB / 0.9547 GB, free: 14.93 MB / 0.9167 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.000373/0.006351, allocations: 0.7126 MB / 0.9554 GB, free: 14.19 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001356/0.006486, allocations: 47.98 kB / 0.9554 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.006489, allocations: 0 / 0.9554 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 5.476e-05/0.006543, allocations: 23.97 kB / 0.9554 GB, free: 14.12 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001943/0.006738, allocations: 4 kB / 0.9554 GB, free: 14.12 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003541/0.007092, allocations: 152.9 kB / 0.9556 GB, free: 13.93 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.859e-05/0.00714, allocations: 71.28 kB / 0.9557 GB, free: 13.84 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 2.067e-05/0.007161, allocations: 0 / 0.9557 GB, free: 13.84 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.48e-05/0.007196, allocations: 16.5 kB / 0.9557 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of SimCode: time 7.62e-07/0.007197, allocations: 0 / 0.9557 GB, free: 13.82 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01465/0.02184, allocations: 2.259 MB / 0.9579 GB, free: 11.7 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.938/6.96, allocations: 3.938 kB / 0.9579 GB, free: 11.7 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 Buildings_11_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable fac.y in file Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.csv. Warning: Get data of variable fac.y from file Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 11.0910259867087]