Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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.001368/0.001368, allocations: 88.33 kB / 19.64 MB, free: 304 kB / 13.93 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.001666/0.001666, allocations: 168.9 kB / 23.02 MB, free: 1.574 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.9719/0.9719, allocations: 177.1 MB / 203.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.118/2.118, allocations: 429.5 MB / 0.6732 GB, free: 4.035 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 0.8782 GB, free: 6.242 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.712e-05/2.929e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.238 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001566/0.001596, allocations: 0.6136 MB / 0.8788 GB, free: 5.645 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0002357/0.001831, allocations: 44.73 kB / 0.8789 GB, free: 5.602 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.698e-05/0.001848, allocations: 0 / 0.8789 GB, free: 5.602 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 1.893e-05/0.001867, allocations: 1 kB / 0.8789 GB, free: 5.602 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 7.244e-06/0.001875, allocations: 3.938 kB / 0.8789 GB, free: 5.598 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.002102, allocations: 8 kB / 0.8789 GB, free: 5.59 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 4.339e-05/0.002146, allocations: 9.156 kB / 0.8789 GB, free: 5.582 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 3.622e-05/0.002182, allocations: 9.016 kB / 0.8789 GB, free: 5.574 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 2.587e-05/0.002208, allocations: 4.984 kB / 0.8789 GB, free: 5.57 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 1.843e-05/0.002226, allocations: 0 / 0.8789 GB, free: 5.57 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.271e-05/0.002239, allocations: 0.625 kB / 0.8789 GB, free: 5.57 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.402e-05/0.002313, allocations: 11.92 kB / 0.8789 GB, free: 5.559 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 9.748e-06/0.002323, allocations: 0.9062 kB / 0.8789 GB, free: 5.559 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 1.818e-05/0.002341, allocations: 8.875 kB / 0.8789 GB, free: 5.551 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 8.501e-05/0.002426, allocations: 9.047 kB / 0.8789 GB, free: 5.543 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.002429, allocations: 4.859 kB / 0.8789 GB, free: 5.539 MB / 0.8386 GB Notification: Performance of FrontEnd: time 7.12e-07/0.002429, allocations: 0 / 0.8789 GB, free: 5.539 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.389e-06/0.002434, allocations: 1.188 kB / 0.8789 GB, free: 5.539 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002552/0.002689, allocations: 336.4 kB / 0.8793 GB, free: 5.172 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.002738, allocations: 12.03 kB / 0.8793 GB, free: 5.16 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.494e-05/0.002773, allocations: 2.031 kB / 0.8793 GB, free: 5.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.519e-05/0.002828, allocations: 112.5 kB / 0.8794 GB, free: 5.023 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.00284, allocations: 4.359 kB / 0.8794 GB, free: 5.02 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.049e-05/0.002851, allocations: 5.344 kB / 0.8794 GB, free: 5.016 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.58e-05/0.002947, allocations: 30.27 kB / 0.8794 GB, free: 4.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.002957, allocations: 0.9375 kB / 0.8794 GB, free: 4.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.002966, allocations: 4.375 kB / 0.8794 GB, free: 4.977 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.002974, allocations: 1.031 kB / 0.8794 GB, free: 4.977 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.468e-05/0.002998, allocations: 7.938 kB / 0.8794 GB, free: 4.969 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001056/0.003104, allocations: 112.4 kB / 0.8795 GB, free: 4.828 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.653e-05/0.00315, allocations: 31.03 kB / 0.8796 GB, free: 4.785 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.024e-05/0.003171, allocations: 15.75 kB / 0.8796 GB, free: 4.766 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001287/0.003299, allocations: 4 kB / 0.8796 GB, free: 4.762 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.003319, allocations: 37.38 kB / 0.8796 GB, free: 4.715 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 7.52e-07/0.00332, allocations: 0 / 0.8796 GB, free: 4.715 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001271/0.003447, allocations: 37.66 kB / 0.8797 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.003482, allocations: 63.94 kB / 0.8797 GB, free: 4.598 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.955e-05/0.003521, allocations: 142.2 kB / 0.8798 GB, free: 4.445 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.003532, allocations: 27.23 kB / 0.8799 GB, free: 4.414 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.59e-05/0.003558, allocations: 126.9 kB / 0.88 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.84e-05/0.003576, allocations: 3.938 kB / 0.88 GB, free: 4.281 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.665e-05/0.003603, allocations: 23.36 kB / 0.88 GB, free: 4.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.003719, allocations: 0.4924 MB / 0.8805 GB, free: 3.746 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.22e-05/0.003731, allocations: 4 kB / 0.8805 GB, free: 3.742 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.642e-06/0.003738, allocations: 0 / 0.8805 GB, free: 3.742 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.287e-05/0.003771, allocations: 11.69 kB / 0.8805 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.003773, allocations: 0 / 0.8805 GB, free: 3.727 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.404e-05/0.003827, allocations: 41.69 kB / 0.8806 GB, free: 3.68 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.00384, allocations: 11.94 kB / 0.8806 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.003845, allocations: 0 / 0.8806 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.003859, allocations: 0 / 0.8806 GB, free: 3.668 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.338e-05/0.003913, allocations: 8.094 kB / 0.8806 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.003918, allocations: 0 / 0.8806 GB, free: 3.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.133e-05/0.003929, allocations: 3.938 kB / 0.8806 GB, free: 3.656 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.003934, allocations: 4 kB / 0.8806 GB, free: 3.652 MB / 0.8386 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.17e-05/0.003996, allocations: 160.6 kB / 0.8807 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.04e-06/0.004001, allocations: 0 / 0.8807 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.83e-05/0.004079, allocations: 44.8 kB / 0.8808 GB, free: 3.434 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-06/0.004083, allocations: 3.984 kB / 0.8808 GB, free: 3.43 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.004086, allocations: 0 / 0.8808 GB, free: 3.43 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.004089, allocations: 0 / 0.8808 GB, free: 3.43 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.72e-05/0.004146, allocations: 116.6 kB / 0.8809 GB, free: 3.281 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.004147, allocations: 4 kB / 0.8809 GB, free: 3.277 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.223e-05/0.00416, allocations: 3.938 kB / 0.8809 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.004161, allocations: 0 / 0.8809 GB, free: 3.273 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-06/0.004167, allocations: 4 kB / 0.8809 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.32e-07/0.004167, allocations: 0 / 0.8809 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.004169, allocations: 0 / 0.8809 GB, free: 3.27 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.465e-05/0.004223, allocations: 76.38 kB / 0.881 GB, free: 3.172 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-06/0.004228, allocations: 4 kB / 0.881 GB, free: 3.168 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.155e-06/0.004236, allocations: 0 / 0.881 GB, free: 3.168 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.62e-06/0.004242, allocations: 8.031 kB / 0.881 GB, free: 3.16 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.907e-05/0.004271, allocations: 3.984 kB / 0.881 GB, free: 3.156 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.004274, allocations: 4 kB / 0.881 GB, free: 3.152 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.132e-05/0.004305, allocations: 119.9 kB / 0.8811 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5e-08/0.004305, allocations: 0 / 0.8811 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001279/0.004433, allocations: 4 kB / 0.8811 GB, free: 3.031 MB / 0.8386 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001134/0.004546, allocations: 99.19 kB / 0.8812 GB, free: 2.926 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.603e-05/0.004622, allocations: 23.61 kB / 0.8812 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.004624, allocations: 0 / 0.8812 GB, free: 2.898 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.35e-05/0.004637, allocations: 15.75 kB / 0.8812 GB, free: 2.879 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.441e-05/0.004732, allocations: 6.031 kB / 0.8813 GB, free: 2.875 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001783/0.00491, allocations: 89.34 kB / 0.8813 GB, free: 2.758 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.001e-05/0.00494, allocations: 55.36 kB / 0.8814 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.929e-06/0.00495, allocations: 0 / 0.8814 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.898e-05/0.004969, allocations: 12.5 kB / 0.8814 GB, free: 2.672 MB / 0.8386 GB Notification: Performance of SimCode: time 5.81e-07/0.00497, allocations: 0 / 0.8814 GB, free: 2.672 MB / 0.8386 GB Notification: Performance of Templates: time 0.002005/0.006975, allocations: 370.2 kB / 0.8818 GB, free: 2.316 MB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_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.510202281177044]