Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00223/0.00223, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002477/0.002477, allocations: 188.6 kB / 22.23 MB, free: 5.098 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 225.6 MB / 251 MB, free: 13.21 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo): time 2.561/2.561, allocations: 443.4 MB / 0.7321 GB, free: 12.27 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.2-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_10_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 59.91 kB / 1.061 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7394/0.7415, allocations: 160.8 MB / 1.218 GB, free: 4.473 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002805/0.7443, allocations: 1.537 MB / 1.22 GB, free: 2.93 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.000391/0.7446, allocations: 136.4 kB / 1.22 GB, free: 2.793 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.015e-05/0.7447, allocations: 4 kB / 1.22 GB, free: 2.789 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.881e-05/0.7447, allocations: 0 / 1.22 GB, free: 2.789 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.362e-05/0.7448, allocations: 3.938 kB / 1.22 GB, free: 2.785 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.745, allocations: 19.92 kB / 1.22 GB, free: 2.766 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.713e-05/0.7451, allocations: 23.98 kB / 1.22 GB, free: 2.742 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001057/0.7452, allocations: 11.98 kB / 1.22 GB, free: 2.73 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.459e-05/0.7452, allocations: 11.98 kB / 1.22 GB, free: 2.719 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.078e-05/0.7453, allocations: 19.92 kB / 1.22 GB, free: 2.699 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.422e-05/0.7453, allocations: 0 / 1.22 GB, free: 2.699 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.669e-05/0.7454, allocations: 19.98 kB / 1.22 GB, free: 2.68 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.737e-05/0.7454, allocations: 11.88 kB / 1.22 GB, free: 2.668 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.028e-05/0.7454, allocations: 11.94 kB / 1.22 GB, free: 2.656 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000127/0.7455, allocations: 39.53 kB / 1.22 GB, free: 2.621 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.7455, allocations: 0 / 1.22 GB, free: 2.621 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.154e-06/0.7455, allocations: 0 / 1.22 GB, free: 2.621 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.09e-06/0.7456, allocations: 0 / 1.22 GB, free: 2.621 MB / 0.92 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.0005363/0.7461, allocations: 342.1 kB / 1.221 GB, free: 2.238 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.7461, allocations: 12.03 kB / 1.221 GB, free: 2.227 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.688e-05/0.7462, allocations: 8.891 kB / 1.221 GB, free: 2.219 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.7463, allocations: 168.4 kB / 1.221 GB, free: 2.016 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.7463, allocations: 384 / 1.221 GB, free: 2.016 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.7463, allocations: 4.375 kB / 1.221 GB, free: 2.012 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.7465, allocations: 54.23 kB / 1.221 GB, free: 1.953 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.7466, allocations: 4.172 kB / 1.221 GB, free: 1.949 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.7466, allocations: 3.938 kB / 1.221 GB, free: 1.945 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.7466, allocations: 0 / 1.221 GB, free: 1.945 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.7468, allocations: 51.89 kB / 1.221 GB, free: 1.895 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.7472, allocations: 257 kB / 1.221 GB, free: 1.594 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003226/0.7475, allocations: 58.48 kB / 1.221 GB, free: 1.527 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.946e-05/0.7476, allocations: 28.89 kB / 1.221 GB, free: 1.496 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.7477, allocations: 85.05 kB / 1.221 GB, free: 1.395 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.896e-05/0.7477, allocations: 34.56 kB / 1.221 GB, free: 1.352 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/0.7477, allocations: 0 / 1.221 GB, free: 1.352 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003801/0.7481, allocations: 97.58 kB / 1.221 GB, free: 1.25 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.7481, allocations: 51.41 kB / 1.221 GB, free: 1.188 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.124e-05/0.7482, allocations: 101.8 kB / 1.222 GB, free: 1.078 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.7482, allocations: 33.7 kB / 1.222 GB, free: 1.039 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.903e-05/0.7483, allocations: 84.14 kB / 1.222 GB, free: 0.9531 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.7483, allocations: 11.88 kB / 1.222 GB, free: 0.9414 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.854e-05/0.7484, allocations: 21.7 kB / 1.222 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.7485, allocations: 310.8 kB / 1.222 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.312e-05/0.7486, allocations: 23.92 kB / 1.222 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.163e-05/0.7487, allocations: 23.91 kB / 1.222 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001627/0.7488, allocations: 44.83 kB / 1.222 GB, free: 0.5078 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.7488, allocations: 3.938 kB / 1.222 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002113/0.749, allocations: 77.64 kB / 1.222 GB, free: 432 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.749, allocations: 4 kB / 1.222 GB, free: 428 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.7491, allocations: 0 / 1.222 GB, free: 428 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.7491, allocations: 0 / 1.222 GB, free: 428 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.236e-05/0.7491, allocations: 15.98 kB / 1.222 GB, free: 412 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.7492, allocations: 0 / 1.222 GB, free: 412 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.021e-05/0.7492, allocations: 11.94 kB / 1.222 GB, free: 400 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-06/0.7492, allocations: 0 / 1.222 GB, free: 400 kB / 0.92 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 8.747e-05/0.7493, allocations: 125.7 kB / 1.222 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.369e-05/0.7493, allocations: 0 / 1.222 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002796/0.7496, allocations: 85.84 kB / 1.222 GB, free: 172 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7496, allocations: 0 / 1.222 GB, free: 172 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.7496, allocations: 4 kB / 1.222 GB, free: 168 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.7496, allocations: 4.031 kB / 1.222 GB, free: 164 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.7498, allocations: 169.6 kB / 1.223 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.7498, allocations: 0 / 1.223 GB, free: 15.95 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.072e-05/0.7499, allocations: 11.98 kB / 1.223 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.7499, allocations: 0 / 1.223 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.7499, allocations: 0 / 1.223 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.7499, allocations: 0 / 1.223 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.7499, allocations: 0 / 1.223 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.7502, allocations: 179.4 kB / 1.223 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.7502, allocations: 81.06 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.7502, allocations: 0 / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.827e-05/0.7503, allocations: 7.984 kB / 1.223 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.655e-05/0.7504, allocations: 8 kB / 1.223 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.237e-06/0.7504, allocations: 0 / 1.223 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.356e-05/0.7504, allocations: 87.27 kB / 1.223 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8e-08/0.7504, allocations: 0 / 1.223 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000239/0.7507, allocations: 12 kB / 1.223 GB, free: 15.53 MB / 0.9356 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.0001402/0.7508, allocations: 103.2 kB / 1.223 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000235/0.751, allocations: 43.89 kB / 1.223 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.751, allocations: 3.938 kB / 1.223 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 9.541e-05/0.7511, allocations: 31.97 kB / 1.223 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/0.7514, allocations: 14.28 kB / 1.223 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003191/0.7517, allocations: 109.5 kB / 1.223 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.752, allocations: 0.6807 MB / 1.224 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.785e-05/0.752, allocations: 0 / 1.224 GB, free: 14.49 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.102e-05/0.7521, allocations: 19.42 kB / 1.224 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of SimCode: time 3.21e-07/0.7521, allocations: 0 / 1.224 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of Templates: time 0.003372/0.7554, allocations: 0.7248 MB / 1.225 GB, free: 13.75 MB / 0.9356 GB " [Timeout remaining time 299] make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.398175220936537]