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.0009835/0.0009835, allocations: 80.8 kB / 20.75 MB, free: 3.738 MB / 18.57 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.001113/0.001113, allocations: 161 kB / 24.17 MB, free: 328 kB / 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.9348/0.9348, allocations: 177.1 MB / 204.6 MB, free: 5.457 MB / 186.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.829/1.829, allocations: 377.9 MB / 0.624 GB, free: 8.355 MB / 0.5886 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 8.52e-07/8.52e-07, allocations: 0 / 0.76 GB, free: 6.613 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 8.496e-06/9.348e-06, allocations: 3.188 kB / 0.76 GB, free: 6.609 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001675/0.001684, allocations: 1.588 MB / 0.7616 GB, free: 5.027 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.000234/0.001918, allocations: 124.6 kB / 0.7617 GB, free: 4.906 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.55e-05/0.001943, allocations: 4 kB / 0.7617 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 1.859e-05/0.001962, allocations: 4.719 kB / 0.7617 GB, free: 4.898 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 3.311e-05/0.001995, allocations: 1.312 kB / 0.7617 GB, free: 4.898 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001626/0.002158, allocations: 29.98 kB / 0.7617 GB, free: 4.871 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 4.958e-05/0.002207, allocations: 27.92 kB / 0.7617 GB, free: 4.848 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 5.323e-05/0.002261, allocations: 15.97 kB / 0.7618 GB, free: 4.832 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 4.206e-05/0.002303, allocations: 19.38 kB / 0.7618 GB, free: 4.816 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 3.29e-05/0.002336, allocations: 12.75 kB / 0.7618 GB, free: 4.805 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.002347, allocations: 4 kB / 0.7618 GB, free: 4.801 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 4.486e-05/0.002392, allocations: 15.98 kB / 0.7618 GB, free: 4.785 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 1.223e-05/0.002404, allocations: 5.516 kB / 0.7618 GB, free: 4.781 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 1.367e-05/0.002418, allocations: 11.17 kB / 0.7618 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 8.016e-05/0.002498, allocations: 37.58 kB / 0.7619 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.303e-06/0.002499, allocations: 0 / 0.7619 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of FrontEnd: time 4.41e-07/0.0025, allocations: 0 / 0.7619 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.605e-06/0.002503, allocations: 1.312 kB / 0.7619 GB, free: 4.738 MB / 0.7136 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.0002535/0.002756, allocations: 233 kB / 0.7621 GB, free: 4.484 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.865e-05/0.002785, allocations: 13.5 kB / 0.7621 GB, free: 4.473 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.107e-05/0.002806, allocations: 0.9375 kB / 0.7621 GB, free: 4.473 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.541e-05/0.002881, allocations: 113.7 kB / 0.7622 GB, free: 4.336 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.002897, allocations: 4.375 kB / 0.7622 GB, free: 4.332 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.386e-06/0.002905, allocations: 5.625 kB / 0.7622 GB, free: 4.328 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.905e-05/0.002994, allocations: 54.94 kB / 0.7623 GB, free: 4.266 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.003, allocations: 192 / 0.7623 GB, free: 4.266 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.003008, allocations: 9.625 kB / 0.7623 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.003013, allocations: 1.359 kB / 0.7623 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.361e-05/0.003036, allocations: 15.86 kB / 0.7623 GB, free: 4.242 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001698/0.003206, allocations: 148.9 kB / 0.7624 GB, free: 4.082 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/0.003321, allocations: 35.09 kB / 0.7625 GB, free: 4.039 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.508e-05/0.003336, allocations: 14.41 kB / 0.7625 GB, free: 4.023 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 4.711e-05/0.003383, allocations: 7.984 kB / 0.7625 GB, free: 4.016 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.662e-05/0.0034, allocations: 30.56 kB / 0.7625 GB, free: 3.977 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.332e-06/0.003401, allocations: 4.969 kB / 0.7625 GB, free: 3.973 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 8.514e-05/0.003486, allocations: 45.62 kB / 0.7626 GB, free: 3.922 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/0.003512, allocations: 56.12 kB / 0.7626 GB, free: 3.855 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.323e-05/0.003555, allocations: 109.5 kB / 0.7627 GB, free: 3.738 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.707e-06/0.003564, allocations: 25.7 kB / 0.7627 GB, free: 3.707 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.64e-05/0.00359, allocations: 88.09 kB / 0.7628 GB, free: 3.617 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.133e-05/0.003602, allocations: 8.812 kB / 0.7628 GB, free: 3.609 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-05/0.003623, allocations: 13.72 kB / 0.7629 GB, free: 3.59 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.145e-05/0.003694, allocations: 318.8 kB / 0.7632 GB, free: 3.27 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.734e-06/0.003702, allocations: 0 / 0.7632 GB, free: 3.27 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.165e-06/0.00371, allocations: 5.281 kB / 0.7632 GB, free: 3.266 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.615e-05/0.003736, allocations: 24.78 kB / 0.7632 GB, free: 3.238 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.003737, allocations: 0 / 0.7632 GB, free: 3.238 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.619e-05/0.003814, allocations: 38.44 kB / 0.7632 GB, free: 3.195 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.816e-06/0.003823, allocations: 4.656 kB / 0.7632 GB, free: 3.191 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-06/0.003826, allocations: 4.75 kB / 0.7632 GB, free: 3.188 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.003838, allocations: 3.938 kB / 0.7632 GB, free: 3.184 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.614e-05/0.003884, allocations: 8.734 kB / 0.7632 GB, free: 3.176 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.475e-06/0.003886, allocations: 0 / 0.7632 GB, free: 3.176 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.782e-05/0.003904, allocations: 4.656 kB / 0.7632 GB, free: 3.172 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.00391, allocations: 5.203 kB / 0.7633 GB, free: 3.168 MB / 0.7136 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.723e-05/0.003957, allocations: 117.4 kB / 0.7634 GB, free: 3.047 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.23e-05/0.003969, allocations: 3.938 kB / 0.7634 GB, free: 3.043 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.074e-05/0.00403, allocations: 49.36 kB / 0.7634 GB, free: 2.988 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.004032, allocations: 3.938 kB / 0.7634 GB, free: 2.984 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-06/0.004033, allocations: 0 / 0.7634 GB, free: 2.984 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.004036, allocations: 4 kB / 0.7634 GB, free: 2.98 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.541e-05/0.004111, allocations: 65.89 kB / 0.7635 GB, free: 2.898 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.004112, allocations: 0 / 0.7635 GB, free: 2.898 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.191e-05/0.004134, allocations: 11.12 kB / 0.7635 GB, free: 2.891 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.92e-07/0.004134, allocations: 0 / 0.7635 GB, free: 2.891 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.337e-06/0.004138, allocations: 1.438 kB / 0.7635 GB, free: 2.891 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.004139, allocations: 3.984 kB / 0.7635 GB, free: 2.887 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.00414, allocations: 0 / 0.7635 GB, free: 2.887 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.627e-05/0.004206, allocations: 147.4 kB / 0.7636 GB, free: 2.727 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-06/0.004212, allocations: 7.938 kB / 0.7637 GB, free: 2.719 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.813e-06/0.004219, allocations: 0 / 0.7637 GB, free: 2.719 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.842e-05/0.004247, allocations: 1.812 kB / 0.7637 GB, free: 2.719 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.931e-05/0.004277, allocations: 11.98 kB / 0.7637 GB, free: 2.707 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.825e-06/0.004279, allocations: 4.812 kB / 0.7637 GB, free: 2.703 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 1.111e-05/0.00429, allocations: 16.83 kB / 0.7637 GB, free: 2.684 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4e-08/0.00429, allocations: 0 / 0.7637 GB, free: 2.684 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001172/0.004408, allocations: 11.12 kB / 0.7637 GB, free: 2.676 MB / 0.7136 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 8.999e-05/0.004498, allocations: 76.42 kB / 0.7638 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 5.335e-05/0.004551, allocations: 22.05 kB / 0.7638 GB, free: 2.566 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.004554, allocations: 7.938 kB / 0.7638 GB, free: 2.559 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 1.463e-05/0.004568, allocations: 8.859 kB / 0.7638 GB, free: 2.547 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001086/0.004677, allocations: 15.92 kB / 0.7638 GB, free: 2.531 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001854/0.004862, allocations: 114.2 kB / 0.7639 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.828e-05/0.004891, allocations: 55.3 kB / 0.764 GB, free: 2.32 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.884e-05/0.004909, allocations: 5.281 kB / 0.764 GB, free: 2.316 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.939e-05/0.004949, allocations: 55.36 kB / 0.764 GB, free: 2.262 MB / 0.7136 GB Notification: Performance of SimCode: time 2.6e-07/0.004949, allocations: 0.5312 kB / 0.764 GB, free: 2.262 MB / 0.7136 GB Notification: Performance of Templates: time 0.002019/0.006968, allocations: 0.7537 MB / 0.7648 GB, free: 1.539 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 -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","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Factorial.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.916820922866464]