Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001157/0.001157, allocations: 81.05 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001729/0.002886, allocations: 449.8 kB / 10.44 MB, free: 248 kB / 10.45 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.001099/0.001099, allocations: 161.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0014/0.002499, allocations: 479.5 kB / 11.82 MB, free: 2.34 MB / 13.93 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.005/1.005, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09591/1.101, allocations: 53.67 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.86/1.86, allocations: 378.4 MB / 0.6079 GB, free: 7.707 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4899/2.35, allocations: 123.3 MB / 0.7283 GB, free: 5.77 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 0.7297 GB, free: 4.438 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.935e-05/2.059e-05, allocations: 2.312 kB / 0.7297 GB, free: 4.434 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.00238/0.002401, allocations: 1.631 MB / 0.7313 GB, free: 2.82 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0001776/0.002578, allocations: 124.8 kB / 0.7314 GB, free: 2.699 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.517e-05/0.002613, allocations: 0 / 0.7314 GB, free: 2.699 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.17e-05/0.002635, allocations: 5.938 kB / 0.7314 GB, free: 2.695 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 2.227e-05/0.002657, allocations: 1.422 kB / 0.7314 GB, free: 2.695 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001181/0.002775, allocations: 31.84 kB / 0.7314 GB, free: 2.664 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 6.609e-05/0.002841, allocations: 29.34 kB / 0.7314 GB, free: 2.641 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 7.865e-05/0.00292, allocations: 8 kB / 0.7315 GB, free: 2.633 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 6.414e-05/0.002984, allocations: 20.38 kB / 0.7315 GB, free: 2.617 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 5.197e-05/0.003036, allocations: 21.39 kB / 0.7315 GB, free: 2.598 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.399e-05/0.00305, allocations: 0 / 0.7315 GB, free: 2.598 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 7.661e-05/0.003127, allocations: 11.98 kB / 0.7315 GB, free: 2.586 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 1.545e-05/0.003142, allocations: 4.984 kB / 0.7315 GB, free: 2.582 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 1.604e-05/0.003158, allocations: 9.859 kB / 0.7315 GB, free: 2.574 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 9.882e-05/0.003257, allocations: 26.22 kB / 0.7315 GB, free: 2.551 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.059e-05/0.003268, allocations: 0.5 kB / 0.7315 GB, free: 2.551 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.002e-06/0.003269, allocations: 0 / 0.7315 GB, free: 2.551 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.003279, allocations: 1.406 kB / 0.7315 GB, free: 2.551 MB / 0.698 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.0003293/0.003608, allocations: 241.5 kB / 0.7318 GB, free: 2.289 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.003639, allocations: 8.031 kB / 0.7318 GB, free: 2.281 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.659e-05/0.003666, allocations: 5.562 kB / 0.7318 GB, free: 2.277 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.838e-05/0.003744, allocations: 117.7 kB / 0.7319 GB, free: 2.137 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.003765, allocations: 8.828 kB / 0.7319 GB, free: 2.129 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.003776, allocations: 5.312 kB / 0.7319 GB, free: 2.125 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.003885, allocations: 58.94 kB / 0.732 GB, free: 2.059 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.601e-06/0.003891, allocations: 1.062 kB / 0.732 GB, free: 2.059 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.102e-06/0.003897, allocations: 0.9219 kB / 0.732 GB, free: 2.059 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.003901, allocations: 1.812 kB / 0.732 GB, free: 2.059 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.356e-05/0.003924, allocations: 15.94 kB / 0.732 GB, free: 2.043 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000205/0.004129, allocations: 156.3 kB / 0.7321 GB, free: 1.875 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001322/0.004261, allocations: 35.16 kB / 0.7322 GB, free: 1.832 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.669e-05/0.004278, allocations: 14.7 kB / 0.7322 GB, free: 1.816 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.767e-05/0.004336, allocations: 4 kB / 0.7322 GB, free: 1.812 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.004359, allocations: 40.28 kB / 0.7322 GB, free: 1.766 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.00436, allocations: 0 / 0.7322 GB, free: 1.766 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0001048/0.004465, allocations: 49.61 kB / 0.7323 GB, free: 1.711 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.004498, allocations: 55.34 kB / 0.7323 GB, free: 1.645 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.452e-05/0.004542, allocations: 103.5 kB / 0.7324 GB, free: 1.531 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.147e-06/0.004552, allocations: 25.7 kB / 0.7324 GB, free: 1.5 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.004712, allocations: 92.75 kB / 0.7325 GB, free: 1.406 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.492e-05/0.004727, allocations: 8.438 kB / 0.7325 GB, free: 1.398 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-05/0.004751, allocations: 14.38 kB / 0.7326 GB, free: 1.379 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.49e-05/0.004816, allocations: 314.8 kB / 0.7329 GB, free: 1.062 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.088e-05/0.004827, allocations: 5.125 kB / 0.7329 GB, free: 1.059 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.787e-06/0.004836, allocations: 3.984 kB / 0.7329 GB, free: 1.055 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.412e-05/0.00486, allocations: 14.83 kB / 0.7329 GB, free: 1.039 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.004862, allocations: 0 / 0.7329 GB, free: 1.039 MB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 4.823e-05/0.00491, allocations: 46.25 kB / 0.7329 GB, free: 0.9883 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.004921, allocations: 4 kB / 0.7329 GB, free: 0.9844 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.004927, allocations: 8.656 kB / 0.7329 GB, free: 0.9766 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.879e-06/0.004936, allocations: 3.938 kB / 0.7329 GB, free: 0.9727 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.452e-05/0.004991, allocations: 9.75 kB / 0.733 GB, free: 0.9648 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.545e-06/0.004994, allocations: 0 / 0.733 GB, free: 0.9648 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.859e-05/0.005012, allocations: 7.984 kB / 0.733 GB, free: 0.957 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-06/0.005017, allocations: 4.516 kB / 0.733 GB, free: 0.9531 MB / 0.698 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.696e-05/0.005064, allocations: 111.2 kB / 0.7331 GB, free: 0.8359 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.134e-05/0.005076, allocations: 1 kB / 0.7331 GB, free: 0.8359 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.057e-05/0.005146, allocations: 53.34 kB / 0.7331 GB, free: 0.7695 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.005149, allocations: 4.469 kB / 0.7331 GB, free: 0.7656 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.00515, allocations: 0 / 0.7331 GB, free: 0.7656 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.005153, allocations: 1.125 kB / 0.7331 GB, free: 0.7656 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.282e-05/0.005225, allocations: 69.89 kB / 0.7332 GB, free: 0.6797 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-07/0.005226, allocations: 4.703 kB / 0.7332 GB, free: 0.6758 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.891e-05/0.005255, allocations: 12.7 kB / 0.7332 GB, free: 0.6641 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.57e-06/0.00526, allocations: 3.938 kB / 0.7332 GB, free: 0.6602 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-07/0.005261, allocations: 1.25 kB / 0.7332 GB, free: 0.6602 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.005267, allocations: 4 kB / 0.7332 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.005268, allocations: 0 / 0.7332 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.00527, allocations: 8.953 kB / 0.7332 GB, free: 0.6484 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.185e-05/0.005332, allocations: 132.1 kB / 0.7334 GB, free: 0.5039 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.914e-06/0.00534, allocations: 4.562 kB / 0.7334 GB, free: 0.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.061e-05/0.00537, allocations: 8 kB / 0.7334 GB, free: 0.4922 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.00541, allocations: 5.766 kB / 0.7334 GB, free: 500 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.005414, allocations: 3.938 kB / 0.7334 GB, free: 496 kB / 0.698 GB Notification: Performance of sorting global known variables: time 1.063e-05/0.005425, allocations: 9.734 kB / 0.7334 GB, free: 484 kB / 0.698 GB Notification: Performance of sort global known variables: time 5e-08/0.005425, allocations: 0 / 0.7334 GB, free: 484 kB / 0.698 GB Notification: Performance of remove unused functions: time 0.0001166/0.005541, allocations: 8 kB / 0.7334 GB, free: 476 kB / 0.698 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.0001051/0.005646, allocations: 93.56 kB / 0.7335 GB, free: 372 kB / 0.698 GB Notification: Performance of simCode: created initialization part: time 5.84e-05/0.005705, allocations: 19.48 kB / 0.7335 GB, free: 352 kB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.005708, allocations: 0 / 0.7335 GB, free: 352 kB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 2.146e-05/0.00573, allocations: 13.84 kB / 0.7335 GB, free: 336 kB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.005873, allocations: 37.69 kB / 0.7335 GB, free: 292 kB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003122/0.006185, allocations: 113.4 kB / 0.7337 GB, free: 152 kB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.796e-05/0.006213, allocations: 59.88 kB / 0.7337 GB, free: 72 kB / 0.698 GB Notification: Performance of simCode: alias equations: time 2.109e-05/0.006234, allocations: 6.641 kB / 0.7337 GB, free: 68 kB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.131e-05/0.006275, allocations: 55.38 kB / 0.7338 GB, free: 12 kB / 0.698 GB Notification: Performance of SimCode: time 4.7e-07/0.006276, allocations: 0 / 0.7338 GB, free: 12 kB / 0.698 GB Notification: Performance of Templates: time 0.002195/0.008471, allocations: 0.7975 MB / 0.7346 GB, free: 15.25 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Factorial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Math.Examples.Factorial/Buildings_12_Buildings.Utilities.Math.Examples.Factorial.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.809866317547858]