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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 110.4 kB / 17.54 MB, free: 4.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 189.9 kB / 20.71 MB, free: 1.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 225.6 MB / 249.3 MB, free: 3.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.537/2.537, allocations: 476.7 MB / 0.7628 GB, free: 15.11 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_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 0.001913/0.001913, allocations: 63.91 kB / 1.107 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7469/0.7488, allocations: 168.7 MB / 1.271 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002171/0.751, allocations: 1.54 MB / 1.273 GB, free: 6.664 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0003002/0.7513, allocations: 121.7 kB / 1.273 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.499e-05/0.7513, allocations: 1.125 kB / 1.273 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.559e-05/0.7513, allocations: 4.453 kB / 1.273 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.433e-05/0.7514, allocations: 6.266 kB / 1.273 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001901/0.7516, allocations: 27.56 kB / 1.273 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.11e-05/0.7516, allocations: 31.86 kB / 1.273 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.298e-05/0.7517, allocations: 13.73 kB / 1.273 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.522e-05/0.7517, allocations: 8.406 kB / 1.273 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.417e-05/0.7518, allocations: 21.09 kB / 1.273 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.7518, allocations: 2.5 kB / 1.273 GB, free: 6.527 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.42e-05/0.7519, allocations: 12.98 kB / 1.273 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.274e-05/0.7519, allocations: 10.64 kB / 1.273 GB, free: 6.516 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.125e-05/0.7519, allocations: 11.97 kB / 1.273 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001006/0.752, allocations: 36.42 kB / 1.273 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.752, allocations: 0.6562 kB / 1.273 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.752, allocations: 4.812 kB / 1.273 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.228e-06/0.752, allocations: 0.5625 kB / 1.273 GB, free: 6.488 MB / 0.9981 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.000349/0.7524, allocations: 344.7 kB / 1.274 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.7524, allocations: 8.781 kB / 1.274 GB, free: 6.125 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.576e-05/0.7524, allocations: 40.75 kB / 1.274 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.325e-05/0.7524, allocations: 3.234 kB / 1.274 GB, free: 6.078 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.331e-05/0.7525, allocations: 166.5 kB / 1.274 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.7525, allocations: 2.062 kB / 1.274 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.159e-05/0.7525, allocations: 2 kB / 1.274 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.7527, allocations: 63.73 kB / 1.274 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.7527, allocations: 3.938 kB / 1.274 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.276e-06/0.7527, allocations: 0 / 1.274 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.7527, allocations: 0.8438 kB / 1.274 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.7529, allocations: 38.12 kB / 1.274 GB, free: 5.828 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002639/0.7532, allocations: 280.1 kB / 1.274 GB, free: 5.531 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002946/0.7535, allocations: 52.77 kB / 1.274 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.183e-05/0.7536, allocations: 25.64 kB / 1.274 GB, free: 5.492 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.819e-05/0.7536, allocations: 80.86 kB / 1.274 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.085e-05/0.7536, allocations: 36.12 kB / 1.274 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.7536, allocations: 4.656 kB / 1.274 GB, free: 5.352 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0003509/0.754, allocations: 92.8 kB / 1.274 GB, free: 5.309 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.648e-05/0.754, allocations: 52.34 kB / 1.274 GB, free: 5.246 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.329e-05/0.7541, allocations: 101.7 kB / 1.275 GB, free: 5.145 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.113e-06/0.7541, allocations: 25.7 kB / 1.275 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.099e-05/0.7541, allocations: 82.77 kB / 1.275 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.284e-05/0.7541, allocations: 11.89 kB / 1.275 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.7541, allocations: 16.97 kB / 1.275 GB, free: 5.004 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.39e-05/0.7542, allocations: 320.4 kB / 1.275 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.506e-05/0.7542, allocations: 15.69 kB / 1.275 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.599e-05/0.7543, allocations: 24.81 kB / 1.275 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.7545, allocations: 53.97 kB / 1.275 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.7545, allocations: 4 kB / 1.275 GB, free: 4.648 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000194/0.7547, allocations: 77.67 kB / 1.275 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.7547, allocations: 5.609 kB / 1.275 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.7547, allocations: 1.125 kB / 1.275 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.7547, allocations: 0 / 1.275 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.445e-05/0.7548, allocations: 11.17 kB / 1.275 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.7548, allocations: 0.7812 kB / 1.275 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.163e-05/0.7548, allocations: 5.906 kB / 1.275 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-06/0.7548, allocations: 8.047 kB / 1.275 GB, free: 4.602 MB / 0.9981 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 4.228e-05/0.7549, allocations: 115.5 kB / 1.275 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.7549, allocations: 1.656 kB / 1.275 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002333/0.7551, allocations: 85.52 kB / 1.275 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.7551, allocations: 0.9375 kB / 1.275 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.7551, allocations: 1.688 kB / 1.275 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.7551, allocations: 0.625 kB / 1.275 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000101/0.7552, allocations: 166.3 kB / 1.276 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.7552, allocations: 0.875 kB / 1.276 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.034e-05/0.7553, allocations: 15.02 kB / 1.276 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.7553, allocations: 0.9375 kB / 1.276 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.7553, allocations: 0.5625 kB / 1.276 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.7553, allocations: 0.5938 kB / 1.276 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.7553, allocations: 0.6562 kB / 1.276 GB, free: 4.223 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002107/0.7555, allocations: 185.4 kB / 1.276 GB, free: 4.066 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.382e-05/0.7555, allocations: 79.25 kB / 1.276 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.7556, allocations: 0.8438 kB / 1.276 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-05/0.7556, allocations: 7.797 kB / 1.276 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/0.7557, allocations: 3.969 kB / 1.276 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-06/0.7557, allocations: 1.062 kB / 1.276 GB, free: 3.973 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.932e-05/0.7557, allocations: 84.11 kB / 1.276 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.7557, allocations: 0.5625 kB / 1.276 GB, free: 3.895 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002166/0.7559, allocations: 15.34 kB / 1.276 GB, free: 3.887 MB / 0.9981 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.0003719/0.7563, allocations: 0.7102 MB / 1.277 GB, free: 3.211 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002149/0.7565, allocations: 48.23 kB / 1.277 GB, free: 3.199 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.7565, allocations: 0 / 1.277 GB, free: 3.199 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.254e-05/0.7566, allocations: 24.81 kB / 1.277 GB, free: 3.195 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.7568, allocations: 10.55 kB / 1.277 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000337/0.7572, allocations: 142.7 kB / 1.277 GB, free: 3.043 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.762e-05/0.7572, allocations: 0.6761 MB / 1.277 GB, free: 2.348 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.724e-05/0.7573, allocations: 12.08 kB / 1.277 GB, free: 2.34 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/0.7573, allocations: 15.36 kB / 1.277 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of SimCode: time 4.11e-07/0.7573, allocations: 0 / 1.277 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0231/0.7804, allocations: 1.572 MB / 1.279 GB, free: 17.95 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.955/7.735, allocations: 2.109 kB / 1.279 GB, free: 17.95 MB / 1.014 GB " [Timeout remaining time 292] (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/jenkins1/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: 13.187944126002549]