Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009451/0.0009451, allocations: 80.44 kB / 19.17 MB, free: 0.7305 MB / 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.0009718/0.0009718, allocations: 165.2 kB / 22.46 MB, free: 2.098 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.8885/0.8885, allocations: 177.1 MB / 202.8 MB, free: 5.746 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.707/1.707, allocations: 377.8 MB / 0.6221 GB, free: 8.656 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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 0.981 GB, free: 2.523 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.432e-05/1.572e-05, allocations: 2.281 kB / 0.981 GB, free: 2.52 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001071/0.001086, allocations: 0.5947 MB / 0.9816 GB, free: 1.93 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0002339/0.00132, allocations: 43.81 kB / 0.9816 GB, free: 1.887 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.53e-05/0.001336, allocations: 0 / 0.9816 GB, free: 1.887 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 1.662e-05/0.001352, allocations: 0 / 0.9816 GB, free: 1.887 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 8.606e-06/0.001361, allocations: 4 kB / 0.9816 GB, free: 1.883 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.001607, allocations: 19.86 kB / 0.9817 GB, free: 1.863 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 5.069e-05/0.001658, allocations: 3.984 kB / 0.9817 GB, free: 1.859 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 4.847e-05/0.001706, allocations: 0 / 0.9817 GB, free: 1.859 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 3.857e-05/0.001745, allocations: 4 kB / 0.9817 GB, free: 1.855 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 2.3e-05/0.001768, allocations: 7.984 kB / 0.9817 GB, free: 1.848 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.458e-05/0.001782, allocations: 0 / 0.9817 GB, free: 1.848 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 8.971e-05/0.001872, allocations: 8 kB / 0.9817 GB, free: 1.84 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 9.588e-06/0.001881, allocations: 0 / 0.9817 GB, free: 1.84 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.552e-05/0.001897, allocations: 4 kB / 0.9817 GB, free: 1.836 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 9.171e-05/0.001989, allocations: 15.97 kB / 0.9817 GB, free: 1.82 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.00199, allocations: 0 / 0.9817 GB, free: 1.82 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.052e-06/0.001991, allocations: 3.938 kB / 0.9817 GB, free: 1.816 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.537e-06/0.001995, allocations: 0 / 0.9817 GB, free: 1.816 MB / 0.9323 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.0002269/0.002222, allocations: 238.4 kB / 0.9819 GB, free: 1.551 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.002261, allocations: 12.03 kB / 0.982 GB, free: 1.539 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.969e-05/0.002291, allocations: 34.75 kB / 0.982 GB, free: 1.496 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.314e-05/0.002314, allocations: 0.9375 kB / 0.982 GB, free: 1.496 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.672e-05/0.002371, allocations: 105.8 kB / 0.9821 GB, free: 1.367 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.002382, allocations: 4.375 kB / 0.9821 GB, free: 1.363 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-06/0.002391, allocations: 4.375 kB / 0.9821 GB, free: 1.359 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.363e-05/0.002484, allocations: 38.23 kB / 0.9821 GB, free: 1.316 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.002492, allocations: 192 / 0.9821 GB, free: 1.316 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.002502, allocations: 384 / 0.9821 GB, free: 1.316 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.002508, allocations: 8.062 kB / 0.9821 GB, free: 1.309 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.653e-05/0.002545, allocations: 7.938 kB / 0.9821 GB, free: 1.301 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/0.00267, allocations: 120.8 kB / 0.9823 GB, free: 1.141 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 5.619e-05/0.002726, allocations: 26.59 kB / 0.9823 GB, free: 1.105 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.707e-05/0.002743, allocations: 8.859 kB / 0.9823 GB, free: 1.094 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001408/0.002884, allocations: 4.062 kB / 0.9823 GB, free: 1.09 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.002e-05/0.002904, allocations: 30.56 kB / 0.9823 GB, free: 1.051 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=2): time 9.01e-07/0.002905, allocations: 4 kB / 0.9823 GB, free: 1.047 MB / 0.9323 GB Notification: Performance of matching and sorting (n=2): time 0.0001314/0.003036, allocations: 45.62 kB / 0.9824 GB, free: 0.9961 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.129e-05/0.003068, allocations: 55.34 kB / 0.9824 GB, free: 0.9297 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.73e-05/0.003095, allocations: 89.86 kB / 0.9825 GB, free: 0.832 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 9.568e-06/0.003104, allocations: 25.83 kB / 0.9825 GB, free: 0.8008 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 1.774e-05/0.003122, allocations: 84.14 kB / 0.9826 GB, free: 0.7148 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.003141, allocations: 7.938 kB / 0.9826 GB, free: 0.707 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.332e-05/0.003164, allocations: 13.72 kB / 0.9826 GB, free: 0.6875 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.003242, allocations: 318.8 kB / 0.9829 GB, free: 376 kB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.859e-06/0.003252, allocations: 0 / 0.9829 GB, free: 376 kB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.142e-06/0.003258, allocations: 0 / 0.9829 GB, free: 376 kB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.628e-05/0.003284, allocations: 20.8 kB / 0.983 GB, free: 352 kB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.003286, allocations: 0 / 0.983 GB, free: 352 kB / 0.9323 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.097e-05/0.003327, allocations: 41.64 kB / 0.983 GB, free: 304 kB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.003339, allocations: 8.094 kB / 0.983 GB, free: 296 kB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.003343, allocations: 3.938 kB / 0.983 GB, free: 292 kB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.003355, allocations: 0 / 0.983 GB, free: 292 kB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.328e-05/0.003408, allocations: 4 kB / 0.983 GB, free: 288 kB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.003414, allocations: 3.938 kB / 0.983 GB, free: 284 kB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.138e-06/0.003423, allocations: 0 / 0.983 GB, free: 284 kB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-06/0.003427, allocations: 4 kB / 0.983 GB, free: 280 kB / 0.9323 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 5.131e-05/0.003478, allocations: 109.8 kB / 0.9831 GB, free: 160 kB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.557e-06/0.003482, allocations: 0 / 0.9831 GB, free: 160 kB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.677e-05/0.003548, allocations: 48.78 kB / 0.9832 GB, free: 108 kB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.00355, allocations: 4.031 kB / 0.9832 GB, free: 104 kB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.003556, allocations: 3.938 kB / 0.9832 GB, free: 100 kB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.003559, allocations: 4 kB / 0.9832 GB, free: 96 kB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.138e-05/0.00364, allocations: 116.8 kB / 0.9833 GB, free: 15.94 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.003641, allocations: 0 / 0.9833 GB, free: 15.94 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.288e-05/0.003654, allocations: 4 kB / 0.9833 GB, free: 15.93 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.003655, allocations: 0 / 0.9833 GB, free: 15.93 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.003661, allocations: 0 / 0.9833 GB, free: 15.93 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.12e-07/0.003662, allocations: 0 / 0.9833 GB, free: 15.93 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.003666, allocations: 11.94 kB / 0.9833 GB, free: 15.92 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.943e-05/0.003716, allocations: 65.12 kB / 0.9834 GB, free: 15.84 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.597e-06/0.003719, allocations: 0 / 0.9834 GB, free: 15.84 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.905e-06/0.003727, allocations: 7.875 kB / 0.9834 GB, free: 15.83 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.98e-06/0.003732, allocations: 4 kB / 0.9834 GB, free: 15.83 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.003758, allocations: 7.922 kB / 0.9834 GB, free: 15.82 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.00376, allocations: 0 / 0.9834 GB, free: 15.82 MB / 0.948 GB Notification: Performance of sorting global known variables: time 1.977e-05/0.00378, allocations: 75.28 kB / 0.9835 GB, free: 15.75 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.00378, allocations: 0 / 0.9835 GB, free: 15.75 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001262/0.003906, allocations: 4 kB / 0.9835 GB, free: 15.74 MB / 0.948 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.0002485/0.004154, allocations: 0.6047 MB / 0.9841 GB, free: 15.11 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 5.82e-05/0.004213, allocations: 7.938 kB / 0.9841 GB, free: 15.1 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.004215, allocations: 4 kB / 0.9841 GB, free: 15.1 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 9.719e-06/0.004225, allocations: 3.984 kB / 0.9841 GB, free: 15.09 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.571e-05/0.00432, allocations: 9.828 kB / 0.9841 GB, free: 15.09 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002348/0.004555, allocations: 110.6 kB / 0.9842 GB, free: 14.94 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.903e-05/0.004594, allocations: 63.2 kB / 0.9843 GB, free: 14.86 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.156e-05/0.004606, allocations: 4 kB / 0.9843 GB, free: 14.85 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.107e-05/0.004627, allocations: 8.656 kB / 0.9843 GB, free: 14.84 MB / 0.948 GB Notification: Performance of SimCode: time 6.02e-07/0.004627, allocations: 4 kB / 0.9843 GB, free: 14.84 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01326/0.01789, allocations: 1.707 MB / 0.9859 GB, free: 13.25 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.956/6.974, allocations: 8.375 kB / 0.9859 GB, free: 13.25 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.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: 10.891772815957665]