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.001369/0.001369, allocations: 106.8 kB / 17.54 MB, free: 4.746 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.001126/0.001126, allocations: 185.9 kB / 20.71 MB, free: 1.586 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.274/1.274, allocations: 225.6 MB / 249.3 MB, free: 3.207 MB / 190.1 MB " [Timeout remaining time 179] 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.469/2.469, allocations: 476.7 MB / 0.7628 GB, free: 15.33 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.001826/0.001826, allocations: 75.89 kB / 1.107 GB, free: 5.203 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7731/0.7749, allocations: 168.7 MB / 1.271 GB, free: 7.734 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002149/0.777, allocations: 1.551 MB / 1.273 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002774/0.7773, allocations: 121.1 kB / 1.273 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.23e-05/0.7773, allocations: 4.906 kB / 1.273 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.028e-05/0.7774, allocations: 0.5156 kB / 1.273 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 3.26e-05/0.7774, allocations: 4.938 kB / 1.273 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00018/0.7776, allocations: 27.75 kB / 1.273 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.043e-05/0.7776, allocations: 30.83 kB / 1.273 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.707e-05/0.7777, allocations: 12.23 kB / 1.273 GB, free: 6.57 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.547e-05/0.7778, allocations: 14.95 kB / 1.273 GB, free: 6.562 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.458e-05/0.7778, allocations: 12.98 kB / 1.273 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.254e-05/0.7778, allocations: 2.531 kB / 1.273 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.357e-05/0.7779, allocations: 12.88 kB / 1.273 GB, free: 6.555 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.205e-05/0.7779, allocations: 10.92 kB / 1.273 GB, free: 6.547 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.215e-05/0.7779, allocations: 12.08 kB / 1.273 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.778, allocations: 40.86 kB / 1.273 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.778, allocations: 0 / 1.273 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.603e-06/0.778, allocations: 1.594 kB / 1.273 GB, free: 6.52 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.778, allocations: 0 / 1.273 GB, free: 6.52 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.0003447/0.7784, allocations: 344.1 kB / 1.274 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.7784, allocations: 9.156 kB / 1.274 GB, free: 6.156 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.383e-05/0.7784, allocations: 33.7 kB / 1.274 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.223e-05/0.7784, allocations: 10.45 kB / 1.274 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.614e-05/0.7785, allocations: 163.4 kB / 1.274 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.7785, allocations: 1.125 kB / 1.274 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.7785, allocations: 2.094 kB / 1.274 GB, free: 5.914 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/0.7787, allocations: 59.41 kB / 1.274 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.7787, allocations: 4.781 kB / 1.274 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-06/0.7787, allocations: 0 / 1.274 GB, free: 5.871 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.7787, allocations: 4.781 kB / 1.274 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.7789, allocations: 46.27 kB / 1.274 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002455/0.7791, allocations: 268 kB / 1.274 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000288/0.7794, allocations: 60.73 kB / 1.274 GB, free: 5.535 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.099e-05/0.7795, allocations: 24.8 kB / 1.274 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-05/0.7796, allocations: 89.52 kB / 1.274 GB, free: 5.422 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.031e-05/0.7796, allocations: 33.36 kB / 1.274 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.7796, allocations: 0 / 1.274 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0003365/0.7799, allocations: 90.69 kB / 1.274 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.901e-05/0.7799, allocations: 52.38 kB / 1.274 GB, free: 5.281 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.042e-05/0.78, allocations: 98.73 kB / 1.275 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.723e-06/0.78, allocations: 29.7 kB / 1.275 GB, free: 5.145 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.168e-05/0.78, allocations: 92.27 kB / 1.275 GB, free: 5.055 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.193e-05/0.78, allocations: 9.672 kB / 1.275 GB, free: 5.047 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.694e-05/0.7801, allocations: 18.64 kB / 1.275 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.179e-05/0.7801, allocations: 311.7 kB / 1.275 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.773e-05/0.7802, allocations: 29.03 kB / 1.275 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.752e-05/0.7802, allocations: 16.98 kB / 1.275 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001568/0.7804, allocations: 54.39 kB / 1.275 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.7804, allocations: 0 / 1.275 GB, free: 4.68 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001902/0.7806, allocations: 78.58 kB / 1.275 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.7806, allocations: 7 kB / 1.275 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.7806, allocations: 0 / 1.275 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.7806, allocations: 1.219 kB / 1.275 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.34e-05/0.7807, allocations: 14.61 kB / 1.275 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.7807, allocations: 0.9062 kB / 1.275 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.362e-05/0.7808, allocations: 6.422 kB / 1.275 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.7808, allocations: 4.969 kB / 1.275 GB, free: 4.625 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.065e-05/0.7808, allocations: 118.2 kB / 1.275 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.7808, allocations: 1.125 kB / 1.275 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002235/0.781, allocations: 82.22 kB / 1.275 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.781, allocations: 0.8125 kB / 1.275 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.7811, allocations: 0 / 1.275 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.7811, allocations: 1.094 kB / 1.275 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001023/0.7812, allocations: 163.5 kB / 1.276 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.7812, allocations: 0 / 1.276 GB, free: 4.258 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.116e-05/0.7812, allocations: 16.5 kB / 1.276 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.7812, allocations: 0.5625 kB / 1.276 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.7812, allocations: 0.9688 kB / 1.276 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.7812, allocations: 1.188 kB / 1.276 GB, free: 4.254 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.7812, allocations: 7.938 kB / 1.276 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002025/0.7814, allocations: 177.4 kB / 1.276 GB, free: 4.098 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.297e-05/0.7815, allocations: 77.98 kB / 1.276 GB, free: 4.004 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.7815, allocations: 2.391 kB / 1.276 GB, free: 4.004 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.863e-05/0.7815, allocations: 5.578 kB / 1.276 GB, free: 4.004 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.498e-05/0.7816, allocations: 8.281 kB / 1.276 GB, free: 4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.7816, allocations: 7.422 kB / 1.276 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 1.736e-05/0.7816, allocations: 78.44 kB / 1.276 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.7816, allocations: 0 / 1.276 GB, free: 3.922 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002085/0.7818, allocations: 18.2 kB / 1.276 GB, free: 3.914 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.0003713/0.7822, allocations: 0.7122 MB / 1.277 GB, free: 3.234 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002106/0.7824, allocations: 44.5 kB / 1.277 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.7824, allocations: 0 / 1.277 GB, free: 3.227 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 9.205e-05/0.7825, allocations: 25.36 kB / 1.277 GB, free: 3.223 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.7827, allocations: 9.047 kB / 1.277 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003381/0.783, allocations: 151 kB / 1.277 GB, free: 3.062 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.2e-05/0.7831, allocations: 0.6767 MB / 1.277 GB, free: 2.367 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 2.467e-05/0.7831, allocations: 3.094 kB / 1.277 GB, free: 2.367 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.073e-05/0.7832, allocations: 14.42 kB / 1.277 GB, free: 2.355 MB / 0.9981 GB Notification: Performance of SimCode: time 3.21e-07/0.7832, allocations: 1 kB / 1.277 GB, free: 2.355 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02228/0.8055, allocations: 1.568 MB / 1.279 GB, free: 17.98 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.025/7.831, allocations: 2.438 kB / 1.279 GB, free: 17.98 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] "" Variables in the reference:time,fac.y Variables in the result:fac.u,fac.y,rea2Int.u,rea2Int.y,time,x.duration,x.height,x.offset,x.startTime,x.y [Calling sys.exit(0), Time elapsed: 13.023753765000947]