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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009868/0.0009868, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006231/0.006231, allocations: 169.2 kB / 16.26 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.548/2.548, allocations: 437.8 MB / 0.7121 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003127/0.0003128, allocations: 8 kB / 0.8729 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6231/0.6234, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001576/0.625, allocations: 1.24 MB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0003419/0.6254, allocations: 124.5 kB / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.15e-05/0.6254, allocations: 0 / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.656e-05/0.6254, allocations: 0 / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.244e-05/0.6255, allocations: 11.92 kB / 1.024 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001808/0.6257, allocations: 16 kB / 1.024 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.155e-05/0.6257, allocations: 31.91 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.355e-05/0.6258, allocations: 7.984 kB / 1.025 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.823e-05/0.6259, allocations: 11.94 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.519e-05/0.6259, allocations: 7.984 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.6259, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.999e-05/0.626, allocations: 19.92 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.352e-05/0.626, allocations: 3.984 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.6261, allocations: 37.64 kB / 1.025 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.422e-05/0.6262, allocations: 35.89 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.6262, allocations: 0 / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6262, allocations: 0 / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.6262, allocations: 0 / 1.025 GB, free: 14.3 MB / 0.7794 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.0004097/0.6266, allocations: 341.8 kB / 1.025 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.6267, allocations: 12.03 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.977e-05/0.6267, allocations: 30.75 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.03e-05/0.6267, allocations: 0.9375 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.6268, allocations: 180.2 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.6269, allocations: 4.375 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.6269, allocations: 4.375 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001791/0.6271, allocations: 62.17 kB / 1.025 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.6271, allocations: 3.938 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-06/0.6271, allocations: 0 / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.6271, allocations: 0 / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.6273, allocations: 55.95 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003314/0.6277, allocations: 264.9 kB / 1.026 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003097/0.628, allocations: 70.47 kB / 1.026 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.6281, allocations: 28.91 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001105/0.6282, allocations: 85.09 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.6282, allocations: 34.56 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.6282, allocations: 0 / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0003846/0.6286, allocations: 105.6 kB / 1.026 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.6287, allocations: 59.34 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.577e-05/0.6288, allocations: 110 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.6288, allocations: 25.7 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.793e-05/0.6288, allocations: 84.05 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.6288, allocations: 7.844 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.843e-05/0.6289, allocations: 21.7 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.468e-05/0.629, allocations: 318.8 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.812e-05/0.6291, allocations: 27.98 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.749e-05/0.6292, allocations: 27.97 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001789/0.6293, allocations: 56.77 kB / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.6294, allocations: 0 / 1.027 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002235/0.6296, allocations: 89.58 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.6296, allocations: 4 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.6296, allocations: 0 / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.428e-06/0.6296, allocations: 4 kB / 1.027 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.276e-05/0.6297, allocations: 15.98 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.6297, allocations: 0 / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.941e-05/0.6298, allocations: 7.984 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.6298, allocations: 4 kB / 1.027 GB, free: 11.95 MB / 0.7794 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.117e-05/0.6299, allocations: 114.3 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.6299, allocations: 8 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002594/0.6302, allocations: 89.14 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.6302, allocations: 4 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.6302, allocations: 0 / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.6302, allocations: 3.938 kB / 1.027 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.6304, allocations: 169.6 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.6304, allocations: 4 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.541e-05/0.6305, allocations: 11.98 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.6305, allocations: 0 / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.181e-06/0.6305, allocations: 0 / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.6305, allocations: 0 / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.6305, allocations: 4 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002604/0.6308, allocations: 187.3 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.018e-05/0.6308, allocations: 81.05 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.192e-05/0.6308, allocations: 0 / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.855e-05/0.6309, allocations: 11.98 kB / 1.027 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.268e-05/0.631, allocations: 12 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-06/0.631, allocations: 0 / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.465e-05/0.631, allocations: 83.69 kB / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.396e-06/0.631, allocations: 0 / 1.027 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002199/0.6312, allocations: 15.88 kB / 1.027 GB, free: 11.06 MB / 0.7794 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.0005197/0.6318, allocations: 0.7204 MB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000224/0.632, allocations: 59.95 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.632, allocations: 0 / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.6321, allocations: 35.91 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.6324, allocations: 5.656 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003926/0.6328, allocations: 154.5 kB / 1.028 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/0.633, allocations: 0.677 MB / 1.029 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.059e-05/0.633, allocations: 4 kB / 1.029 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.236e-05/0.6331, allocations: 7.438 kB / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.6331, allocations: 0 / 1.029 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01022/0.6433, allocations: 1.295 MB / 1.03 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.6435, allocations: 200.9 kB / 1.031 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/2.334, allocations: 0 / 1.031 GB, free: 7.859 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches