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.0009368/0.0009368, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.000989/0.000989, allocations: 166.1 kB / 24.87 MB, free: 9.258 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.9586/0.9586, allocations: 177.1 MB / 205.3 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.908/1.908, allocations: 377.9 MB / 0.6247 GB, free: 8.406 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.673e-06/1.673e-06, allocations: 0 / 0.8128 GB, free: 1.445 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.54e-05/2.707e-05, allocations: 7.016 kB / 0.8128 GB, free: 1.438 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002655/0.002682, allocations: 1.564 MB / 0.8143 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0003451/0.003027, allocations: 132.2 kB / 0.8144 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.338e-05/0.00307, allocations: 0.9062 kB / 0.8144 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.121e-05/0.003102, allocations: 3.938 kB / 0.8144 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.866e-05/0.00315, allocations: 0.6562 kB / 0.8144 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002373/0.003388, allocations: 27.86 kB / 0.8145 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 8.067e-05/0.003468, allocations: 32.78 kB / 0.8145 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.003574, allocations: 11.98 kB / 0.8145 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 5.472e-05/0.003628, allocations: 13.08 kB / 0.8145 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.086e-05/0.003679, allocations: 15.94 kB / 0.8145 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.003695, allocations: 0 / 0.8145 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 7.027e-05/0.003766, allocations: 17.53 kB / 0.8146 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.593e-05/0.003781, allocations: 4 kB / 0.8146 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.116e-05/0.003803, allocations: 11.98 kB / 0.8146 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.003916, allocations: 35.83 kB / 0.8146 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.003919, allocations: 1.531 kB / 0.8146 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.41e-07/0.003919, allocations: 0 / 0.8146 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.91e-06/0.003924, allocations: 0 / 0.8146 GB, free: 15.58 MB / 0.7761 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.000386/0.00431, allocations: 360.7 kB / 0.8149 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.004351, allocations: 9.312 kB / 0.815 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.382e-05/0.004385, allocations: 8.938 kB / 0.815 GB, free: 15.17 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.004488, allocations: 116.5 kB / 0.8151 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.004507, allocations: 5.625 kB / 0.8151 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.104e-05/0.004518, allocations: 4.375 kB / 0.8151 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/0.004645, allocations: 58.94 kB / 0.8151 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.004651, allocations: 0.7188 kB / 0.8151 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.004659, allocations: 384 / 0.8151 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.004664, allocations: 2.438 kB / 0.8151 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.153e-05/0.004696, allocations: 15.94 kB / 0.8152 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002659/0.004962, allocations: 244.4 kB / 0.8154 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.005136, allocations: 47.03 kB / 0.8154 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.508e-05/0.005161, allocations: 16.27 kB / 0.8155 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 6.524e-05/0.005226, allocations: 8.719 kB / 0.8155 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.00525, allocations: 33.39 kB / 0.8155 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.005251, allocations: 1.5 kB / 0.8155 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0001588/0.00541, allocations: 53.56 kB / 0.8155 GB, free: 14.49 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.623e-05/0.005446, allocations: 55.41 kB / 0.8156 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.638e-05/0.005523, allocations: 158.5 kB / 0.8158 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.005536, allocations: 29.64 kB / 0.8158 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.632e-05/0.005592, allocations: 127.9 kB / 0.8159 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.005611, allocations: 15.94 kB / 0.8159 GB, free: 14.07 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.771e-05/0.005649, allocations: 19.36 kB / 0.8159 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.005783, allocations: 496.9 kB / 0.8164 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.359e-05/0.005796, allocations: 0 / 0.8164 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.575e-05/0.005812, allocations: 8.609 kB / 0.8164 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.707e-05/0.005849, allocations: 17.47 kB / 0.8164 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.005851, allocations: 0 / 0.8164 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.045e-05/0.005931, allocations: 53.58 kB / 0.8165 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.005943, allocations: 4 kB / 0.8165 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.005947, allocations: 1.797 kB / 0.8165 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.005958, allocations: 7.922 kB / 0.8165 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.069e-05/0.006008, allocations: 11.98 kB / 0.8165 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.315e-06/0.006011, allocations: 0 / 0.8165 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.5e-05/0.006036, allocations: 1.281 kB / 0.8165 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.006042, allocations: 4 kB / 0.8165 GB, free: 13.43 MB / 0.7761 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 7.411e-05/0.006116, allocations: 160.6 kB / 0.8167 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.513e-05/0.006141, allocations: 4.969 kB / 0.8167 GB, free: 13.26 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.077e-05/0.006232, allocations: 53.3 kB / 0.8167 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.006235, allocations: 6.25 kB / 0.8167 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.006237, allocations: 0 / 0.8167 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.006239, allocations: 0 / 0.8167 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001294/0.006369, allocations: 101.2 kB / 0.8168 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.006371, allocations: 4 kB / 0.8168 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.311e-05/0.006404, allocations: 4 kB / 0.8168 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.006406, allocations: 3.438 kB / 0.8168 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-06/0.006411, allocations: 7.984 kB / 0.8168 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.006412, allocations: 0 / 0.8168 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.006413, allocations: 0 / 0.8168 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001121/0.006525, allocations: 195.8 kB / 0.817 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.913e-06/0.006532, allocations: 7.938 kB / 0.817 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.909e-06/0.006542, allocations: 0 / 0.817 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.463e-05/0.006596, allocations: 0 / 0.817 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.198e-05/0.006638, allocations: 19.86 kB / 0.8171 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.006642, allocations: 0.875 kB / 0.8171 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.186e-05/0.006684, allocations: 131.2 kB / 0.8172 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.006684, allocations: 0.5 kB / 0.8172 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002363/0.006921, allocations: 11.94 kB / 0.8172 GB, free: 12.68 MB / 0.7761 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.0001217/0.007042, allocations: 96.38 kB / 0.8173 GB, free: 12.58 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8.552e-05/0.007128, allocations: 28.89 kB / 0.8173 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.352e-06/0.007129, allocations: 0 / 0.8173 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.777e-05/0.007157, allocations: 15.62 kB / 0.8173 GB, free: 12.53 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002423/0.007399, allocations: 10.81 kB / 0.8173 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002522/0.007651, allocations: 123.2 kB / 0.8175 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.046e-05/0.007692, allocations: 56.16 kB / 0.8175 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.752e-05/0.007719, allocations: 4.594 kB / 0.8175 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.758e-05/0.007777, allocations: 74.84 kB / 0.8176 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of SimCode: time 5.31e-07/0.007777, allocations: 0 / 0.8176 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of Templates: time 0.002706/0.01048, allocations: 0.8412 MB / 0.8184 GB, free: 11.4 MB / 0.7761 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: 5.057584146037698]