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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_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.001431/0.001431, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001597/0.001597, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.273/1.273, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.611/2.611, allocations: 469.4 MB / 0.742 GB, free: 7.742 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 71.72 kB / 0.9083 GB, free: 34.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2504, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001642/0.2521, allocations: 0.5868 MB / 1.064 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002244/0.2524, allocations: 51.8 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.362e-05/0.2524, allocations: 0 / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 9.899e-06/0.2524, allocations: 0 / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.247e-06/0.2524, allocations: 0 / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001921/0.2526, allocations: 15.92 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.975e-05/0.2527, allocations: 7.984 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.816e-05/0.2527, allocations: 4 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.443e-05/0.2527, allocations: 4 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 1.999e-05/0.2528, allocations: 4 kB / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.787e-06/0.2528, allocations: 0 / 1.064 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.001e-05/0.2528, allocations: 4 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.695e-06/0.2529, allocations: 4 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.2529, allocations: 3.984 kB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.047e-05/0.253, allocations: 19.92 kB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.253, allocations: 4 kB / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.313e-06/0.253, allocations: 0 / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.253, allocations: 0 / 1.064 GB, free: 13.83 MB / 0.8262 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.0002287/0.2532, allocations: 311.6 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.2533, allocations: 8.031 kB / 1.065 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.706e-05/0.2533, allocations: 34.75 kB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.935e-05/0.2533, allocations: 0.9375 kB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.151e-05/0.2534, allocations: 168.4 kB / 1.065 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.257e-06/0.2534, allocations: 384 / 1.065 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.775e-06/0.2534, allocations: 384 / 1.065 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.965e-05/0.2535, allocations: 38.19 kB / 1.065 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.2535, allocations: 7.875 kB / 1.065 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.2535, allocations: 0 / 1.065 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.2536, allocations: 0 / 1.065 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.884e-05/0.2536, allocations: 4 kB / 1.065 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001182/0.2537, allocations: 153.7 kB / 1.065 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.338e-05/0.2538, allocations: 26.61 kB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.534e-05/0.2538, allocations: 4.859 kB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001363/0.2539, allocations: 89.09 kB / 1.065 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.92e-05/0.254, allocations: 30.56 kB / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.322e-06/0.254, allocations: 0 / 1.065 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001219/0.2541, allocations: 41.64 kB / 1.065 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.569e-05/0.2541, allocations: 59.53 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.207e-05/0.2542, allocations: 93.84 kB / 1.065 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.2542, allocations: 25.7 kB / 1.065 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.229e-05/0.2542, allocations: 84.08 kB / 1.066 GB, free: 12.45 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.2542, allocations: 3.906 kB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.713e-05/0.2543, allocations: 17.72 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.115e-05/0.2543, allocations: 310.8 kB / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.2544, allocations: 0 / 1.066 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.676e-06/0.2544, allocations: 11.94 kB / 1.066 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.912e-05/0.2544, allocations: 16.84 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.2544, allocations: 0 / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.874e-05/0.2545, allocations: 33.7 kB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.2545, allocations: 8 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2545, allocations: 3.938 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.869e-06/0.2545, allocations: 0 / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.111e-05/0.2546, allocations: 4 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.2546, allocations: 96 / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.2546, allocations: 8.266 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.2546, allocations: 4 kB / 1.066 GB, free: 12.01 MB / 0.8262 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.583e-05/0.2547, allocations: 109.8 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.458e-06/0.2547, allocations: 4 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.017e-05/0.2548, allocations: 52.69 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.2548, allocations: 7.984 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2548, allocations: 0 / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.2548, allocations: 0 / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.428e-05/0.2549, allocations: 145.7 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2549, allocations: 0 / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.59e-05/0.2549, allocations: 7.984 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2549, allocations: 0 / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.2549, allocations: 3.938 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.2549, allocations: 4 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.255, allocations: 3.938 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.823e-05/0.255, allocations: 69.06 kB / 1.066 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.645e-05/0.2551, allocations: 77.11 kB / 1.066 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.2551, allocations: 3.938 kB / 1.066 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.239e-05/0.2551, allocations: 4 kB / 1.066 GB, free: 11.43 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.386e-05/0.2551, allocations: 4 kB / 1.066 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.2551, allocations: 0 / 1.066 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.161e-05/0.2552, allocations: 75.28 kB / 1.066 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2552, allocations: 3.938 kB / 1.066 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001816/0.2553, allocations: 4 kB / 1.066 GB, free: 11.34 MB / 0.8262 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.0003428/0.2557, allocations: 0.6129 MB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.082e-05/0.2558, allocations: 12 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2558, allocations: 0 / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.448e-05/0.2558, allocations: 4 kB / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001222/0.2559, allocations: 160 / 1.067 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002866/0.2562, allocations: 126.5 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001934/0.2564, allocations: 0.6729 MB / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.487e-05/0.2565, allocations: 0 / 1.068 GB, free: 9.816 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.071e-05/0.2565, allocations: 15.38 kB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.2565, allocations: 0 / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01526/0.2717, allocations: 1.053 MB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.295, allocations: 2.062 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches