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.0009945/0.0009945, allocations: 87.58 kB / 20.45 MB, free: 4.113 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.001187/0.001187, allocations: 161 kB / 23.82 MB, free: 0.7461 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 1.048/1.048, allocations: 177.1 MB / 204.2 MB, free: 5.629 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.845/1.845, allocations: 377.8 MB / 0.6236 GB, free: 8.543 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.403e-06/1.403e-06, allocations: 0 / 0.8115 GB, free: 1.738 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.433e-05/2.574e-05, allocations: 3.156 kB / 0.8115 GB, free: 1.734 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002405/0.002431, allocations: 1.571 MB / 0.8131 GB, free: 176 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0003324/0.002764, allocations: 127.6 kB / 0.8132 GB, free: 48 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.529e-05/0.002799, allocations: 1.688 kB / 0.8132 GB, free: 48 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.072e-05/0.00283, allocations: 7.938 kB / 0.8132 GB, free: 40 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 4.455e-05/0.002874, allocations: 0 / 0.8132 GB, free: 40 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002652/0.003139, allocations: 27.84 kB / 0.8132 GB, free: 12 kB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 8.211e-05/0.003221, allocations: 29.53 kB / 0.8133 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.115e-05/0.003313, allocations: 11.91 kB / 0.8133 GB, free: 15.97 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 5.396e-05/0.003367, allocations: 15.98 kB / 0.8133 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.052e-05/0.003417, allocations: 15.92 kB / 0.8133 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.003434, allocations: 5.375 kB / 0.8133 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.187e-05/0.003496, allocations: 7.984 kB / 0.8133 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.517e-05/0.003511, allocations: 11.98 kB / 0.8133 GB, free: 15.92 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 1.827e-05/0.00353, allocations: 4 kB / 0.8133 GB, free: 15.91 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000121/0.003651, allocations: 33.64 kB / 0.8134 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.614e-06/0.003653, allocations: 0 / 0.8134 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.934e-06/0.003655, allocations: 3.984 kB / 0.8134 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.00366, allocations: 7.938 kB / 0.8134 GB, free: 15.87 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.0003558/0.004016, allocations: 361.7 kB / 0.8137 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.004051, allocations: 8.031 kB / 0.8137 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.74e-05/0.004088, allocations: 8.938 kB / 0.8137 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.176e-05/0.00417, allocations: 109.7 kB / 0.8138 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.004192, allocations: 384 / 0.8138 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.429e-05/0.004206, allocations: 4.359 kB / 0.8138 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001352/0.004341, allocations: 59.83 kB / 0.8139 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.004351, allocations: 192 / 0.8139 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.004367, allocations: 2.594 kB / 0.8139 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.004376, allocations: 4.375 kB / 0.8139 GB, free: 15.26 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.912e-05/0.004415, allocations: 15.86 kB / 0.8139 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003017/0.004717, allocations: 263.8 kB / 0.8142 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.004894, allocations: 47.05 kB / 0.8142 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.161e-05/0.004926, allocations: 16.27 kB / 0.8142 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 8.024e-05/0.005006, allocations: 8.719 kB / 0.8142 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.005029, allocations: 33.39 kB / 0.8143 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.005031, allocations: 0.5 kB / 0.8143 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0001758/0.005206, allocations: 63.14 kB / 0.8143 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.744e-05/0.005234, allocations: 51.41 kB / 0.8144 GB, free: 14.69 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.871e-05/0.005302, allocations: 161.9 kB / 0.8145 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.005314, allocations: 29.64 kB / 0.8146 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.983e-05/0.005364, allocations: 135.5 kB / 0.8147 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.005378, allocations: 4.797 kB / 0.8147 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.98e-05/0.005408, allocations: 23.36 kB / 0.8147 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.005515, allocations: 496.1 kB / 0.8152 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.867e-05/0.005534, allocations: 4.531 kB / 0.8152 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.461e-05/0.005549, allocations: 8.609 kB / 0.8152 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.888e-05/0.005588, allocations: 24.28 kB / 0.8152 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.00559, allocations: 0 / 0.8152 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.598e-05/0.005656, allocations: 50.45 kB / 0.8153 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.005671, allocations: 7.938 kB / 0.8153 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/0.005675, allocations: 0.9375 kB / 0.8153 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.005691, allocations: 0 / 0.8153 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.153e-05/0.005742, allocations: 11.98 kB / 0.8153 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.005747, allocations: 1.219 kB / 0.8153 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.012e-05/0.005767, allocations: 4 kB / 0.8153 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.005772, allocations: 0 / 0.8153 GB, free: 13.7 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 6.208e-05/0.005834, allocations: 153.5 kB / 0.8155 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/0.005852, allocations: 8 kB / 0.8155 GB, free: 13.53 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.005955, allocations: 63.55 kB / 0.8155 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.005957, allocations: 4 kB / 0.8155 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.00596, allocations: 0 / 0.8155 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.005962, allocations: 0 / 0.8155 GB, free: 13.46 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.45e-05/0.006057, allocations: 116.6 kB / 0.8156 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.006058, allocations: 3.312 kB / 0.8156 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.372e-05/0.006092, allocations: 11.98 kB / 0.8157 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.006093, allocations: 0 / 0.8157 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.0061, allocations: 0 / 0.8157 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.006102, allocations: 3.938 kB / 0.8157 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.006103, allocations: 0 / 0.8157 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001064/0.006209, allocations: 200.4 kB / 0.8158 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-06/0.006215, allocations: 0 / 0.8158 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.041e-05/0.006225, allocations: 0 / 0.8158 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.977e-05/0.006265, allocations: 12.95 kB / 0.8159 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.006311, allocations: 11.94 kB / 0.8159 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-06/0.006315, allocations: 3.984 kB / 0.8159 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.451e-05/0.00635, allocations: 127.7 kB / 0.816 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.00635, allocations: 0.5625 kB / 0.816 GB, free: 12.93 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001556/0.006505, allocations: 8 kB / 0.816 GB, free: 12.92 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.0001284/0.006634, allocations: 105.4 kB / 0.8161 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8.554e-05/0.006719, allocations: 23.67 kB / 0.8161 GB, free: 12.78 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.006721, allocations: 0 / 0.8161 GB, free: 12.78 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.676e-05/0.006748, allocations: 23.61 kB / 0.8161 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001751/0.006923, allocations: 5.094 kB / 0.8162 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002527/0.007175, allocations: 123.4 kB / 0.8163 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.103e-05/0.007216, allocations: 63.2 kB / 0.8163 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.033e-05/0.007237, allocations: 1.188 kB / 0.8163 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.877e-05/0.007265, allocations: 13.5 kB / 0.8163 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of SimCode: time 5.91e-07/0.007266, allocations: 0 / 0.8163 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of Templates: time 0.002466/0.009732, allocations: 0.7564 MB / 0.8171 GB, free: 11.77 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.246206047944725]